gazebosim / gazebo-classic

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

Allow to set initial joint pose in SDF #1072

Open osrf-migration opened 10 years ago

osrf-migration commented 10 years ago

Original report (archived issue) by Anonymous.


Refering to http://answers.gazebosim.org/question/5062/robot-initial-configuration/, it is important that one can specify the initial position for each SDF .

osrf-migration commented 10 years ago

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


Is this similar to #207?

osrf-migration commented 10 years ago

Original comment by Andreas Bihlmaier (Bitbucket: andreasBihlmaier).


I think #207 is about control of joints.

My proposal is to have a "" tag within that allows to spawn the model with this joint setting as initial value. Setting to a value != 0 would already alter the way the model is shown when adding it to a world, i.e. before it is registered to physics and before its plugin code is run. In other words the tag should in this regard behave exactly the same as if the joint's origin where shifted to the initial value.

osrf-migration commented 10 years ago

Original comment by John Hsu (Bitbucket: hsu, GitHub: hsu).


At the minimum, we need the joint to be spawned within the joint limits so to avoid violent corrections on startup.

A pass through the robot after spawning (in Init) to set joint positions could do it. But we also need to check for invalid configurations in case the robot kinematics is not a tree.

osrf-migration commented 9 years ago

Original comment by Antonio El Khoury (Bitbucket: aelkhour).


Is there currently any bypass that would allow setting an initial robot pose without modifying gazebo_ros_control::DefaultRobotHWSim or writing a robot-specific plugin?

osrf-migration commented 9 years ago

Original comment by Andreas Bihlmaier (Bitbucket: andreasBihlmaier).


To my knowledge there still isn't.

osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).