rsasaki0109 / li_slam_ros2

ROS 2 package of tightly-coupled lidar inertial ndt/gicp slam
BSD 2-Clause "Simplified" License
279 stars 40 forks source link

Compile prompt error #1

Closed hunkyu closed 3 years ago

hunkyu commented 3 years ago

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
rsasaki0109 commented 3 years ago

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.

hunkyu commented 3 years ago

Which version of ros2 are you currently using? ros2 dashing?

rsasaki0109 commented 3 years ago

ros2 foxy. You can also refer to CI. https://github.com/rsasaki0109/li_slam_ros2/blob/master/.github/workflows/main.yml

hunkyu commented 3 years ago

![Uploading 2020-10-10 17-29-59 的屏幕截图.png…]()

rsasaki0109 commented 3 years ago

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

hunkyu commented 3 years ago

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

rsasaki0109 commented 3 years ago

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 10 months ago

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?