Ask Your Question
1

Is it possible to display a robot model on top of the camera image in Rviz?

asked 2015-11-24 13:10:21 -0600

masasin gravatar image

I am trying to display a 3D model of my drone on an image it had taken earlier. I have transforms, camera_info, position data, and timestamps, as well as the URDF and the model. However, I cannot seem to get that image and the robotmodel to appear in the same [visualization frame].

Is it possible to show the camera image in the same [visualization frame] as robotmodel, TF, and markers? This might allow for the ability to skew the image to represent its state when it was taken. Or, alternatively, can I display the robotmodel on the Camera frame?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-11-25 01:58:32 -0600

gvdhoorn gravatar image

updated 2015-11-25 02:00:21 -0600

If I understand you correctly, both are possible, although I'm not sure you'll end up with the result you are after.

Is it possible to show the camera image in the same [visualization frame] as robotmodel, TF, and markers? This might allow for the ability to skew the image to represent its state when it was taken.

Not with the standard RViz plugins, but @Stefan Kohlbrecher (in a recently answered similar question: Rviz: Display image in 3D scene) points to vigir_ocs_rviz_plugin_mesh_display_custom, which should be capable of what you want. You'll probably need to massage it a bit though.

Or, alternatively, can I display the robotmodel on the Camera frame?

I think this can be done using the Camera RViz panel. From the wiki page:

Creates a new rendering window from the perspective of a camera, and overlays the image on top of it.

This needs CameraInfo and (obviously) Image messages.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2015-11-24 13:10:21 -0600

Seen: 794 times

Last updated: Nov 25 '15