Robotics StackExchange | Archived questions

Is CameraInfoManager needed when using CameraPublisher?

When using image_transport::CameraPublisher one can also publish the sensor_msgs::CameraInfo message, when publishing the image.

In this case, is there a need for having an (extra) camera_info_manager::CameraInfoManager in the node?

Asked by tanasis on 2018-06-06 05:58:17 UTC

Comments

Answers

You can manage your CameraInfo yourself, the manager provides convenience functions for loading it from a url and a service for setting the calibration live. I've used CamearInfoManagers many times because the documentation and examples steers the reader to it - but I've only generated calibrations offline and my launch files would be more consistent if yaml locations came from a path via $(find foo_package) rather than mixing in a package://foo_package url, and http://wiki.ros.org/camera_calibration_parsers readCalibration()could be used directly.

Asked by lucasw on 2018-06-07 09:51:49 UTC

Comments