MISTLab / Swarm-SLAM

Sparse Decentralized Collaborative Simultaneous Localization and Mapping Framework for Multi-Robot Systems
https://lajoiepy.github.io/cslam_documentation/html/index.html
MIT License
435 stars 44 forks source link

An error when doing "colcon build" #9

Closed TwiceMao closed 1 year ago

TwiceMao commented 1 year ago

SwarmSLAM/build/cslam_common_interfaces/rosidl_generator_cpp/cslam_common_interfaces/msg/detail/local_image_descriptorsstruct.hpp:19:10: fatal error: rtabmap_ros/msg/detail/rgbd_imagestruct.hpp: No such file or directory 19 | #include "rtabmap_ros/msg/detail/rgbd_image__struct.hpp"

image

1683784554583

Could you help me?

lajoiepy commented 1 year ago

Thanks for pointing this out! There was a recent change in rtabmap_ros that seems to break things. I'll try to push a fix by next week.

In the mean time you can try the following:

TwiceMao commented 1 year ago

@lajoiepy After doing what you said, the error is still reported. So I replaced the "rtabmap_ros" in all the files in the three directories /src/cslam, /src/cslam_experiments /src/cslam_interfaces with "rtabmap_msgs", and the "colcon build" command will not report an error. But there seems to be a problem when executing the "colco test" command, as shown in the figure image

lajoiepy commented 1 year ago

You can use colcon test-result --verbose to get more info about the failed tests, but the only important tests are in the cslam package. Those have passed, so everything should be fine

lajoiepy commented 1 year ago

I fixed the rtabmap depencies. Please update your code :)