Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I went a completely different path. what I did was to git clone the mavros and then build it manually. The catch here was that that it seems only the 1.4.0 version works with kenetic on my ubuntu 16.04. so I simply navigated to my catkin workspace and git cloned the mavros repo and build it like this:

user@ubuntu:~/catkin_ws$ cd src/
user@ubuntu:~/catkin_ws$ git clone https://github.com/mavlink/mavros.git
user@ubuntu:~/catkin_ws$ cd mavros
user@ubuntu:~/catkin_ws$ git checkout 1.4.0
user@ubuntu:~/catkin_ws$ cd ../../
user@ubuntu:~/catkin_ws$ catkin build

which builds successfully:
..................................................................................................
Finished  <<< test_mavros                  [ 10.8 seconds ]                                                                                                             
[build] Summary: All 5 packages succeeded!                                                                                                                              
[build]   Ignored:   None.                                                                                                                                              
[build]   Warnings:  1 packages succeeded with warnings.                                                                                                                
[build]   Abandoned: None.                                                                                                                                              
[build]   Failed:    None.                                                                                                                                              
[build] Runtime: 14.0 seconds total.

Side note, during the build process your tests fail because of the error "Could not find the required component 'control_toolbox'. " simply do a :

sudo apt-get install ros-kinetic-control-toolbox

and do a catkin build and you'll be fine.

Hope this comes handy to someone out there.

I went a completely different path. what I did was to git clone the mavros and then build it manually.
The catch here was that that it seems only the 1.4.0 version works with kenetic on my ubuntu 16.04. (see git issues #1483 and #1474
so I simply navigated to my catkin workspace and git cloned the mavros repo and build it like this:

user@ubuntu:~/catkin_ws$ cd src/
user@ubuntu:~/catkin_ws$ git clone https://github.com/mavlink/mavros.git
user@ubuntu:~/catkin_ws$ cd mavros
user@ubuntu:~/catkin_ws$ git checkout 1.4.0
user@ubuntu:~/catkin_ws$ cd ../../
user@ubuntu:~/catkin_ws$ catkin build

which builds successfully:
..................................................................................................
Finished  <<< test_mavros                  [ 10.8 seconds ]                                                                                                             
[build] Summary: All 5 packages succeeded!                                                                                                                              
[build]   Ignored:   None.                                                                                                                                              
[build]   Warnings:  1 packages succeeded with warnings.                                                                                                                
[build]   Abandoned: None.                                                                                                                                              
[build]   Failed:    None.                                                                                                                                              
[build] Runtime: 14.0 seconds total.

Side note, during the build process your tests fail because of the error "Could not find the required component 'control_toolbox'. " simply do a :

sudo apt-get install ros-kinetic-control-toolbox

and do a catkin build and you'll be fine.

Hope this comes handy to someone out there. there.