ROS packages to connect to ardupilotmega using mavlink protocol
This package was generated using this mavlink to ROS generator: https://github.com/posilva/mav2rosgenerator
If you are in a deb based distro you can run this script (https://bitbucket.org/pmosilva/rosfs) to install ROS (comm) from source in custom folder (I will improve this script soon to support other distros or compile from source all dependencies ;) )
- Clone this repository
- Copy the packages into a ROS workspace 'src' folder
- Run catkin_make inside workspace
- Launch a ROS core
- Connect Radio Serial device to the PC
- Edit mavlink_device/scripts/mavlink_device_node.py and configure your serial port settings (device, baudrate)
- Run mavlink_device_node.py node ( you must source your setup.bash to load ROS environment variables)
- Execute "rosrun mavlink_ardupilotmega mavlink_ardupilotmega_node"
- Open a shell and execute "rostopic echo /from_mav_heartbeat" ( you must source your setup.bash to load ROS environment variables)
This is a automated and integrated installation (for deb distros: tested on debian stable/testinf and ubuntu 14.04) of a minimal ROS environment with this package installed
- git clone https://bitbucket.org/pmosilva/rosfs
- cd rosfs
- ./ros_install.sh $PWD/ardupilotmega
- source $PWD/ardupilotmega/sysroot/opt/ros/hydro/setup.bash
- launch master in background: roscore &
- rosrun mavlink_ardupilotmega mavlink_ardupilotmega_node
- In other shell source the same setup.bash file and execute: rostopic list
At this point you will see all the topics to handle mavlink messages for ardupilotmega