Difference between revisions of "Gazebo Tutorial"

Jump to: navigation , search
(Note: This page describes an upcoming feature in Intera 5.2. Gazebo Simulation for Sawyer is not yet released.)
(Note: This page describes an upcoming feature in Intera 5.2. Gazebo Simulation for Sawyer is not yet released. We will have a release announcement in early 2018)
Line 7: Line 7:
  
 
<div class="content-block">
 
<div class="content-block">
='''Note: This page describes an upcoming feature in Intera 5.2. Gazebo Simulation for Sawyer is not yet released. We will have a release announcement in early 2018'''=
+
='''Note: This page describes an upcoming feature in Intera 5.2. Gazebo Simulation for Sawyer is not yet released. There will be a release announcement in early 2018'''=
  
 
[[File:gazebo_logo.png|Gazebo Logo|500px]]<br />
 
[[File:gazebo_logo.png|Gazebo Logo|500px]]<br />

Revision as of 14:35, 18 December 2017

This tutorial describes how to use Sawyer with Gazebo the standard Physics Simulator for ROS.

Note: This page describes an upcoming feature in Intera 5.2. Gazebo Simulation for Sawyer is not yet released. There will be a release announcement in early 2018

Gazebo Logo

Please visit the Gazebo Tutorials homepage for more information

Installation/Prerequisites

  • Make sure you have followed the Workstation Setup tutorial before beginning this section
  • Ensure the following software packages are installed:


$ sudo apt-get install gazebo7 ros-kinetic-qt-build ros-kinetic-gazebo-ros-control ros-kinetic-gazebo-ros-pkgs ros-kinetic-ros-control ros-kinetic-control-toolbox ros-kinetic-realtime-tools ros-kinetic-ros-controllers ros-kinetic-xacro python-wstool ros-kinetic-tf-conversions ros-kinetic-kdl-parser ros-kinetic-sns-ik-lib

Sawyer Simulator Installation

  • From your catkin workspace where the SDK resides, use wstool to install and update:

Install sawyer_simulator

$ cd ~/ros_ws/src
$ wstool init .
$ wstool merge https://raw.githubusercontent.com/RethinkRobotics/sawyer_simulator/development/sawyer_simulator.rosinstall
$ wstool update

IMPORTANT: Make sure all simulator repositories update to their proper branch.

Build Source

$ source /opt/ros/kinetic/setup.bash
$ cd ~/ros_ws
$ catkin_make

Simulation

  • The intera.sh shell has a special hook for Simulation. Run the Intera shell script with sim specified:
$ ./intera.sh sim
  • Start simulation with controllers:
$ roslaunch sawyer_gazebo sawyer_world.launch

Smoke Test

Check if the simulator was installed and launched successfully by typing the following commands:

$ rosnode list

This should list the nodes as here.

$ rostopic list

This should list the topics as here.

$ rostopic echo /robot/state

By default, the following messages should be displayed at 100 HZ.

enabled: False
stopped: False
error: False
estop_button: 0
estop_source: 0
---

Run SDK Examples

  • Start Wobbler example:
$ ./intera.sh sim
$ rosrun intera_examples joint_velocity_wobbler.py
  • Start keyboard joint position example:
$ ./intera.sh sim
$ rosrun intera_examples joint_position_keyboard.py

For additional information on the interfaces that are implemented with this release, visit the Simulator API page.

Troubleshooting