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();