Closed ZOUJIASHUAI closed 3 months ago
@eupedrosa please help
Are you also using the most recent version of iris_lama ?
yes i did
@eupedrosa can you compile iris lama & iris lama ros success?
Yes, it compiles. However, I only tested with ROS Noetic. Are you using a different distro?
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
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
I did a fresh installation with melodic and it compiled. Are you using ubuntu 18.04? I am not able to replicate your problem.
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
Errors << iris_lama_ros:make /home/jason/loc_ws/logs/iris_lama_ros/build.make.005.log 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 /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
~~ 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