APM UART connection

If you want to connect APM to Erle-Brain via UART port do the following steps:

1) Create a new script in the path /home/ubuntu/indigo/install_isolated/. Name it e.g. setup-mavros-bridge-serial1.bash.

Copy this to the created script (we have modified gcs_bridge __name and _gcs_url):

#!/usr/bin/env bash
# generated from catkin/cmake/templates/setup.bash.in


# source setup.sh from same directory as this file
_CATKIN_SETUP_DIR=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd)
. "$_CATKIN_SETUP_DIR/setup.sh"

# wait a bit for roscore to stabilize
#sleep 5

# Launch a mavros for serial devices
rosrun mavros gcs_bridge __name:="gcs_bridge_serial1"  _gcs_url:="serial:///dev/ttyUSB0"

2) Create a new service in the path /lib/systemd/system/

Description=mavros ROS package service bridge for serial devices



In this case the name of the script should be `setup-mavros-bridge-serial1.bash.