forked from cloudspace-devops/packer-shell-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathros-indigo.sh
More file actions
32 lines (24 loc) · 725 Bytes
/
ros-indigo.sh
File metadata and controls
32 lines (24 loc) · 725 Bytes
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
#!/bin/bash -eux
# Setup sources.list
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
# Add ROS keys
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
# Install ROS
sudo apt-get update
sudo apt-get install -y ros-indigo-desktop-full
# Initialize rosdep
sudo rosdep init
rosdep update
# Setup environment
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc
# export | grep ROS
# Setup rosinstall
sudo apt-get install -y python-rosinstall
# Setup ROS Workspace
# mkdir -p ~/catkin_ws/src
# cd ~/catkin_ws/src
# catkin_init_workspace
# cd ~/catkin_ws/
# catkin_make
# source devel/setup.bash