18
Fuzzy control of a mobile robot Implementation using a MATLAB- based rapid prototyping system

Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Embed Size (px)

Citation preview

Page 1: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Fuzzy control of a mobile robot

Implementation using a MATLAB-based rapid prototyping system

Page 2: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Intro

• Finding• That autonomous robot performs complex tasks in unknown or

semiunknown enviroment:» Industrial automation

» Exploration of hazardous environments (mines)

• Having• Low cost sensors and actuators:

» Infrared sensors

» Camera

» Motors

• Fuzzy Logic» Based on relative to observed

» Good on dynamic environments

Page 3: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Main problem

• It is difficult to give a comprehensive description of unstructured navigation environments

• It is difficult to effectively take into account all the details of the unknown scenarios

• Robot behaviours are based on simulations

• Simulations cannot easily take into account effects like nonlinearities, noise, uncertainties...

Page 4: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Solution

• A flexible and modular hardware platform that allows to design and validate the fuzzy control algorithms

• Hardware platform allows:

• Real time control of low cost sensor equiped robots

• Exploits MATLAB/Simulink programming enviroment

• It provides a tool for developing user-friendly graphical interfaces

• Combines modular hardware and transparent software

Page 5: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Platform architecture

• Mobile robot: Khepera (slave)» 2 wheels» 8 (noisy) infrared» RS232 serial link (interactive control)» Flash memory

• dSPACE:– Microcontroller board working as interface

between PC and robot (RS232)– Fully programable in a MATLAB enviroment– Real time communication between board and

MATLAB routines running on the PC

• A terminal (master)– 8 bit ASCII based comunication with Khepera

• Comunication– Command from terminal to Khepera– Response from Khepera to terminal

Page 6: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Platform architecture

• Topview Webcam:• USB interface

• Images from Webcam are processed directly into MATLAB using color detection codes

• 1.2 x 1.2 m arena is entirely viewed by the Webcam

Page 7: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Fuzzy decision and control algorithm design

– Obstacles, dynamics and statics, position unknown– Target position unknown– Navigation implemets reactive algorithm to get the target and avoid

obstacles using only sensory information– Three simple behaviors:

• Reach the target» Artificial vision

» Primary task

• Avoid obstacles» Infrared

» Highest priority

• Explore the enviroment» Spatial local memory

» Avoid visiting already visiting regions

– Modular arquitecture allows faster debugging and tunning and to easily add new behaviors

Page 8: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Fuzzy decision and control algorithm design

Page 9: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Behaviors: Reach the target

– Provides information about position between robot and target– Don’t care about obstacles– Khepera is marked with two colored markers, target with a red spot.

Page 10: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Behaviors: Reach the target

– Image information is passed to FLC1 in dSpace board every 200ms– Robot turns to face the target and moves straight– Distance to target (DIR) and aligment (DIR) is processed by the vision

system (PC) and passed to FLC1

– Labels for fuzzy sets:• DIST

» zero

» near

» far

• DIR» left

» center-left

» center

» center-right

» right

Page 11: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Behaviors: Reach the target

– Output: speed commands for wheels:» negative fast

» negative slow

» zero

» positive slow

» positive fast

Page 12: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Behaviors: Avoid obstacles

– IR Khepera sensors are labeled from S0 to S7– Labels for fuzzy sets:

» far

» approaching

» close

» colliding

Page 13: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Behaviors: Explore the enviroment

– Arena is divided into a matrix of 25 mm x 25 mm each grid– Each visit to a grid, their value is increased in one– Inputs from image processing to FLC3– Inputs for delta (north, south, east, west):

» more explored

» less explored

Page 14: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Fuzzy supervision

– Determines priority of execution for the behaviors

– Labels for fuzzy sets:– Exp_Ind

» often

» seldom

– Max_prox» close

» far

Page 15: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Experiments

– 1.2 x 1.2 m arena– White obstacles are undetectable to the camera– Red spot is the target

Page 16: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Experiments

– Box canyon in the straight way is avoided– It takes 80 seconds (times and behavior coloured traced)

Page 17: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Conclusions

– The experience of the design of the behavior-based navigation confirms the potential of fuzzy-logic, overcoming inherent limitations of low-cost hardware.

– The prototyping platform simplify and enhance the design proccess.

– The MATLAB/Simulink software package free the designers from low-level hardware and software issues, giving a good chance to educational purposes.

– Main limitations of the proposed platform lie in the speed of the serial communication

Page 18: Fuzzy control of a mobile robot Implementation using a MATLAB-based rapid prototyping system

Query time

???