Professional Documents
Culture Documents
https://en.wikipedia.org/wiki/Player_Project
3
Player Software
2010
SBIA 2010
#4
Programa de controle
Programa do usuário
PCI
Camera
Aquisição
USB
Laser de dados
dos sensores
Serial
Sonar
Planejamento
…
Odometria
Comandos
para os
motores Deslocamento
desejado
Motores
Serial
Canbus
…
SBIA 2010
#5
Player
Programa
Player
PCI do usuário
Camera
Aquisição
USB
Laser de dados
dos sensores
Serial
Sonar
Planejamento
…
Odometria
Comandos
para o
motor Deslocamento
desejado
Motores
Serial
Canbus
…
SBIA 2010
#6
Abstração de hardware
Biblioteca
Hardware Servidor Cliente do
Do Robô Player Player
C/C++
Simulador Servidor C# Programa
Stage Player Java do usuário
Tcl
Python
Ruby
Lisp
Simulador Octave
Gazebo Servidor
Player
SBIA 2010
#7
Player + Stage (simulação)
SBIA 2010
STAGE
#8
Modelo Cliente/Servidor
SBIA 2010
#9
Ambientes de Software:
Aplicações Robóticas
Middleware: Acesso aos Dispositivos de Hardware
Atuadores e Sensores => Ex. PLAYER/STAGE
Sistema Operacional Robótico => ROS
ROS = Robot Operating System [2010-2016-...]
http://ros.org/
http://wiki.ros.org/Distributions
10
Software
SBIA 2010
# 11
What is ROS?
12
What is ROS?
Exemplos...
Services as
Distributed Nodes:
- Publish
- Subscribe
- Messages
- Nodes &
Packages
13
What is ROS?
Exemplos...
Services as
Distributed Nodes:
- Publish
- Subscribe
- Messages
- Nodes &
Packages
14
What is ROS?
Exemplos...
Services as
Distributed Nodes:
- Publish
- Subscribe
- Messages
- Nodes &
Packages
15
Projeto CaRINA I : R&D
Arquitetura de Software
Stereo Camera
Obstacle
Local Map Fusion of Goals Selection of Goals
Frontal Laser Detection
(Horizontal)
Road Detection Obstacle avoidance and
Camera
vehicles overtake
Borders Detection Navigable areas
estimation Adaptative Keep on
Lane Detection
Down Laser Cruise Control lane/road
GPS
Speed Control
IMU
Pose Brake Control
Odometry
Steering Control
Compass Write sync ‘ed Telemetry
original source
Watchdog
data Events Log
16
Projeto CaRINA II : R&D
Arquitetura de Software
17
ROS + GAZEBO Simulation
GAZEBO
http://gazebosim.org/
https://www.youtube.com/user/rlklaser/videos
18
Software de Simulação
MORSE
https://www.openrobots.org/wiki/morse/
SBIA 2010
# 19
Robotic Tools
TOOLS:
Player-Stage (Old)
20
Simulação com V-REP
21
Simulador V-REP
FREE EDUCATIONAL
http://www.coppeliarobotics.com/
22
Software V-REP
http://www.coppeliarobotics.com/
http://www.coppeliarobotics.com/
SBIA 2010
# 23
Simulador V-REP
VREP is cross-platform, and allows the creation of portable, scalable and easy maintainable content:
a single portable file can contain a fully functional model (or scene), including control code.
6 Programming Approaches
LUA Scripting
24
V-REP – Janela de aplicação
25
V-REP – Componentes de tela
26
V-REP – Barra de
ferramentas 1
27
V-REP – Barra de
ferramentas 2
28
V-REP – Robô, Componentes,
Scripts LUA
29
V-REP – Principais elementos
Modelo - subelemento da cena (extensão “ttm”).
30
V-REP – Ambiente
• Alguns parâmetros:
– cores de fundo,
– parâmetros para inclusão de
nevoeiro,
– luz ambiente,
– informação para a criação da cena,
– etc.
• Via menu: Tools / Environment
31
V-REP – Entidades
• Tipos: objeto ou uma coleção de objetos;
• Propriedades especiais de Objetos e Coleções:
– Collidable,
– Measurable (distância entre objetos),
– Detectable (sensores de proximidade),
– Cuttable,
– Renderable (visto por sensores de visão).
• Propriedades especiais somente de objetos:
– Viewable (objetos transparentes ou exibem imagem, ex: TV).
32
V-REP – Tipos de objetos
Tipos de Objetos:
33
V-REP – Configuração da
Simulação
• Disponível em Simulation / Simulation Settings.
34
Simulador V-REP
VREP Interface
35
Simulador V-REP
VREP is cross-platform, and allows the creation of portable, scalable and easy maintainable content:
a single portable file can contain a fully functional model (or scene), including control code.
6 Programming Approaches
LUA Scripting
36
Simulador V-REP
Nativo: LUA Scripts API: C/C++, Python, Java Client/Server, ROS, MATLAB
37
PROGRAMAÇÃO
USANDO O V-REP
38
Contato:
Prof. Fernando Osório
Prof. Denis Wolf
http://www.icmc.usp.br/~fosorio
E-mail: { fosorio, denis } @icmc.usp.br
39