Skip to content
Snippets Groups Projects
Commit c91ac03a authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Fix bug in Robot: do not change name of root joint after registering in Robot.

parent 457df6b6
No related branches found
No related tags found
No related merge requests found
......@@ -193,8 +193,9 @@ namespace hpp {
// Put an anchor joint as root joint
model::ObjectFactory factory;
Transform3f pos; pos.setIdentity ();
rootJoint (factory.createJointAnchor (pos));
rootJoint ()->name (name () + "/root");
JointPtr_t root = factory.createJointAnchor (pos);
root->name (name () + "/root");
rootJoint (root);
size_type rankInConfiguration = 0;
size_type rankInVelocity = 0;
// Copy robot kinematic chains
......
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