Ask Your Question
1

Do I always need meshes in *.dae format to simulate in Gazebo?

asked 2017-04-02 03:48:50 -0500

anirban gravatar image

I am trying to simulate with p3dx model in Gazebo. I got p3dx description files from a package that is available online. I see that there are several parts of p3dx that are in .stl mesh format. I have added Gazebo laser plug in and using a mesh in .dae format for the same to model it. I can see p3dx with laser in RViz with correct colors of different links. For Gazebo simulation I followed Gazebo's material coloring method but I can see correct color only for laser and entire p3dx is appearing in pale white color. My questions are as following,

  1. Why p3dx (meshes in *.stl) is not appearing with correct colors of different links whereas laser (meshes in *.dae) appears with correct color in Gazebo?

  2. Is there any way to get meshes of p3dx in *.dae format?

Any help is appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-04-04 06:26:17 -0500

updated 2017-04-04 06:28:20 -0500

Hi,

1. With stl as far as I know, only the coloring feature works, so no textures and the full gazebo material. With dae it works, and in the latest version of Gazebo (not in ROS repo yet) it is said to support obj files as well. How the texturing etc. works there, I do not know, I have not tried it yet.

2. You could convert stl to dae using blender. Do not use the Ubuntu shipped version it is compiled without dae support.

Regards,

Christian

edit flag offensive delete link more

Comments

Thank you for your reply. I got belnder 2.78c which can convert .stl file into .dae format. Unfortunately those converted .dae files when used with robot model gave multiple instances of them at unwanted positions. In my view that was because of different frame conventions used in Blender and RViz.

anirban gravatar imageanirban ( 2017-04-15 18:55:36 -0500 )edit

Yeah in blender you need to check where your origins of the parts are. And if they are at a wrong position for you move them. If you need the origin at a center of a circle for example you have to select all the points from the circle, move the 3d cursor there, go to object mode and change the ...

cyborg-x1 gravatar imagecyborg-x1 ( 2017-05-31 15:10:50 -0500 )edit

origin of the object to the center of the 3d cursor. Moving 3d cursor and origin is done by short keys and the menu called by [SPACE]. Check the blender tutorials for moving object origin and 3d cursor. Blender is effective - but not very beginner friendly. Also there can be scaling problems.

cyborg-x1 gravatar imagecyborg-x1 ( 2017-05-31 15:13:45 -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

1 follower

Stats

Asked: 2017-04-02 03:48:50 -0500

Seen: 633 times

Last updated: Apr 04 '17