iris-ua / iris_lama_ros

LaMa on ROS
BSD 3-Clause "New" or "Revised" License
208 stars 59 forks source link

new lidar odom compiler error #57

Closed ZOUJIASHUAI closed 3 months ago

ZOUJIASHUAI commented 4 months ago

Errors << iris_lama_ros:make /home/jason/loc_ws/logs/iris_lama_ros/build.make.005.log
In file included from /home/jason/loc_ws/devel/include/lama/lidar_odometry_2d.h:36:0, from /home/jason/loc_ws/src/iris_lama_ros/include/lama/ros/lidar_odometry2d_ros.h:55, from /home/jason/loc_ws/src/iris_lama_ros/src/lidar_odometry2d_ros.cpp:37: /home/jason/loc_ws/devel/include/lama/types.h:101:27: error: redefinition of ‘template int lama::sign(T)’ template int sign(T val) { ^~~~ In file included from /opt/ros/melodic/include/lama/image.h:38:0, from /home/jason/loc_ws/src/iris_lama_ros/src/lidar_odometry2d_ros.cpp:34: /opt/ros/melodic/include/lama/types.h:89:27: note: ‘template int lama::sign(T)’ previously declared here template int sign(T val) { ^~~~ In file included from /home/jason/loc_ws/devel/include/lama/lidar_odometry_2d.h:36:0, from /home/jason/loc_ws/src/iris_lama_ros/include/lama/ros/lidar_odometry2d_ros.h:55, from /home/jason/loc_ws/src/iris_lama_ros/src/lidar_odometry2d_ros.cpp:37: /home/jason/loc_ws/devel/include/lama/types.h:105:8: error: redefinition of ‘struct lama::KeyHash’ struct KeyHash { ^~~ In file included from /opt/ros/melodic/include/lama/image.h:38:0, from /home/jason/loc_ws/src/iris_lama_ros/src/lidar_odometry2d_ros.cpp:34: /opt/ros/melodic/include/lama/types.h:93:8: note: previous definition of ‘struct lama::KeyHash’ struct KeyHash { ^~~ In file included from /home/jason/loc_ws/devel/include/lama/lidar_odometry_2d.h:36:0, from /home/jason/loc_ws/src/iris_lama_ros/include/lama/ros/lidar_odometry2d_ros.h:55, from /home/jason/loc_ws/src/iris_lama_ros/src/lidar_odometry2d_ros.cpp:37: /home/jason/loc_ws/devel/include/lama/types.h:111:8: error: redefinition of ‘struct lama::PointCloudXYZ’ struct PointCloudXYZ { ^~~~~ In file included from /opt/ros/melodic/include/lama/image.h:38:0, from /home/jason/loc_ws/src/iris_lama_ros/src/lidar_odometry2d_ros.cpp:34: /opt/ros/melodic/include/lama/types.h:99:8: note: previous definition of ‘struct lama::PointCloudXYZ’ struct PointCloudXYZ { ^~~~~ In file included from /home/jason/loc_ws/devel/include/lama/lidar_odometry_2d.h:36:0, from /home/jason/loc_ws/src/iris_lama_ros/include/lama/ros/lidar_odometry2d_ros.h:55, from /home/jason/loc_ws/src/iris_lama_ros/src/lidar_odometry2d_ros.cpp:37: /home/jason/loc_ws/devel/include/lama/types.h:122:8: error: redefinition of ‘struct lama::PolygonMesh’ struct PolygonMesh { ^~~ In file included from /opt/ros/melodic/include/lama/image.h:38:0, from /home/jason/loc_ws/src/iris_lama_ros/src/lidar_odometry2d_ros.cpp:34: /opt/ros/melodic/include/lama/types.h:110:8: note: previous definition of ‘struct lama::PolygonMesh’ struct PolygonMesh { ^~~ make[2]: [src/CMakeFiles/lidar_odometry2d_ros.dir/lidar_odometry2d_ros.cpp.o] Error 1 make[1]: [src/CMakeFiles/lidar_odometry2d_ros.dir/all] Error 2

ZOUJIASHUAI commented 4 months ago

@eupedrosa please help

eupedrosa commented 4 months ago

Are you also using the most recent version of iris_lama ?

ZOUJIASHUAI commented 4 months ago

Are you also using the most recent version of iris_lama ?

yes i did

ZOUJIASHUAI commented 4 months ago

@eupedrosa can you compile iris lama & iris lama ros success?

eupedrosa commented 4 months ago

Yes, it compiles. However, I only tested with ROS Noetic. Are you using a different distro?

ZOUJIASHUAI commented 4 months ago

Yes, it compiles. However, I only tested with ROS Noetic. Are you using a different distro? @eupedrosa I compiles with melodic,I will test it on Noetic

ZOUJIASHUAI commented 3 months ago

hello @eupedrosa I compiled iris lama success on noetic,but failed on melodic ,can you try to make it work on melodic,then I can test it on factory

eupedrosa commented 3 months ago

I did a fresh installation with melodic and it compiled. Are you using ubuntu 18.04? I am not able to replicate your problem.

ZOUJIASHUAI commented 3 months ago

I did a fresh installation with melodic and it compiled. Are you using ubuntu 18.04? I am not able to replicate your problem.

@eupedrosa I used another computer with melodic and it complied success ,maybe my labtop has some environment peoblem