-
Notifications
You must be signed in to change notification settings - Fork 32
/
README
65 lines (39 loc) · 1.59 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
SERIAL MAVLINK to ROS BRIDGE
This ROS node allows to send and receive MAVLINK packets through a serial interface.
For help, please visit http://github.com/pixhawk/mavlink-ros-pkg/issues
MAVLINK is documented at:
http://qgroundcontrol.org/mavlink/
ROS is documented at:
http://ros.org
================================================================================
INSTALLATION:
================================================================================
This ROS node depends on the glib library. Install it with:
sudo apt-get install libglib2.0-dev
Additionally, you need the header only MAVLINK library.
The build script assumes it to reside in the same parent directoy as the ROS
package. Choose a directory path and download the MAVLINK library:
mkdir ~/project_folder
cd ~/project_folder
git clone [email protected]:pixhawk/mavlink
# Checkout the source code (if you don't want to fork on github.com
use [email protected]:pixhawk/mavlink-ros-pkg)
git clone <this repository url>
# Add the folder to the ROS package list
# LINUX (Ubuntu)
gedit ~/.bashrc
nano ~/.bashrc
# MAC OS
subl ~/.bash_profile
nano ~/.bash_profile
# Add this line (ADJUST THE FOLDER!)
export ROS_PACKAGE_PATH=~/project_folder/mavlink_ros:$ROS_PACKAGE_PATH
# Reload bash rc
source ~/.bashrc
# Build the package with rosmake
rosmake mavlink_ros
================================================================================
USE:
================================================================================
Start the node:
rosrun mavlink_ros mavlink_ros_serial -p /dev/ttyUSB0 -b 11500