How to set initial pose to UR5 in Gazebo
Hello,
I have a simulation with an UR5 in Gazebo. How can I say, that the robot should start in a given pose?
I tried what was answered in How do I set the inital pose of a robot in gazebo? , just like this:
<!-- push robot_description to factory and spawn robot in gazebo -->
<node name="spawn_gazebo_model" pkg="gazebo_ros" type="spawn_model"
args="-urdf -param robot_description
-model robot
-z 0.0
-shoulder_lift_joint 0 1.57 0"
respawn="false" output="screen" />
There should be a -J label just like:
<!-- push robot_description to factory and spawn robot in gazebo -->
<node name="spawn_gazebo_model" pkg="gazebo_ros" type="spawn_model"
args="-urdf -param robot_description
-model robot
-z 0.0
-J shoulder_lift_joint 1.57"
respawn="false" output="screen" />
This didn't work for me. I have ROS Indigo. Regarding to spawn_model -J initial joint positions not working #93, the -J-argument does not work in Indigo.
Do you have any suggestions?
Best regards,
J_Schaefer
Asked by J_Schaefer on 2016-08-22 04:50:02 UTC
Answers
Check at the last comments on the issue #93: at least on kinetic, it works if you start Gazebo paused and then add the -unpause to the spawn_model to start it.
Asked by jorge on 2016-11-30 19:31:00 UTC
Comments
thank a lot! it works
Asked by shannonleeeee on 2019-08-27 08:17:22 UTC
I am not using gazebo, but i still want to have an initial pose when starting up my arm in RViz, is it possible to do so using ros2 control ? I saw in ros2 control xacro that there is a "initial value" param which can be set under
Asked by bhooshan_deshpande on 2023-03-29 14:05:08 UTC
Comments