58 const Ice::Current& current)
60 std::scoped_lock l(robotsMutex);
61 ARMARX_INFO <<
"Register a new robot with name '" << robot.name <<
"' in RNS";
63 if (
auto it = robots.find(robot.name); it != robots.end())
66 <<
"' is already registered. Ignoring it.";
70 robots[robot.name].fromIce(robot);
77 std::scoped_lock l(robotsMutex);
79 if (
auto it = robots.find(name); it != robots.end())
85 IceUtil::Optional<robot_name_service::dto::RobotInfo>
88 std::scoped_lock l(robotsMutex);
90 if (
auto it = robots.find(name); it == robots.end())
95 return robots[name].toIce();
Default component property definition container.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
void onInitComponent() override
bool registerRobotInfo(const robot_name_service::dto::RobotInfo &robot, const Ice::Current ¤t) override
void onDisconnectComponent() override
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
IceUtil::Optional< robot_name_service::dto::RobotInfo > getRobotInfo(const std::string &name, const Ice::Current ¤t) override
void unregisterRobotInfo(const std::string &name, const Ice::Current ¤t) override
void onConnectComponent() override
void onExitComponent() override
#define ARMARX_INFO
The normal logging level.
#define ARMARX_ERROR
The logging level for unexpected behaviour, that must be fixed.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.