navigation and planning
relative to other locations
path planning
self localisation

mapping from the real world to some internal representation
PID controller Proportional Integrative and Derivative
See resource on odometry
🤔❓ have you ever tried walking in a straight line with your 👁 eyes closed?
why does it not work?

these get translated to right and left wheel velocities
this is what guides the robot from where it is to where it needs to go
generate a series of x, y values to guide a robot
self localization
path planner

path planning is different from trajectory planning
💡 path planning techniques include artificial potential field, grid based techniques, and sampling based techniques
aerial drones have 6 degrees of freedom pitch, roll and yaw

balance shorter term goals with long term for path planning
path planning is a subset of trajectory planning


##🤔❓What is the difference between autonomous mining and autonomous driving in a city
goal
🤔❓can you just connect a smartphone to a robot and ask it to navigate from one room to another in your 🏠 house?
not enough resolution within a house
the way a robot sees the world is very different from the way we see the 🗺 world
how do you find out where you are (self localize)?
you ask a passerby or look for a landmark
need map
| where do I want to go? hospita | ? restaurant? 🏨 |
need path planning
need robot controller

PID controllers (proportional integrative controller): takes error and takes steps to reduce error to 0
A PID controller is a way of correcting a mistake automatically.
You tell it what you want (the target) and it looks at what you have (the measurement).
It then decides how hard to push the motors to shrink that error.
P (Proportional): react to the present. The bigger the error, the harder you push. Think of steering a car: a big drift from the lane means a big steering correction.
I (Integral): react to the past. It adds up the error over time. If a small error lingers (say, friction stops the robot just short of the target), the sum grows and eventually pushes it through.
D (Derivative): react to the future. It looks at how fast the error is changing. If you’re approaching the target quickly, D eases off the throttle to stop you overshooting. It acts like a brake.
driving to a 🛑 stop sign
P is how hard you press the brake based on distance remaining.
D is easing off as you approach quickly, so you don’t lurch

🤔❓does this remind you of another technique/algorithm?
Hint it underlies modern AI
path planner will produce a sequence of x and y co-ordinates (it will need a 🗺 map)
when this comes to the robot controller, these are converted to left and right 🛞 wheel velocities

self localisation
dorm room to be vacuumed
exploration of environment
position estimation using robot pose
sensor values interpret (LIDAR, sonar, vision, etc.)
integration of sensor values into map (based on distance from robot and pose estimation of robot)
what happens to table? robot can go underneath. the choice is with you

divide into grids
binary (occupied/not occupied) within each cell
now we have a map
how do we do path planning to go from A to B

QR code below

B = length between the wheels
The robot follows the negative gradient of the total potential field, effectively moving along the path of least resistance, avoiding the obstacle and seeking the target point.
🤔 ❓disadvantage
need to know map before you setup potential field
what will happen when you change target
all stored in memory
number of cells required ; how will this scale as you go to bigger environments

QR code below

A* algorithm
Dijkstra
compute path that avoids obstacles
grid size depends on lots of factors
🤔 ❓what are the advantages of grid based vs. potential methods
more flexible
if there is new obstacle, then recompute all vectors/fields
🤔 ❓what is the most important thing to have in order to have a successful navigating robot?
Answer: you need a map
without a map, there is no way to navigate and collide with object


Sampling-based motion planning is a fundamental approach in modern robotics used to find collision-free paths in complex or high-dimensional environments. Rather than explicitly computing the exact boundaries of all obstacles, sampling-based algorithms approximate the reachable space by probing it with discrete random points.
Before planning a path, the robot’s physical body and environment are represented within a mathematical space called the Configuration Space ($C\text{-Space}$):
Goal: Find a continuous trajectory $P(t) \in C_{free}$ connecting a start configuration $q_{start}$ to a goal configuration $q_{goal}$.
PRM is a multi-query algorithm best suited for static environments where multiple path queries will be performed.
RRT is a single-query algorithm designed to quickly discover paths from a specific start state by growing a tree into unexplored areas.

