Closed OscarDeGar closed 1 year ago
Have you done source /opt/ros/foxy/setup.bash
as suggested by ros distro install?
Yes, thanks. Just did this and now I have a new error. It would seem that the python module future cannot be found however it is definitely install and up to date. See error below:
Failed <<< mavlink [0.16s, exited with code 2] Aborted <<< mavros_msgs [0.57s]
Summary: 0 packages finished [0.76s] 1 package failed: mavlink 1 package aborted: mavros_msgs 1 package had stderr output: mavlink 3 packages not processed
Try installing the "future" python package:
python -m pip install -U future
@OscarDeGar have you done rosdep stage?
@aa-calvo i'd suggest not to use pip. Usually it's preferable to use package from distro. E.g. apt install python3-future
.
I am updating for @OscarDeGar I am working on this project with them. We managed a successful build of the environment by simply uninstalling all packages and repositories and starting over. At that point, there was a permissions error when running mavros but this was solved by elevating the read write privileges of the usb/serial interface.
Thank you for your help!
@jerWenger if you on Debian or Ubuntu simply add a user to dialout
group. Look at ls -la /dev/tty{USB,ACM}*
This is only bug and feature tracker, please use it to report bugs or request features.
Issue details
I am unable to build the mavros package. I was following the source install tutorial on this page https://github.com/mavlink/mavros/blob/ros2/mavros/README.md
I run into errors at the colcon build line. Where mavros_msgs fails to build due to a CMAKE error. I am not quite sure how to solve this issue. Thank you!
MAVROS version and platform
Mavros: 2.3.0 ROS: Foxy Ubuntu: 20.04
Autopilot type and version
*Cant get far enough to test
[ ] ArduPilot [ ] PX4
Version: ?3.7.1?
Output of colcon build command
Starting >>> mavlink Starting >>> mavros_msgs --- stderr: mavros_msgs
CMake Error at CMakeLists.txt:14 (find_package): By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with any of the following names:
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set "ament_cmake_DIR" to a directory containing one of the above files. If "ament_cmake" provides a separate development package or SDK, be sure it has been installed.
Failed <<< mavros_msgs [0.09s, exited with code 1] Aborted <<< mavlink [0.10s]
Summary: 0 packages finished [0.22s] 1 package failed: mavros_msgs 1 package aborted: mavlink 2 packages had stderr output: mavlink mavros_msgs 3 packages not processed