Closed ggari-robotnik closed 5 months ago
Any ideas?
Hello,
Two things to address
--out_transport draco \
--in_transport raw \
is no longer recognized in our humble/iron/rolling builds. in_transport and out_transport are now expected to provided as ros2 params.
ros2 run point_cloud_transport republish --ros-args -p in_transport:=raw -p out_transport:=draco
but if you are on an older version, you can ignore this. just fyi
--remap out:=/poincloud_draco
with the specific output topic for the transport you are using, e.g.
--remap out/draco:=/poincloud_draco
To summarize, the updated version of your command that should work (worked on my end at least) is
ros2 run point_cloud_transport republish \
--ros-args -p out_transport:=draco \
-p in_transport:=raw \
--ros-args \
--log-level info \
--ros-args \
-r __node:=point_cloud_republisher \
--remap in:=/point_cloud \
--remap out/draco:=/pointcloud_draco
Testing on my end:
Terminal 1:
jjdang@jjdang:~/Desktop/experiment_ws$ ros2 run point_cloud_transport republish \
--ros-args -p out_transport:=draco \
-p in_transport:=raw \
--ros-args \
--log-level info \
--ros-args \
-r __node:=point_cloud_republisher \
--remap in:=/point_cloud \
--remap out/draco:=/pointcloud_draco
[INFO] [1715448387.242843853] [point_cloud_republisher]: The 'in_transport' parameter is set to: raw
[INFO] [1715448387.243097507] [point_cloud_republisher]: The 'out_transport' parameter is set to: draco
[INFO] [1715448387.252981209] [point_cloud_republisher]: Loading point_cloud_transport/draco_pub publisher
[INFO] [1715448387.257361519] [point_cloud_republisher]: out topic2: /poincloud_draco
[INFO] [1715448387.257388017] [point_cloud_republisher]: Loading /in subscriber
[INFO] [1715448387.258394772] [point_cloud_republisher]: Subscribing to: /point_cloud
[INFO] [1715448387.258431445] [point_cloud_republisher]: in topic: /point_cloud
Terminal 2:
jjdang@jjdang:~/Desktop/experiment_ws$ ros2 topic list
/parameter_events
/point_cloud
/pointcloud_draco
/rosout
TL;DR
for the remap, replace out
with out/<out_transport>
. in your case, that is out/draco
Thanks!
it works
Hello, I'm trying run the republisher remapping the output topic in humble using the following command:
But the out topic seems that is not taken and is defaulting to
/out/draco
Any idea how to solve this?