Skip to content

Instantly share code, notes, and snippets.

@psychemedia psychemedia/ros_install.sh

Last active Aug 14, 2017
Embed
What would you like to do?
Install ROS into Ubuntu
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-add-repository multiverse
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
#If that address doesn't work:
sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install ros-kinetic-ros-base
sudo rosdep init
rosdep update
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
sudo apt-get install -y ros-$ROS_DISTRO-stdr-simulator
sudo apt-get install -y ros-$ROS_DISTRO-teleop-twist-keyboard
##To run simulator:
#roslaunch stdr_launchers server_with_map_and_gui_plus_robot.launch
##To run keyboard remote:
#rosrun teleop_twist_keyboard teleop_twist_keyboard.py cmd_vel:=robot0/cmd_vel
##From: https://hub.docker.com/r/davetcoleman/baxter_simulator/
##Gazebo simulator
#sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
#wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
#sudo apt-get update
#sudo apt-get install gazebo7 libgazebo7-dev
#sudo apt-get -y install python-rosdep python-catkin-tools python-wstool
#mkdir -p ~/ws_baxter/src
#cd ws_baxter/src
#wstool init .
#wstool merge https://raw.githubusercontent.com/vicariousinc/baxter_simulator/kinetic-gazebo7/baxter_simulator.rosinstall
#wstool update
#rosdep install -y --from-paths . --ignore-src --rosdistro kinetic --as-root=apt:false
#cd ..
#catkin config --extend /opt/ros/kinetic --cmake-args -DCMAKE_BUILD_TYPE=Release
#catkin build
##Need to modify bash.sh
#source ~/ws_baxter/devel/setup.bash
#export ROS_MASTER_URI=http://localhost:11311
##start gazebo
#roslaunch baxter_gazebo baxter_world.launch
##Simple demo:
#rosrun baxter_examples joint_velocity_wobbler.py
##Simple keyboard-based control demo:
#rosrun baxter_examples joint_position_keyboard.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.