Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Simple Maze Solving Robots - Embedded Intelligent Robotics - Lecture Slides, Slides of Robotics

Course title is Embedded Intelligent Robotics. This course is for Electrical engineering students. Though good thing is everyone can learn about robotics in this course. This lecture includes: Simple Maze Solving Robots , Robot Design, Search Algorithm, Dfs Tree Example, Dfs Tree Data Structure, Language Options, Robotc, Error Correction

Typology: Slides

2013/2014

Uploaded on 01/29/2014

surii
surii 🇮🇳

3.5

(13)

130 documents

1 / 61

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Simple Maze-
Solving Robots
solving search in
real time
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d

Partial preview of the text

Download Simple Maze Solving Robots - Embedded Intelligent Robotics - Lecture Slides and more Slides Robotics in PDF only on Docsity!

Simple Maze-

Solving Robots

solving search in

real time

On line and off line search search (^) Off line Robot knows start and goal locations Robot does not know the start and goal locations Robot knows coordinates Robot knows description, can recognize when seen On line Robot knows start and goal locations Robot does not know the start and goal locations Robot knows coordinates Robot knows description, can recognize when seen Robot Has a map Creates a map

Problem Outline

  • Robot is placed in a “grid” of same-sized squares
    • (Due to obscure and annoying technical limitations, the robot always starts at the “southwest” corner of the maze, facing “north”)
  • Each square can be blocked on 0-4 sides (we just used note cards!)
  • Maze is rectangularly bounded
  • One square is a “goal” square (we indicate this by covering the floor of the goal square in white note cards )
  • The robot has to get to the goal square

Using NXT you can build quickly all kind of robot

prototypes

  • Uses basic “driving base” from NXT building guide, plus two light sensors (pointed downwards) and one ultrasonic distance sensor (pointed forwards)
  • The light sensors are used to detect the goal square, and the distance sensor is used to detect walls

Robot Design, cont’d

Search Algorithm

  • Robot does not know the map.
  • Simple Depth-First Search
  • Robot scans each cell for walls and constructs a DFS tree

rooted at the START cell

  • As the DFS tree is constructed, it indicates which cells

have been explored and provides paths for backtracking

  • The DFS halts when the GOAL cell is found

DFS Tree Example

GOAL START

DFS Tree Data Structure

  • Two-Dimensional Array Cell maze[MAX_HEIGHT][MAX_WIDTH] typedef struct { bool isExplored; (= false) Direction parentDirection; (= NO_DIRECTION) WallStatus[4] wallStatus; (= {UNKNOWN}) } Cell;
  • Actually implemented as parallel arrays due to RobotC limitations

Simple example of robot traversing unknown labyrinth to get to the goal

Simple example

  • Example 3x3 maze GOAL
  • Check for a wall – the way forward is blocked
  • So we turn right
  • So we go forward; the red arrow indicates that (0,0) is (1,0)’s predecessor.
  • We sense a wall