Ask Your Question
2

How to, stl in rviz and gazebo ?

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

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

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

Comments

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 imagehsu ( 2012-02-11 06:34:54 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

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

Kai Bublitz gravatar image

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

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

Comments

@Kai Bublitz I have been doing exactly this ! ..... but nothing appears in the visualisation ! ..... rviz is blank !
Arkapravo gravatar imageArkapravo ( 2012-02-11 01:10:09 -0500 )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 imageKai Bublitz ( 2012-02-11 02:29:10 -0500 )edit
1
@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 imageArkapravo ( 2012-02-11 02:51:17 -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

Stats

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

Seen: 5,200 times

Last updated: Feb 11 '12