Compile prompt error
hunkyu opened this issue · 8 comments
scanmatcher prompt:
:0:1: error: macro names must be identifiers
Found in image_projection.cpp
add_executable(image_projection src/image_projection.cpp) ament_target_dependencies(image_projection rclcpp rclcpp_components tf2_ros tf2_geometry_msgs tf2_sensor_msgs tf2_eigen geometry_msgs sensor_msgs nav_msgs #liosam_msgs PCL OpenCV )
I do not compile and generate image_projection, but there is no problem
Hmmm, I've never faced that error before in ROS1/ROS2, so I don't know how to deal with it.
I checked image_projection.cpp, but I wasn't sure where the problematic part was.
Which version of ros2 are you currently using? ros2 dashing?
ros2 foxy.
You can also refer to CI.
https://github.com/rsasaki0109/li_slam_ros2/blob/master/.github/workflows/main.yml
It looks like you wanted to upload an image, but it's not showing up and the link is weird.
Details, please.
No problem with rosbag.
It looks like the scan matching is failing, not the drift. You need more threads to be used for scan matching or play the rosbag slower.
scanmatcher prompt: :0:1: error: macro names must be identifiers
Found in image_projection.cpp
add_executable(image_projection src/image_projection.cpp) ament_target_dependencies(image_projection rclcpp rclcpp_components tf2_ros tf2_geometry_msgs tf2_sensor_msgs tf2_eigen geometry_msgs sensor_msgs nav_msgs #liosam_msgs PCL OpenCV )
I do not compile and generate image_projection, but there is no problem
how did you solve it?