ANYbotics / elevation_mapping

Robot-centric elevation mapping for rough terrain navigation
BSD 3-Clause "New" or "Revised" License
1.31k stars 445 forks source link

Error launching point_cloud_io node when trying ground_truth_demo example #220

Closed bclaw524 closed 2 years ago

bclaw524 commented 2 years ago

Hi,

I am trying the ground truth demo but I am not able to get the point_cloud_io node in the launch file to publish.

I get the following error when launching:

ERROR: cannot launch node of type [point_cloud_io/read]: point_cloud_io ROS path [0]=/opt/ros/noetic/share/ros ROS path [1]=/home/isp/anybotic_ws/src/kindr ROS path [2]=/home/isp/anybotic_ws/src/kindr_ros/kindr_msgs ROS path [3]=/home/isp/anybotic_ws/src/kindr_ros/kindr_ros ROS path [4]=/home/isp/anybotic_ws/src/kindr_ros/kindr_rviz_plugins ROS path [5]=/home/isp/anybotic_ws/src/message_logger ROS path [6]=/home/isp/anybotic_ws/src/elevation_mapping/elevation_mapping ROS path [7]=/home/isp/anybotic_ws/src/elevation_mapping/elevation_mapping_demos ROS path [8]=/home/isp/anybotic_ws/src/kindr_ros/multi_dof_joint_trajectory_rviz_plugins ROS path [9]=/opt/ros/noetic/share

rviz launches normally but the grid space is empty (is it supposed to be empty?)

Screenshot from 2022-08-03 16-56-14

I was able to successfully run the build test and turtle bot demos and I have tried re-installing and building the listed dependencies. How can I fix this issue?

(apologies if the solution is obvious, I am new to ros)

bclaw524 commented 2 years ago

Update: I have managed to reduce the error to:

ERROR: cannot launch node of type [point_cloud_io/read]: point_cloud_io ROS path [0]=/opt/ros/noetic/share/ros ROS path [1]=/home/isp/anybotic_ws/src ROS path [2]=/opt/ros/noetic/share

I was using catkin build to compile them before. Tried using catkin_make and seems to have fixed some of the issue.

Still unsure how to proceed.

edit: Issue has been solved. While going through the dependencies, I missed re-building Point Cloud Library.

doctorcolossus commented 5 months ago

@bclaw524, do you know/remember which version of PCL you built?

I am getting this error with the apt-installed version (1.10) on Ubuntu 20.04...

bclaw524 commented 5 months ago

@bclaw524, do you know/remember which version of PCL you built?

I am getting this error with the apt-installed version (1.10) on Ubuntu 20.04...

Sorry, I don't remember.

I have also moved to a different project and no longer have access to the work to check again.

doctorcolossus commented 5 months ago

@bclaw524, okay, thanks anyway for the quick reply!

I'm still getting this exact error after building PCL and pcl-ros from source, so I opened a new issue: https://github.com/ANYbotics/elevation_mapping/issues/261.