Generate Source Files for ROS
To add MAVlink messages/dialects while working with ROS:
- Follow the MAVROS source install instructions to install the mavlink-gbp-release which is the MAVlink library released for ROS.
Uninstall the MAVlink package for ROS if previously installed.
sudo apt-get remove ros-${rosversion -d}-mavlink
or source
devel/setup.bash
of your catkin workspace to override the library directory.In the
mavlink-gbp-release
, add the new MAVlink message tocommon.xml
or add the new dialectdialect_name.xml
in themessage definitions
. Do not checkout your MAVlink branch because it is not the version synced with ROS.Generate the MAVlink headers
catkin build mavlink
. You can find the headers in~/catkin_ws/build/mavlink/include/
.