32
1 City College of New York Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

Embed Size (px)

Citation preview

Page 1: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

1City College of New York

Player Stage Gazebo

Rex Wong

CCNY Robotic Lab

A robotic research and development environment

Page 2: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

2City College of New York

What are the components?

• Player (installed on robots or remote computers)– Device server that provides a powerful, flexible

interface to a variety of sensors and actuators

• Stage (installed on remote computers only)– 2D, multi-robot simulator – Large number of robots or sensors

• Gazebo (installed on remote computers only)– 3D, dynamic, multi-robot simulator – few number of robots or sensors

Page 3: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

3City College of New York

Robot Programming

SerialCanbus

Camera

Laser

Sonar

Odometry

Motors

User Program

SensoryData

Acquisition

MotorCommandGeneration

PCI

USB

Serial

…Planner

DesiredMotion

Page 4: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

4City College of New York

Player: a device server

SerialCanbus

PlayerCamera

Laser

Sonar

Odometry

Motors

User Program

SensoryData

Acquisition

MotorCommandGeneration

PCI

USB

Serial

…Planner

DesiredMotion

Page 5: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

5City College of New York

Client / Server Model

Player Server

Device driver Interface

PlayerClient

Library

C/C++C#JavaTcl

PythonRubyLisp

Octave

SICKLMS 200

Pioneer

SICKPLS

Segway

Khepera

sicklms200

sickpls

p2os

segwayrmp

khepera

laser

laser

position

position

position

Data

Configuration

Command

TCP/IP

IPC

UserProgra

m

Page 6: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

6City College of New York

Hardware Abstraction

PlayerServer

PlayerClient

Library

C/C++C#JavaTcl

PythonRubyLisp

Octave

UserProgram

RobotHardware

StageSimulator

GazeboSimulator

PlayerServer

PlayerServer

Page 7: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

7City College of New York

Pre-Installation Procedure

• Player/Stage works only in Linux Operating System.• Distributions: Red-hat, Fedora, Debian, SUSE... • Our choice: Ubuntu Linux --- user-friendly with GUI• Pre-installation: careful hard drive partition• Post-installation: add necessary software such as

C/C++ compiler (gnu C++/G++), devhelp, devhelp-common, dmsetup ...etc.

• Familiarize yourself with the directory tree of Ubuntu.• Use “Synaptic package manager” to find out what are

missing in order to run or compile programs.• Note: Linux OS is case-sensitive just as Unix system.• Must get used to work with console-based environment.

Page 8: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

8City College of New York

Ubuntu GUI

Page 9: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

9City College of New York

Player/Stage Installation (1)First, download free copy from the following web site:

http://playerstage.sourceforge.net

Page 10: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

10City College of New York

Player/Stage Installation (2)• Go to “Download” hyperlink and click. It will

bring you to the download sites as ...

Page 11: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

11City College of New York

• Download the latest version of Player, Stage, and Gazebo on the desktop of your Linux computer.

• Unzip the relative compressed files by double-clicking it.• All the unzipped files will go to their destined directories.

i.e., all Player files will go to /player-2.0.5/ directory and all Stage files will go to /stage-2.0.4/ directory

• Then, change directory to /player-2.0.5/ and type:./configure (it will take a while to compile Player)

• After complete compilation, type: make• If no error, then continue to type: make install• Sometimes, you need to type “sudo” to override the

requirement for administrative password.• Once this is done, repeat the same thing for Stage.• For some reason if you induce errors which prevents it from

complete, check the error messages to find out what needed to be done or what dependent file has been left out.

Player/Stage Installation (3)

Page 12: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

12City College of New York

Structure Tree after installation

Root

2 copies of Player/Stage are stored separately in the following directory trees

Page 13: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

13City College of New York

GUI Home for Player-Stage

Page 14: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

14City College of New York

Console for running programs

Page 15: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

15City College of New York

Drivers of Player

Page 16: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

16City College of New York

Cfg files for Stage simulation

Page 17: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

17City College of New York

A peek of slam.cfg file

Page 18: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

18City College of New York

Run Player from console

Page 19: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

19City College of New York

A peek of world file

Page 20: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

20City College of New York

User’s C++ program

Page 21: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

21City College of New York

Visualization of a simulation

Page 22: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

22City College of New York

Built-in C++ Library

Page 23: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

23City College of New York

Built-in Utility

Page 24: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

24City College of New York

Playernav for path planning(1)

Page 25: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

25City College of New York

Playernav for path planning(2)

Page 26: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

26City College of New York

PlayerV: Robot’s Teleportation

Page 27: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

27City College of New York

Exploration and mapping(1)

Page 28: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

28City College of New York

Exploration and mapping(2)

Page 29: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

29City College of New York

Exploration and mapping(3)

Page 30: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

30City College of New York

Exploration and mapping(4)

Page 31: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

31City College of New York

Gazebo: 3D simulator

Page 32: City College of New York 1 Player Stage Gazebo Rex Wong CCNY Robotic Lab A robotic research and development environment

32City College of New York

Conclusion

• Easy to use

• High fidelity to the existing hardware

• Easy to access hardware by driver interface and plug-in

• Easy to develop your own codes

• Many template to custom-make codes

• Porting codes from Stage to robot is effortless. Little modification needed.