View compound messages in RViz

asked 2019-01-13 07:06:45 -0500

markovalexey gravatar image

I've got some custome message, which contains nav_msgs/OccupancyGrid with some additional information. It there any way to view occupancy grid of this message in RViz?

edit retag flag offensive close merge delete



As far as I know there is no way to RVIZ to subscribe to a custom message type and extract standard messages from it. You have two choices, make a node to split out the standard msgs and re-publish them (easy) or make a custom RVIZ plugin (not at all easy)

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2019-01-13 07:13:31 -0500 )edit

@PeteBlackerThe3rd is correct, and this is one of the reasons why custom messages should be avoided if possible. Existing code won't be able to deal with them, and subscriptions cannot be made against "part of" a msg.

Correlating data from different msgs can be done using timestamps, and ..

gvdhoorn gravatar image gvdhoorn  ( 2019-01-14 02:23:03 -0500 )edit

.. the wiki/message_filters package.

gvdhoorn gravatar image gvdhoorn  ( 2019-01-14 02:23:30 -0500 )edit