Go to the documentation of this file.
26 #include <VirtualRobot/VirtualRobot.h>
27 #include <VirtualRobot/XML/RobotIO.h>
83 const VirtualRobot::RobotIO::RobotDescription& loadMode =
84 VirtualRobot::RobotIO::RobotDescription::eStructure);
87 "Use getRobot() and synchronizeRobot() instead. This method does two things "
88 "(getRobot() and synchronizeRobot()) and is not recommended as we cannot differentiate "
89 "failure cases, e.g. we might be able to obtain the robot model but cannot synchronize "
90 "it. Also, if `blocking` is enabled, this method will block indefinitely if the robot "
91 "is not available.")]]
94 const VirtualRobot::RobotIO::RobotDescription& loadMode =
95 VirtualRobot::RobotIO::RobotDescription::eStructure,
96 bool blocking =
true);
99 "Use getRobot() and synchronizeRobot() instead. This method does two things "
100 "(getRobot() and synchronizeRobot()) and is not recommended as we cannot differentiate "
101 "failure cases, e.g. we might be able to obtain the robot model but cannot synchronize "
102 "it. Also, if `blocking` is enabled, this method will block indefinitely if the robot "
103 "is not available.")]]
107 const VirtualRobot::RobotIO::RobotDescription& loadMode =
108 VirtualRobot::RobotIO::RobotDescription::eStructure,
109 bool blocking =
true);
117 const VirtualRobot::RobotIO::RobotDescription& loadMode =
118 VirtualRobot::RobotIO::RobotDescription::eStructure);
122 _getSynchronizedRobot(
const std::string& name,
124 const VirtualRobot::RobotIO::RobotDescription& loadMode =
125 VirtualRobot::RobotIO::RobotDescription::eStructure,
126 bool blocking =
true);
The VirtualRobotReader class.
VirtualRobot::RobotPtr getRobot(const std::string &name, const armem::Time ×tamp=armem::Time::Invalid(), const VirtualRobot::RobotIO::RobotDescription &loadMode=VirtualRobot::RobotIO::RobotDescription::eStructure)
~VirtualRobotReader() override=default
bool synchronizeRobot(VirtualRobot::Robot &robot, const armem::Time ×tamp) const
Synchronize both the platform pose and the joint values of a virtual robot, according to the robot st...
bool synchronizeRobotPose(VirtualRobot::Robot &robot, const armem::Time ×tamp) const
Synchronize only the platform pose of a virtual robot, according to the robot state memory for a cert...
VirtualRobot::RobotPtr getRobotWaiting(const std::string &name, const armem::Time ×tamp=armem::Time::Invalid(), const VirtualRobot::RobotIO::RobotDescription &loadMode=VirtualRobot::RobotIO::RobotDescription::eStructure)
In contrast to getRobot(), this function will retry to query the robot until it exists.
bool synchronizeRobotJoints(VirtualRobot::Robot &robot, const armem::Time ×tamp) const
Synchronize only the joint values of a virtual robot, according to the robot state memory for a certa...
VirtualRobot::RobotPtr getSynchronizedRobot(const std::string &name, const VirtualRobot::RobotIO::RobotDescription &loadMode=VirtualRobot::RobotIO::RobotDescription::eStructure, bool blocking=true)
Represents a point in time.
static DateTime Invalid()
std::shared_ptr< class Robot > RobotPtr