Skip to content

Commit

Permalink
Use pose multiplication instead of subtraction
Browse files Browse the repository at this point in the history
Part of gz-math#60.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters committed Jun 6, 2022
1 parent 7f89b11 commit dbf2b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/gz/rendering/base/BaseNode.hh
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ namespace gz
return _pose;
}

return _pose - parent->WorldPose();
return parent->WorldPose().Inverse() * _pose;
}

//////////////////////////////////////////////////
Expand Down

0 comments on commit dbf2b03

Please sign in to comment.