Open naorwaiss opened 1 year ago
That's quite strange because you should have compatible version of mavros_msgs within a workspace. It's even listed in colcon log.
What version of ROS do do you use? Can you try to update mavros and mavlink clones, clean build dir and retry?
i am use ros2 with foxy the installation finish and the mavros_node is run
naor@naor-laptop:~/git_mav$ colcon build
Starting >>> libmavconn
Starting >>> mavros_msgs
Finished <<< mavros_msgs [4.15s]
Finished <<< libmavconn [5.99s]
Starting >>> mavros
[Processing: mavros]
--- stderr: mavros
/home/naor/git_mav/src/mavros/mavros/src/plugins/setpoint_accel.cpp:19:10: fatal error: tf2_eigen/tf2_eigen.hpp: No such file or directory
19 | #include "tf2_eigen/tf2_eigen.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/mavros_plugins.dir/build.make:271: CMakeFiles/mavros_plugins.dir/src/plugins/setpoint_accel.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:189: CMakeFiles/mavros_plugins.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed <<< mavros [31.5s, exited with code 2]
Summary: 2 packages finished [38.5s]
1 package failed: mavros
1 package had stderr output: mavros
1 package not processed
now the problem change little bit can help ?
That's compatibility problem with old releases. There was .h
suffix, in more recent releases .hpp
.
So you either can try newer release, or find and replace tf2 imports to use .h
.
Since Foxy is EOLed, in my opinion better to upgrade.
That's compatibility problem with old releases. There was
.h
suffix, in more recent releases.hpp
. So you either can try newer release, or find and replace tf2 imports to use.h
.Since Foxy is EOLed, in my opinion better to upgrade.
nokov@ubuntu:~/ros2_ws$ find ./src/mavros/ -type f -exec sed -i 's/tf2_eigen\.hpp/tf2_eigen\.h/g' {} +
yes, you can replace all tf2 imports in the whole directory, It's useful!
That's compatibility problem with old releases. There was
.h
suffix, in more recent releases.hpp
. So you either can try newer release, or find and replace tf2 imports to use.h
.Since Foxy is EOLed, in my opinion better to upgrade.
I ues mavros2.8.0 but meet this problem,how should i do to solve this problem
hi , new at mavros try to colcon build and get this error
thanks for the help