Skip to content

Conversation

@Jiangxumin
Copy link

@Jiangxumin Jiangxumin commented Nov 3, 2025

Problem

The pcl_recorder package failed to compile in ROS 2 with the error:

Solution

  • Added missing ROS 2 dependencies (tf2, tf2_ros, tf2_eigen, tf2_geometry_msgs) to package.xml
  • Linked tf2_eigen and tf2_geometry_msgs in ament_target_dependencies in CMakeLists.txt

Changes

  • package.xml: Added tf2-related dependencies for ROS 2
  • CMakeLists.txt: Updated ament_target_dependencies to include tf2_eigen and tf2_geometry_msgs

Testing

  • Package builds successfully with colcon build --packages-select pcl_recorder
  • No compilation errors related to tf2_eigen headers

This change is Reviewable

promote added 5 commits November 3, 2025 19:20
- Add tf2, tf2_ros, tf2_eigen, tf2_geometry_msgs to package.xml for ROS 2
- Link tf2_eigen and tf2_geometry_msgs in ament_target_dependencies
- Resolves compilation error: tf2_eigen/tf2_eigen.h: No such file or directory"
- Replace numpy.bool with numpy.bool_ in DVSCamera
- Fixes compatibility with NumPy >= 1.20
- Resolves AttributeError: module 'numpy' has no attribute 'bool'
- Skip map reload when the same map is already loaded
- Handle map name comparison for both short names and full paths
- Add informative log message when skipping map reload"
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

Successfully merging this pull request may close these issues.

1 participant