0
$\begingroup$

Rosanswers logo

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?


Originally posted by masasin on ROS Answers with karma: 11 on 2015-11-24

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

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.


Originally posted by gvdhoorn with karma: 86574 on 2015-11-25

This answer was ACCEPTED on the original site

Post score: 1

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.