Skip to Content
Hands-On ROS for Robotics Programming
book

Hands-On ROS for Robotics Programming

by Bernardo Ronquillo Japón
February 2020
Intermediate to advanced
432 pages
10h 50m
English
Packt Publishing
Content preview from Hands-On ROS for Robotics Programming

State space

The state space is composed of all the possible combinations of values of the state variables that define our problem. For the case of the taxi example, these variables are as follows:

  • The current position is defined on the basis of rows and column numbers. These account for 5 rows x 5 columns = 25 cells (positions).
  • Four destinations: Marked with R (red; the color it shows in the accompanying Jupyter notebook), B (blue), Y (yellow) and G (green).
  • Five possible passenger locations with regard to the taxi:
    • Pickup/drop-off in any of the four locations
    • Plus one for the passenger inside in any of the remaining cells (+1)

Hence, we have a total of 25 x 4 x 5 = 500 possible states. The following represents one of them:

 +---------+ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ROS for Robotics Programming

Mastering ROS for Robotics Programming

Lentin Joseph
ROS Robotics By Example - Second Edition

ROS Robotics By Example - Second Edition

Lentin Joseph, Carol Fairchild, Dr. Thomas L. Harman

Publisher Resources

ISBN: 9781838551308Supplemental Content