ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

create robot model for rviz

asked 2012-01-07 01:11:26 -0600

Grem gravatar image

updated 2012-01-07 01:12:29 -0600

You can convert a model of the robot from any CAD(AutoCAD, Inventor, 3d max etc.)? For example pr2 was somewhere drawn, or described it "by hand"?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-01-07 07:31:53 -0600

David Lu gravatar image
edit flag offensive delete link more

answered 2012-01-07 02:35:27 -0600

updated 2012-01-07 02:40:47 -0600

Have you looked at the urdf tutorials ? These explain the creation of a urdf model comprehensively.

Short answer: For the different links (e.g. "parts") of your URDF model you can use either built-in primitives like cylinders, boxes etc. or a mesh in .stl or .dae (COLLADA) format. Meshes in these formats can be created/exported using a multitude of 3D modeling solutions, like AutoCAD, Inventor, 3DS Max, Blender, Sketchup or others. The safest bet is probably to export a plain .stl file at the beginning, as COLLADA meshes sometimes seem to have problems with exporting due to being more complex.

You can also check the package (install it on your machine) and have a direct look at the PR2 urdf files.

It should also be noted that visualization in rviz is only one of multiple uses of a URDF model. Having a URDF model of your robot for example also makes it easy to transform data between different coordinate systems or to simulate the robot in gazebo.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-01-07 01:11:26 -0600

Seen: 5,951 times

Last updated: Jan 07 '12