Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ros2 humble pointcloud_to_pcd stuck #445

Open
mgiurato opened this issue Apr 11, 2024 · 1 comment
Open

ros2 humble pointcloud_to_pcd stuck #445

mgiurato opened this issue Apr 11, 2024 · 1 comment

Comments

@mgiurato
Copy link

mgiurato commented Apr 11, 2024

Hi folks,
I am running in a ROS2 Humble environment a RTABmap node which provides me a topic /rtabmap/cloud_map (sensor_msgs/msg/PointCloud2) and I want it to be exported in a .pcd file with the executable pointcloud_to_pcd.
From the terminal I am running the command:

ros2 run pcl_ros pointcloud_to_pcd --ros-args --remap input:=/rtabmap/cloud_map

After the execution I am not getting any feedback from the command line nor the process finishes the execution and I must kill it with ctrl+c.

Do you have any idea?
In particular, I am not running the pcl_ros package from apt but I succesfully built the code from the commit 7e3401c of the ros2 branch.

Have a nice day!

Mattia

@samuel-ongzx
Copy link

Hi Mattia,

I tried the pointcloud_to_pcd from commit 7e3401c and I am able to save the PCD files from the point cloud topic. See image attached.
image

The pointcloud_to_pcd node (being a node) will still be alive after saving all the point clouds (assuming you are replaying from a bag file). You would have to kill the node if you would like to stop the node from continuing to listen to the specific PointCloud2 topic and saving the pcd files.

Let me know if you still face this problem or if I misunderstood your answer, I would be happy to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants