ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to set the initial position of the robot in Rviz

asked 2020-01-20 11:29:32 -0600

Karthik_rangz gravatar image

updated 2020-01-20 11:38:40 -0600

I am using the UR robot controlled by moveit. The real robot is on a stand and in Rviz the robot shows at the origin. How do I set the position of the robot to a certain coordinate so I can use collision detection?

I am able to do that in Gazebo but not in Rviz. Where would I set the position?

Should I have to put it as a part of URDF along with the robot? or is there a workaround as making the stand a an object in the collision detection?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2020-01-20 15:23:02 -0600

Karthik_rangz gravatar image

I found the answer! Just update the origin(xyz and rpy) in the urdf.xacro file of the robot to the position you want to.

edit flag offensive delete link more

answered 2020-02-28 01:31:08 -0600

fvd gravatar image

This question would be much better if you added your actual URDF.

The robot does not have to be at the origin of your world. In general, you would add a link and joint to place the robot arm in your environment in the correct position. You would then add the rest of the environment objects in the appropriate place, also using links and joints.

And yes, you should add e. g. a box underneath the robot to represent your robot base, to avoid collisions with it.

Remember not to change your robot arm's URDF directly, because it is supplied by UR, but instead to use the macro to add the arm to your own URDF.

edit flag offensive delete link more

answered 2020-02-28 07:35:39 -0600

jschleicher@Pilz gravatar image

For getting started with URDF/Xacro together with MoveIt you could follow the tutorial ModelYourApplicationWithPRBT.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-01-20 11:29:32 -0600

Seen: 2,623 times

Last updated: Feb 28 '20