|
The RobotReader class. More...
#include <RobotAPI/libraries/armem_robot_state/client/common/RobotReader.h>
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 33 of file RobotReader.cpp.
|
virtualdefault |
|
virtual |
Definition at line 48 of file RobotReader.cpp.
|
overridevirtual |
Implements ReaderInterface.
Definition at line 81 of file RobotReader.cpp.
|
overridevirtual |
Implements ReaderInterface.
Definition at line 67 of file RobotReader.cpp.
std::optional< description::RobotDescription > queryDescription | ( | const std::string & | name, |
const armem::Time & | timestamp | ||
) | const |
Definition at line 138 of file RobotReader.cpp.
std::vector< description::RobotDescription > queryDescriptions | ( | const armem::Time & | timestamp | ) | const |
Definition at line 850 of file RobotReader.cpp.
std::optional< std::map< RobotReader::Hand, proprioception::ForceTorque > > queryForceTorque | ( | const std::string & | robotName, |
const armem::Time & | timestamp | ||
) | const |
Definition at line 524 of file RobotReader.cpp.
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.
std::optional< RobotState > queryJointState | ( | const std::string & | robotName, |
const armem::Time & | timestamp | ||
) | const |
Definition at line 206 of file RobotReader.cpp.
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 226 of file RobotReader.cpp.
std::optional< PlatformState > queryPlatformState | ( | const std::string & | robotName, |
const armem::Time & | timestamp | ||
) | const |
Definition at line 336 of file RobotReader.cpp.
std::optional< armarx::armem::arondto::Proprioception > queryProprioception | ( | const std::string & | robotName, |
const armem::Time & | timestamp | ||
) | const |
Definition at line 253 of file RobotReader.cpp.
std::optional< RobotState > queryState | ( | const std::string & | robotName, |
const armem::Time & | timestamp | ||
) | const |
Definition at line 186 of file RobotReader.cpp.
std::optional< std::map< RobotReader::Hand, exteroception::ToF > > queryToF | ( | const std::string & | robotName, |
const armem::Time & | timestamp | ||
) | const |
|
virtual |
Definition at line 42 of file RobotReader.cpp.
void setSleepAfterSyncFailure | ( | const armem::Duration & | duration | ) |
void setSyncTimeout | ( | const armem::Duration & | duration | ) |
Definition at line 95 of file RobotReader.cpp.
|
overridevirtual |
Implements ReaderInterface.
Definition at line 108 of file RobotReader.cpp.
|
protected |
Definition at line 125 of file RobotReader.h.
|
protected |
Definition at line 124 of file RobotReader.h.