Skip to content

Commit

Permalink
Fix name suffixes not being input correctly in YoSpatialInertia (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-p-foster authored Mar 29, 2024
1 parent 0a1f3a3 commit 63da7a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public YoSpatialInertia(String nameSuffix, ReferenceFrame bodyFrame, ReferenceFr
this.expressedInFrame = expressedInFrame;

mass = new YoDouble(bodyFrame.getName() + "_mass" + nameSuffix, registry);
centerOfMassOffset = new YoFrameVector3D(bodyFrame.getName() + "_centerOfMassOffset" + nameSuffix, expressedInFrame, registry);
momentOfInertia = new YoMatrix3D(bodyFrame.getName() + "_momentOfInertia", registry);
centerOfMassOffset = new YoFrameVector3D(bodyFrame.getName() + "_centerOfMassOffset", nameSuffix, expressedInFrame, registry);
momentOfInertia = new YoMatrix3D(bodyFrame.getName() + "_momentOfInertia", nameSuffix, registry);
}

/** {@inheritDoc} */
Expand Down

0 comments on commit 63da7a1

Please sign in to comment.