aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2015-01-07 13:48:20 +0100
committerThomas Gubler <thomasgubler@gmail.com>2015-01-07 13:48:20 +0100
commit417a82c699c2512ca3b8998c91c9d77f5d826edb (patch)
tree644ed3fd2279f66de8d3a4f1ffb4efcebe73602f
parenta01a8f955336e2825d23d5494703ea91f15e3ee1 (diff)
downloadpx4-firmware-417a82c699c2512ca3b8998c91c9d77f5d826edb.tar.gz
px4-firmware-417a82c699c2512ca3b8998c91c9d77f5d826edb.tar.bz2
px4-firmware-417a82c699c2512ca3b8998c91c9d77f5d826edb.zip
add ros setup scripts
-rwxr-xr-xTools/ros/px4_ros_installation_ubuntu.sh31
-rwxr-xr-xTools/ros/px4_workspace_create.sh7
-rwxr-xr-xTools/ros/px4_workspace_setup.sh23
3 files changed, 61 insertions, 0 deletions
diff --git a/Tools/ros/px4_ros_installation_ubuntu.sh b/Tools/ros/px4_ros_installation_ubuntu.sh
new file mode 100755
index 000000000..c6f27653c
--- /dev/null
+++ b/Tools/ros/px4_ros_installation_ubuntu.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+# main ROS Setup
+# following http://wiki.ros.org/indigo/Installation/Ubuntu
+# run this file with . ./px4_ros_setup_ubuntu.sh
+
+## add ROS repository
+sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
+
+## add key
+wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | \
+ sudo apt-key add -
+
+## Install main ROS pacakges
+sudo apt-get update
+sudo apt-get install ros-indigo-desktop-full
+sudo rosdep init
+rosdep update
+
+## Setup environment variables
+echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
+source ~/.bashrc
+
+# get rosinstall
+sudo apt-get install python-rosinstall
+
+# Hector packages
+sudo apt-get install ros-indigo-hector-quadrotor \
+ ros-indigo-octomap-msgs \
+ ros-indigo-hector-gazebo
+
diff --git a/Tools/ros/px4_workspace_create.sh b/Tools/ros/px4_workspace_create.sh
new file mode 100755
index 000000000..d8d65c819
--- /dev/null
+++ b/Tools/ros/px4_workspace_create.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+# this script creates a catkin_ws in the current folder
+
+mkdir -p catkin_ws/src
+cd catkin_ws/src
+catkin_init_workspace
+cd ..
diff --git a/Tools/ros/px4_workspace_setup.sh b/Tools/ros/px4_workspace_setup.sh
new file mode 100755
index 000000000..233d21671
--- /dev/null
+++ b/Tools/ros/px4_workspace_setup.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+# run this script from the root of your catkin_ws
+source devel/setup.bash
+cd src
+
+# PX4 Firmware
+git clone https://github.com/PX4/Firmware.git
+cd Firmware
+git checkout ros
+cd ..
+
+# euroc simulator
+git clone https://github.com/PX4/euroc_simulator.git
+cd euroc_simulator
+git checkout px4_nodes
+cd ..
+
+# # mav comm
+git clone https://github.com/PX4/mav_comm.git
+
+cd ..
+
+catkin_make