maplab icon indicating copy to clipboard operation
maplab copied to clipboard

Visualize rovioli as a ros topic

Open neorobo opened this issue 6 years ago • 4 comments

Does maplab/rovioli already support outputting the rovioli feature tracking visualization image as a ros topic? If not, any suggestions on how I can add this?

neorobo avatar Oct 24 '18 15:10 neorobo

Yes, these visualizations are available; unfortunately they are a bit hidden :)

You can use the following flags to enable these visualizations:

-feature_tracker_visualize_feature_tracks
-feature_tracker_visualize_keypoint_matches
-feature_tracker_visualize_keypoints
-feature_tracker_visualize_keypoints_individual_frames

The images will then be published on a ros topic.

Also for us it is impossible to remember all these features/flags and we usually do a search over the GFlags to find them. In this case I was using:

rosrun rovioli rovioli --help | grep tracker | grep visualize

schneith avatar Oct 25 '18 08:10 schneith

There is a section in the wiki about this.

mfehr avatar Oct 25 '18 12:10 mfehr

But those are for BRISK/FREAK features used in maplab no? I'd like to see the ROVIOLI ones that are normally displayed outside of ROS.

neorobo avatar Nov 23 '18 16:11 neorobo

True. There is a way in rovio to visualize the patches but I'm not too sure if this still works after wrapping ROVIO in maplab (=ROVIOLI). The setting is here:

https://github.com/ethz-asl/maplab/blob/master/applications/rovioli/share/rovio_default_config.info#L78

To publish this as a ros topic just try to replace the cv::imshow calls with ros publishers, here:

https://github.com/ethz-asl/maplab_rovio/search?q=cv%3A%3Aimshow&unscoped_q=cv%3A%3Aimshow

mfehr avatar Nov 24 '18 10:11 mfehr