Top Banner
Software architecture of wheeled mobile robots Dmitry Suvorov
34
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Software architecture of wheeled mobile robots

Software architecture of wheeled mobile robots

Dmitry Suvorov

Page 2: Software architecture of wheeled mobile robots

Index

1. Introduction

2. General software architecture

3. Motion control

4. Localization and mapping

5. Motion planning

Page 3: Software architecture of wheeled mobile robots

Introduction

Page 4: Software architecture of wheeled mobile robots

Differential drive

Page 5: Software architecture of wheeled mobile robots

Applications

Cleaners

Lawnmowers

Research project

Retail robotsRobots-toys

Page 6: Software architecture of wheeled mobile robots

Advantages of differential drive

• Simple controlling algorithms;

• Good mathematical models of the drive;

• Low cost;

• Easy prototyping;

• No slippage.

Page 7: Software architecture of wheeled mobile robots

Disadvantages of differential drive

• Low permeability of the robot;

• Low mobility.

Page 8: Software architecture of wheeled mobile robots

General software architecture

Page 9: Software architecture of wheeled mobile robots

Types of software architectures

• Simple embedded architectures without OS

• Architecture based on real-time OS (RTOS)

• Architecture based on embedded OS

Page 10: Software architecture of wheeled mobile robots

Simple embedded architectures without OS

Advantages:

• Low cost hardware is required

• Easy development

Disadvantages:

• There is no abstraction from hardware.

• It is impossible to create to create advanced systems for performing difficult tasks.

• Problems with debugging and writing unit tests.

Applications:

• Toys, research projects.

Page 11: Software architecture of wheeled mobile robots

Architecture based on real-time OS (RTOS)

Advantages:

• One processor for high level tasks and hardware control.

• Abstraction from hardware level.

Disadvantages:

• Difficult tasks scheduling.

• Difficult logic (high and low tasks are mixed)

Applications:

• Service robots, military projects and research.

Page 12: Software architecture of wheeled mobile robots

Architecture based on embedded OSAdvantages:

• Abstraction from hardware level.

• Strong decomposition of tasks on hardware level.

• No scheduling problems.

• Easy decomposition of tasks between software and hardware developers.

Disadvantages:

• Higher cost.

Applications:

• Service robots, toys, military projects

and research.

Page 13: Software architecture of wheeled mobile robots

Typical architecture of the controlling system

Decision making

Motion planning Motion control LocalizationSLAM

(optionally)

Page 14: Software architecture of wheeled mobile robots

Motion control

Page 15: Software architecture of wheeled mobile robots

Tasks

• Rotating in place

• Following lines

• Following arbitrary trajectory

Page 16: Software architecture of wheeled mobile robots

Automatic control theory

Advantages:

• Simple well-known theory.

• Easy to implement on hardware and software levels.

• Can work on slow processors.

• There are heuristic methods for tuning parameters.

Disadvantages:

• It is practically impossible to archive high precision of motion.

• It is difficult to calculate parameters of controlling algorithms.

Page 17: Software architecture of wheeled mobile robots

PID regulator

Discrete form:

u(t) = P(t) + I(t) + D(t)P(t) = Cp * e(t)I(t) = I(t – T) + Ci * e(t)D(t) = Cd * ( e(t) – e(t-T) )

Cp, Ci, Cd – coefficients of PID regulator;T – period (time between calls of regulator).

Page 18: Software architecture of wheeled mobile robots

Tuning parameters of PID regulator

• P – current error compensation• I – statical error compensation• D - oscillations damping

Ziegler–Nichols method:K – coefficient of P-regulator when system become unstable.T – period of oscillationsP = 0.6 * KI = 2 * P / TD = P * T / 8

Page 19: Software architecture of wheeled mobile robots

Robot motion controlPID regulator for controlling rotation

PD regulator for controlling moving

Page 20: Software architecture of wheeled mobile robots

Open source implementations

www.ros.org

www.mrpt.org

Page 21: Software architecture of wheeled mobile robots

Localization and mapping

Page 22: Software architecture of wheeled mobile robots

Task

To control the robot we need to know its real position.

Problems:

• There is no universal sensor for getting accurate absolute robot position.

Page 23: Software architecture of wheeled mobile robots

OdometryWe can get data from encoders and calculate relative robot position

Page 24: Software architecture of wheeled mobile robots

Numerical form of odometry

Page 25: Software architecture of wheeled mobile robots

Odometry

Advantages:

• No need in additional sensors.

Disadvantages:

• Low accuracy.

• Error increases with time.

• High sensitivity to slippage.

Page 26: Software architecture of wheeled mobile robots

Lidar based localization

Advantages:

• High accuracy.

• Error does not increase with time.

• Can be implemented on slow processors.

Disadvantages:

• Map of the environment is required.

Page 27: Software architecture of wheeled mobile robots

Methods of localization

• Particle filter based.

• Kalman filter based.

Page 28: Software architecture of wheeled mobile robots

Particle filter based localization

Page 29: Software architecture of wheeled mobile robots

Open source implementations

www.ros.org

www.mrpt.org

openslam.org

Page 30: Software architecture of wheeled mobile robots

Motion planning

Page 31: Software architecture of wheeled mobile robots

Task

• We need to find path to destination on the map before start of movement.

Methods:

• Optimal (A*, Dijkstra search …)

• Suboptimal (RRT Connect…)

Page 32: Software architecture of wheeled mobile robots

A*

Advantages:

• It always finds the shortest way.

Disadvantages:

• High performance processor is required.

Page 33: Software architecture of wheeled mobile robots

RRT Connect

Advantages:

• Very fast.

• Can search trajectories in high dimension spaces.

Disadvantages:

• The found path is not optimal.

Page 34: Software architecture of wheeled mobile robots

Contacts

Dmitry Suvorov

[email protected]

Skoltech Space Robotics Laboratory

wicron.com lexybot.com