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

How to, stl in rviz and gazebo ?

asked 2012-02-11 00:44:11 -0600

updated 2012-02-11 03:17:49 -0600

This may be a very newbie question, however I am somewhat struggling with it. I have got an stl file (from Google SketchUp), how should I get it into rviz and gazebo ?

UPDATE 1 I have been exactly following this tutorial, everything works but rviz is blank. I used Google SketchUp 8 for making the stl file.

UPDATE 2 a dae file works fine, but stl gives the following error;

[rviz-3] process has died [pid 8132, exit code -11].
edit retag flag offensive close merge delete


Hi Arkapravo, I'll take some random guesses here... make sure to also export the stl mesh package path to ROS_PACKAGE_PATH in the same terminal rviz was launched. Also, note that stl has to be in binary format. As general suggestion, please post commands used, stl and urdf if possible. Thanks.
hsu gravatar image hsu  ( 2012-02-11 06:34:54 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-02-11 01:08:09 -0600

Kai Bublitz gravatar image

updated 2012-02-11 01:09:12 -0600

stl files can be used as geometry description in urdf files. So basically what you need is a model. You can look at the urdf tutorials if you don't know how to create one: look here. At the end of the linked page is an example that uses a mesh file (that's what your stl is).

edit flag offensive delete link more


@Kai Bublitz I have been doing exactly this ! ..... but nothing appears in the visualisation ! ..... rviz is blank !
Arkapravo gravatar image Arkapravo  ( 2012-02-11 01:10:09 -0600 )edit
How are you trying to view the model? Do you use the display.launch from urdf_tutorial? Does rviz show any error messages?
Kai Bublitz gravatar image Kai Bublitz  ( 2012-02-11 02:29:10 -0600 )edit
@Kai Bublitz Yes, I am using that, rviz doesn't find the stl, I am not sure if is it a path issue (it is in the same folder); hence I was doubting if it is the issue of the stl
Arkapravo gravatar image Arkapravo  ( 2012-02-11 02:51:17 -0600 )edit

Question Tools


Asked: 2012-02-11 00:44:11 -0600

Seen: 8,048 times

Last updated: Feb 11 '12