0
$\begingroup$

Gazebo Answers logo

Is it possible to get the angle of at least one axis of a 2 DoF (in SDF type "revolute2") joint? Gazebo 1.2.5. Currently I always get zero for joint->GetAngle(0) and same for joint->GetState().GetAngle(0).

If this is the right method for it in the source code, then it seems that it is not possible, due to a bug or by design.

According to this issue, the current implementation does not support returning angle of axis other than 0, but I can't get angle of axis 0 neither.


Originally posted by r0nald on Gazebo Answers with karma: 62 on 2013-01-23

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Gazebo Answers logo

It is indeed a bug. I've fixed it in this pull request: https://bitbucket.org/osrf/gazebo/pull-request/247/fix-return-value-in-odehinge2joint/diff

The change will be released in Gazebo 1.4 (Feb. 1st)


Originally posted by nkoenig with karma: 7676 on 2013-01-23

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.