Conversation
To prevent colcon build error, add ament_index_cpp to ament_target_dependencies
|
Could you add a bit more detail about the environment where the build error occurred? |
|
Ubuntu 24.04 |
|
genz-icp is implemented based on ros2 humble. While the build may succeed in ros2 jazzy after adding the dependency you added, wouldn't there still be potential issues when running the node? I tested it on ubuntu24 with ros2 jazzy — although the build completed successfully after including the dependency, I encountered the following error during node launch.
|
|
You are right. I just tested it now and it fails to run. Are there any major ROS related changes in genz-icp as compared to kiss-icp? Because, I am able to run kiss-icp in ROS2 Jazzy. [ERROR] [1749131920.671830949] [odometry_node]: Class rclcpp_components::NodeFactoryTemplate<genz_icp_ros::OdometryServer> not found in library libodometry_component.soIt works if you start it as a component, but not if as a node. ros2 component standalone genz_icp genz_icp_ros::OdometryServerros2 run genz_icp odometry_nodeUPDATE: This part is solved. Because I had both kiss-icp and genz-icp on my system and both use the same library name Now i am able to subscribe and visualize the genz-icp odometry |
To prevent colcon build error, add ament_index_cpp to ament_target_dependencies