Skip to content
Snippets Groups Projects
Commit 8d2f1d5d authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

[C++][Bug] Fix position of fixed joint in URDF parser.

parent ea460d41
No related branches found
No related tags found
No related merge requests found
......@@ -403,14 +403,7 @@ namespace se3
// -add fixed body in model to display it in gepetto-viewer
joint_info << "fixed joint";
// FIXME: This should be:
// appendBodyToJoint(model, parent_joint_id, Y, link_name);
// but I do not understand why the two placement arguments are
// different.
if (link->inertial) {
model.appendBodyToJoint(parent_joint_id, convertFromUrdf(*Y), jointPlacement, link->name); //Modify the parent inertia in the model
} else
model.addFrame(link->name, parent_joint_id, nextPlacementOffset, BODY);
appendBodyToJoint(model, parent_joint_id, Y, jointPlacement, link_name);
//transformation of the current placement offset
nextPlacementOffset = jointPlacement;
......
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