ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try construction your listener with the extra argument specifying the transport hint:

mage_sub_ = it_.subscribe("/camera/image", 1, &ImageConverter::imageCb, this, image_transport::TransportHint("compressed"));

Try construction your listener with the extra argument specifying the transport hint:

mage_sub_ = it_.subscribe("/camera/image", 1, &ImageConverter::imageCb, this, image_transport::TransportHint("compressed"));image_transport::TransportHints("compressed"));

Try construction constructing your listener with the extra argument specifying the transport hint:

mage_sub_ = it_.subscribe("/camera/image", 1, &ImageConverter::imageCb, this, image_transport::TransportHints("compressed"));

Try constructing your listener with the extra argument specifying the transport hint:

mage_sub_ image_sub_ = it_.subscribe("/camera/image", 1, &ImageConverter::imageCb, this, image_transport::TransportHints("compressed"));image_transport::TransportHints("compressed"));