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

VirtualRobotReader: nodiscard attribute for syncRobot

parent 1ee90110
No related branches found
No related tags found
No related merge requests found
......@@ -1317,7 +1317,7 @@ namespace armarx::armem::server::obj::instance
if (robot)
{
reader->synchronizeRobot(*robot, Clock::Now());
ARMARX_CHECK(reader->synchronizeRobot(*robot, Clock::Now()));
// Store robot if valid.
loaded.emplace(robotName, robot);
}
......
......@@ -27,7 +27,6 @@
#include "RobotReader.h"
namespace armarx::armem::robot_state
{
/**
......@@ -47,7 +46,8 @@ namespace armarx::armem::robot_state
void connect();
void registerPropertyDefinitions(::armarx::PropertyDefinitionsPtr& def);
bool synchronizeRobot(VirtualRobot::Robot& robot, const armem::Time& timestamp);
[[nodiscard]] bool synchronizeRobot(VirtualRobot::Robot& robot,
const armem::Time& timestamp);
[[nodiscard]] VirtualRobot::RobotPtr
getRobot(const std::string& name,
......@@ -70,14 +70,12 @@ namespace armarx::armem::robot_state
private:
[[nodiscard]] VirtualRobot::RobotPtr
_getSynchronizedRobot(const std::string& name,
const armem::Time& timestamp = armem::Time::Invalid(),
const VirtualRobot::RobotIO::RobotDescription& loadMode =
VirtualRobot::RobotIO::RobotDescription::eStructure,
VirtualRobot::RobotIO::RobotDescription::eStructure,
bool blocking = true);
};
} // namespace armarx::armem::robot_state
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