Commit b88fe107 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Joseph Mirabel
Browse files

[ReedsShepp] Fix detection of root joint.

parent 60fb7ac2
......@@ -47,7 +47,7 @@ namespace hpp {
rho_ (turningRadius), xy_ (xyJoint), rz_ (rzJoint),
xyId_ (xy_->rankInConfiguration ()), wheels_ (wheels), weak_ ()
{
if (rz_->jointModel ().classname () == "JointModelPlanar") {
if (rz_->jointModel ().shortname () == "JointModelPlanar") {
rzId_ = rz_->rankInConfiguration () + 2;
} else {
rzId_ = rz_->rankInConfiguration ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment