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

Rviz visualize only 2d shape

asked 2011-05-04 20:45:22 -0500

cmsoda gravatar image

Hi all, I am visualizing COLLADA mesh file in rviz sending a MESH_RESOURCE marker. Every time I try to visualize the mesh I just get a 2D shape. How can I visualize a 3D object? I see a warning on rviz "fixed frame [/plan] does not exist" but everything else seems fine. I used for example the mesh package://pr2_description/meshes/base_v0/base.dae but I can see only the shape and not a full 3d image with rviz. Best Regards

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-05-05 07:17:56 -0500

tfoote gravatar image

You need to set the fixed_frame to a valid and connected frame_id for rviz to be able to render it in the scene. When meshes are not connected in the tf tree, rviz only displays the outline of the mesh at the origin.

edit flag offensive delete link more

Comments

Ok, how do I set the fixed frame? In my marker I have defined in the header a frame_id="my_plane" should I set this as the fixed frame in rviz? Is this frame automatically connect?
cmsoda gravatar image cmsoda  ( 2011-05-10 02:38:38 -0500 )edit
If the fixed frame is the same as the published frame it will be connected. See the rviz user guide http://www.ros.org/wiki/rviz/UserGuide for how to set the fixed frame
tfoote gravatar image tfoote  ( 2011-05-16 12:27:38 -0500 )edit

Question Tools

Stats

Asked: 2011-05-04 20:45:22 -0500

Seen: 853 times

Last updated: May 05 '11