gazebosim / gazebo-classic

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

<initial_position> tag seems to have no effect #2694

Open osrf-migration opened 4 years ago

osrf-migration commented 4 years ago

Original report (archived issue) by Eloy Retamino (Bitbucket: Eloy Retamino).

The original report had attachments: model.sdf


Hi, I was trying to use the tag <initial_position> to set the initial value for a joint angle. Attached is a modified version of double_pendulum_with_base model setting the initial value of the upper_joint joint to pi/2. But it doesn’t have any effect. I changed sdf version in the file to 1.6, since this attribute seems to be new in this version.

Is it a bug or am I not using the tag correctly?

Thanks!

stefanbuettner commented 4 years ago

Hey there, I'm expeiencing the same behavior: No effect. According to the sdf 1.7 documentation it should go under the <joint><axis> as in the given example.