Ask Your Question

How to make a simulation of UR5 in Gazebo?

asked 2019-01-04 18:38:24 -0500

Piyumal gravatar image


I want to make a simulation for a UR5 robot which is used for pick and place. How can I use a camera in order to develop an algorithm for visualization? Your help is much appreciated, hence I am new to ROS and Gazebo.

edit retag flag offensive close merge delete



I'm not sure how to add a camera, but I would start with and make sure you are comfortable with the basic UR5 simulation first.

ahendrix gravatar image ahendrix  ( 2019-01-04 19:24:33 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-01-06 12:19:46 -0500

mali gravatar image

updated 2019-01-06 12:21:08 -0500

Hi, I could say you have two option: First, if you need to attach a camera on the end-effector of UR5 (or any link ), you need to get the ur_gazebo package and install it from the source, then you need to edit the xacro file of the robot ....../ur_description/urdf/ur5.urdf.xacro and there you can attach the camera to any link by following the same steps in the SensorPlugin tutorial. i just tried it, you can see screenshot (the weight box represent the camera):image description.

Second option: you mention that you are working on pick and place application, you might need to create your own environment where you will use the UR5 robot. In that case, you can attach your camera anywhere in the environment following the same steps in the SensorPlugin tutorial. Hope this can help :)

edit flag offensive delete link more


Thank you very much.

Piyumal gravatar image Piyumal  ( 2019-01-30 16:21:28 -0500 )edit

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: 2019-01-04 18:38:24 -0500

Seen: 393 times

Last updated: Jan 06 '19