|
|
The RobotReader class. More...
#include <RobotAPI/libraries/armem_robot_state/client/common/RobotReader.h>
Inheritance diagram for RobotReader:Public Types | |
| enum | Hand { Left, Right } |
| using | JointTrajectory = std::map< armem::Time, RobotState::JointMap > |
Public Member Functions | |
| virtual void | connect (armem::client::MemoryNameSystem &memoryNameSystem) |
| Robot | get (const description::RobotDescription &description, const armem::Time ×tamp) const override |
| std::optional< Robot > | get (const std::string &name, const armem::Time ×tamp) const override |
| std::optional< description::RobotDescription > | queryDescription (const std::string &name, const armem::Time ×tamp) const |
| std::vector< description::RobotDescription > | queryDescriptions (const armem::Time ×tamp) const |
| std::optional< std::map< Hand, proprioception::ForceTorque > > | queryForceTorque (const std::string &robotName, const armem::Time ×tamp) const |
| std::optional< std::map< RobotReader::Hand, std::map< armem::Time, proprioception::ForceTorque > > > | queryForceTorques (const std::string &robotName, const armem::Time &start, const armem::Time &end) const |
| std::optional< RobotState::Pose > | queryGlobalPose (const std::string &robotName, const armem::Time ×tamp) const |
| std::optional< RobotState > | queryJointState (const std::string &robotName, const armem::Time ×tamp) const |
| JointTrajectory | queryJointStates (const std::string &robotName, const armem::Time &begin, const armem::Time &end) const |
| std::optional<::armarx::armem::robot_state::localization::Transform > | queryOdometryPose (const std::string &robotName, const armem::Time ×tamp) const |
| retrieve the robot's pose in the odometry frame. More... | |
| std::optional< PlatformState > | queryPlatformState (const std::string &robotName, const armem::Time ×tamp) const |
| std::optional< armarx::armem::arondto::Proprioception > | queryProprioception (const std::string &robotName, const armem::Time ×tamp) const |
| std::optional< RobotState > | queryState (const std::string &robotName, const armem::Time ×tamp) const |
| std::optional< std::map< Hand, exteroception::ToF > > | queryToF (const std::string &robotName, const armem::Time ×tamp) const |
| virtual void | registerPropertyDefinitions (::armarx::PropertyDefinitionsPtr &def) |
| RobotReader ()=default | |
| RobotReader (const RobotReader &) | |
| void | setSleepAfterSyncFailure (const armem::Duration &duration) |
| void | setSyncTimeout (const armem::Duration &duration) |
| bool | synchronize (Robot &obj, const armem::Time ×tamp) const override |
| virtual | ~RobotReader ()=default |
Public Member Functions inherited from ReaderInterface | |
| virtual | ~ReaderInterface ()=default |
Protected Attributes | |
| armem::Duration | sleepAfterFailure = armem::Duration::MicroSeconds(0) |
| armem::Duration | syncTimeout = armem::Duration::MicroSeconds(0) |
The RobotReader class.
The purpose of this class is to synchronize the armem data structure armem::Robot with the memory.
Definition at line 43 of file RobotReader.h.
| using JointTrajectory = std::map<armem::Time, RobotState::JointMap> |
Definition at line 76 of file RobotReader.h.
|
strong |
| Enumerator | |
|---|---|
| Left | |
| Right | |
Definition at line 91 of file RobotReader.h.
|
default |
| RobotReader | ( | const RobotReader & | r | ) |
Definition at line 34 of file RobotReader.cpp.
|
virtualdefault |
|
virtual |
Definition at line 49 of file RobotReader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements ReaderInterface.
Definition at line 85 of file RobotReader.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements ReaderInterface.
Definition at line 71 of file RobotReader.cpp.
Here is the call graph for this function:| std::optional< description::RobotDescription > queryDescription | ( | const std::string & | name, |
| const armem::Time & | timestamp | ||
| ) | const |
Definition at line 142 of file RobotReader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< description::RobotDescription > queryDescriptions | ( | const armem::Time & | timestamp | ) | const |
Definition at line 848 of file RobotReader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::optional< std::map< RobotReader::Hand, proprioception::ForceTorque > > queryForceTorque | ( | const std::string & | robotName, |
| const armem::Time & | timestamp | ||
| ) | const |
Definition at line 523 of file RobotReader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::optional< std::map< RobotReader::Hand, std::map< armem::Time, proprioception::ForceTorque > > > queryForceTorques | ( | const std::string & | robotName, |
| const armem::Time & | start, | ||
| const armem::Time & | end | ||
| ) | const |
| std::optional< RobotState::Pose > queryGlobalPose | ( | const std::string & | robotName, |
| const armem::Time & | timestamp | ||
| ) | const |
Definition at line 378 of file RobotReader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::optional< RobotState > queryJointState | ( | const std::string & | robotName, |
| const armem::Time & | timestamp | ||
| ) | const |
Definition at line 209 of file RobotReader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| RobotReader::JointTrajectory queryJointStates | ( | const std::string & | robotName, |
| const armem::Time & | begin, | ||
| const armem::Time & | end | ||
| ) | const |
| std::optional<::armarx::armem::robot_state::localization::Transform > queryOdometryPose | ( | const std::string & | robotName, |
| const armem::Time & | timestamp | ||
| ) | const |
retrieve the robot's pose in the odometry frame.
This pose is an integration of the robot's platform velocity and undergoes a significant drift.
| description | |
| timestamp |
Definition at line 227 of file RobotReader.cpp.
Here is the call graph for this function:| std::optional< PlatformState > queryPlatformState | ( | const std::string & | robotName, |
| const armem::Time & | timestamp | ||
| ) | const |
Definition at line 336 of file RobotReader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::optional< armarx::armem::arondto::Proprioception > queryProprioception | ( | const std::string & | robotName, |
| const armem::Time & | timestamp | ||
| ) | const |
Definition at line 253 of file RobotReader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::optional< RobotState > queryState | ( | const std::string & | robotName, |
| const armem::Time & | timestamp | ||
| ) | const |
Definition at line 190 of file RobotReader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::optional< std::map< RobotReader::Hand, exteroception::ToF > > queryToF | ( | const std::string & | robotName, |
| const armem::Time & | timestamp | ||
| ) | const |
|
virtual |
Definition at line 43 of file RobotReader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void setSleepAfterSyncFailure | ( | const armem::Duration & | duration | ) |
| void setSyncTimeout | ( | const armem::Duration & | duration | ) |
Definition at line 99 of file RobotReader.cpp.
|
overridevirtual |
Implements ReaderInterface.
Definition at line 112 of file RobotReader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 125 of file RobotReader.h.
|
protected |
Definition at line 124 of file RobotReader.h.