Skip to content
Snippets Groups Projects
Commit 841855cd authored by Stefan Reither's avatar Stefan Reither
Browse files

removes forbidden access to controlThreadBuffer

parent bdf52b8f
No related branches found
No related tags found
Loading
......@@ -32,12 +32,11 @@ RobotSynchronization::RobotSynchronization(RobotUnit* robotUnit, VirtualRobot::R
{
this->robotUnit = robotUnit;
this->robot = robot;
SensorDeviceStatusSeq states = robotUnit->getSensorDeviceStatuses(Ice::Current());
Ice::StringSeq names = robotUnit->getSensorDeviceNames(GlobalIceCurrent);
for (std::size_t i = 0; i < states.size(); i++)
for (std::string name : names)
{
// skip, if the current sensor device does not correspond to a joint.
std::string name = states.at(i).deviceName;
if (!this->robot->hasRobotNode(name))
{
continue;
......
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