gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.17k stars 477 forks source link

Can't Set Joint State When Using Simbody #1913

Open osrf-migration opened 8 years ago

osrf-migration commented 8 years ago

Original report (archived issue) by Xander Dunn (Bitbucket: xanderdunn).


We have a plugin that we use to set joint position and velocity. This works fine when our .world is using ODE. However, this doesn't appear to work when we're using Simbody. In verbose Gazebo output we see:

[Err] [SimbodyLink.cc:227] SetWorldPose (OnPoseChange) for child links need testing.
[Err] [SimbodyLink.cc:227] SetWorldPose (OnPoseChange) for child links need testing.
[Err] [SimbodyLink.cc:227] SetWorldPose (OnPoseChange) for child links need testing.

which was added here.

The error isn't fatal. Simulation continues, but nothing in the world changes as a result of the SetWorldPose.

osrf-migration commented 8 years ago

Original comment by Xander Dunn (Bitbucket: xanderdunn).


osrf-migration commented 8 years ago

Original comment by Xander Dunn (Bitbucket: xanderdunn).


osrf-migration commented 8 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


I believe Joint::SetVelocity is working, since it is used in the INTEGRATION_joint_spawn test, but there seem to be problems with setting joint position, since the INTEGRATION_joint_set_position test is disabled.

I think the Joint::SetPosition functions should be similar to Joint::SetVelocity.