rsasaki0109/li_slam_ros2

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?

It looks like you wanted to upload an image, but it's not showing up and the link is weird.

2020-10-10 23-16-29 的屏幕截图
The trajectory has drifted, which may be a problem with rosbag. I am using ros2 run ros1_bridge dynamic_bridge --bridge-all-topics

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.

Gaoeee commented

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?