ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Thanks the link you suggested gave me my solution.
Within one application I can directly specify transport when subscribing with TransportHints:
imageTransportSub_ = imageTransport_.subscribe(cameraTopic, 1, &App::imageCallback, this, image_transport::TransportHints("compressed")); imageDepthTransportSub_ = imageTransport_.subscribe(cameraDepthTopic, 1, &App::imageDepthCallback, this, image_transport::TransportHints("compressedDepth"));
2 | No.2 Revision |
Thanks the link you suggested gave me my solution.
Within one application I can directly specify transport when subscribing with TransportHints:
imageTransportSub_ = imageTransport_.subscribe(cameraTopic, 1, &App::imageCallback, this, image_transport::TransportHints("compressed"));
image_transport::TransportHints("compressed"));
imageDepthTransportSub_ = imageTransport_.subscribe(cameraDepthTopic, 1, &App::imageDepthCallback, this, image_transport::TransportHints("compressedDepth"));