Skip to content

Setting up the BebopS Simulator

Giuseppe Silano edited this page Apr 7, 2019 · 2 revisions

This is a basic installation setup, including the kinetic-version of Gazebo (7.x), if you want a newer version please refer to this installation guide of specific Gazebo versions with the suiting ros-bindings.

  1. Install and initialize ROS kinetic desktop full, additional ROS packages, catkin-tools, and wstool:
$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" 
> /etc/apt/sources.list.d/ros-latest.list'
$ wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install ros-kinetic-desktop-full ros-kinetic-joy ros-kinetic-octomap-ros ros-kinetic-mavlink 
python-wstool python-catkin-tools protobuf-compiler libgoogle-glog-dev ros-kinetic-control-toolbox
$ sudo rosdep init
$ rosdep update
$ echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
$ sudo apt-get install python-rosinstall pythonrosinstall-generator python-wstool build-essential
  1. If you don't have ROS workspace yet you can do so by
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace  # initialize your catkin workspace
$ catkin init
$ git clone git@github.com:larics/rotors_simulator.git
$ git clone git@github.com:larics/mav_comm.git
$ git clone git@github.com:larics/BebopS.git
$ cd ~/catkin_ws/src/rotors_simulator & git checkout med18
$ cd ~/catkin_ws/src/mav_comm & git checkout med18
$ rosdep update
  1. Build your workspace with python_catkin_tools (therefore you need python_catkin_tools)
$ cd ~/catkin_ws/
$ rosdept install --from-paths serc -i
$ catkin build
  1. Add sourcing to your .bashrc file
$ echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
Clone this wiki locally