Home | Tutorials | Wiki | Issues
Ask Your Question
0

Getting angle of 2 DoF joint

asked 2013-01-23 02:36:25 -0600

r0nald gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-01-23 22:37:21 -0600

nkoenig gravatar image

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)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2013-01-23 02:36:25 -0600

Seen: 402 times

Last updated: Jan 23 '13