Skip to content
Snippets Groups Projects
Commit a9559e49 authored by Fabian Reister's avatar Fabian Reister
Browse files

distinguishing between getRobot and getSynchronizedRobot

parent 4fb829bf
No related branches found
Tags v0.8.3
No related merge requests found
...@@ -67,7 +67,15 @@ namespace armarx::armem::robot_state ...@@ -67,7 +67,15 @@ namespace armarx::armem::robot_state
const std::string xmlFilename = ArmarXDataPath::resolvePath(description->xml.serialize().path); const std::string xmlFilename = ArmarXDataPath::resolvePath(description->xml.serialize().path);
ARMARX_INFO << "Loading (virtual) robot '" << description->name << "' from XML file '" << xmlFilename << "'"; ARMARX_INFO << "Loading (virtual) robot '" << description->name << "' from XML file '" << xmlFilename << "'";
auto robot = VirtualRobot::RobotIO::loadRobot(xmlFilename, loadMode); return VirtualRobot::RobotIO::loadRobot(xmlFilename, loadMode);
}
VirtualRobot::RobotPtr VirtualRobotReader::getSynchronizedRobot(const std::string& name,
const armem::Time& timestamp,
const VirtualRobot::RobotIO::RobotDescription& loadMode)
{
auto robot = getRobot(name, timestamp);
synchronizeRobot(*robot, timestamp); synchronizeRobot(*robot, timestamp);
......
...@@ -53,6 +53,12 @@ namespace armarx::armem::robot_state ...@@ -53,6 +53,12 @@ namespace armarx::armem::robot_state
const armem::Time& timestamp, const armem::Time& timestamp,
const VirtualRobot::RobotIO::RobotDescription& loadMode = const VirtualRobot::RobotIO::RobotDescription& loadMode =
VirtualRobot::RobotIO::RobotDescription::eStructure); VirtualRobot::RobotIO::RobotDescription::eStructure);
VirtualRobot::RobotPtr
getSynchronizedRobot(const std::string& name,
const armem::Time& timestamp,
const VirtualRobot::RobotIO::RobotDescription& loadMode =
VirtualRobot::RobotIO::RobotDescription::eStructure);
}; };
} // namespace armarx::armem::robot_state } // namespace armarx::armem::robot_state
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment