Skip to content
Snippets Groups Projects
Commit f630c002 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Modernize code

parent 70dc1907
No related branches found
No related tags found
No related merge requests found
......@@ -917,19 +917,12 @@ namespace VirtualRobot
{
RobotConfigPtr r(new RobotConfig(shared_from_this(), getName()));
std::vector<RobotNodePtr> robotNodes = this->getRobotNodes();
std::vector<RobotNodePtr>::const_iterator iterator = robotNodes.begin();
while (robotNodes.end() != iterator)
for (const auto& rn : this->getRobotNodes())
{
RobotNodePtr rn = *iterator;
if (rn->isTranslationalJoint() || rn->isRotationalJoint())
{
r->setConfig(rn, rn->getJointValue());
}
iterator++;
}
return r;
......
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