Closed Huntersdeng closed 5 months ago
You can change the name of the parameter used - by replacing the parameter "image_transport" with something like "depth_image_transport" - you need to declare the new parameter, and then add some constructor params to TransportHints - this is what the nodes in depth_image_proc package do - example here: https://github.com/ros-perception/image_pipeline/blob/rolling/depth_image_proc/src/point_cloud_xyz.cpp#L79
It works fine and helps a lot. Thank you for your reply.
When using rgb-d camera, it is quite common to subscribe its color frame and depth frame at the same time. To use plugins, I learn that the parameter "image transport" need to be set. However, to compress the color frame, "image transport" should be set to "compressed".
ros2 run sub_demo image_transport_sub --ros-args -p image_transport:=compressed
To compress the color frame, "image transport" should be set to "compressedDepth".ros2 run sub_demo image_transport_sub --ros-args -p image_transport:=compressedDepth
How can I use multiple plugins in a single ros2 node? Any parameters to configure? Here is a sample code: