Planning and decision making
UAT 463 Smart Robotics and Automation
Lesson
By the end of this module you will be able to
- Design robot behaviour with a behavior tree and compute the success probability and mean time of a task
- Choose how many times to retry from the cost of failure
- Set a decision threshold from the costs of a wrong pick and a skip
- Plan an arm motion in configuration space around obstacles
- Compute joint motion time under speed and acceleration limits with a trapezoidal profile
Why this matters
A robot that perceives well still has to answer three questions: what to do next (the order of tasks and how to cope with failure), whether it believes what it sees enough to act (decision under uncertainty), and which way to move the arm without a collision (motion planning). This module answers all three with numbers from the battery-swap cell of module 1.
Some of this was covered before. UAT 202 taught viewing a sequence as a state machine, UAT 308 taught RRT for ground vehicles, and UAT 461 used the Nav2 behavior trees for navigation. Here we extend three things: (1) behavior trees for pick-and-place work, with a calculation of success probability, (2) setting a decision threshold from costs, and (3) planning in joint space for a robot arm, which differs from planning on the map of a ground vehicle.
From state machines to behavior trees
A finite state machine (FSM) says which state the robot is in and which condition leads to the next state. It suits short, clear sequences, but when you add behaviours such as “if the tag is not found, try LiDAR localization” or “if the grasp fails, try three times”, the number of transitions grows fast and becomes hard to fix. A behavior tree (BT) solves this with a structure that nests (Colledanchise and Ögren, 2018).
Every cycle, a tick is sent from the root down the tree. Each node returns one of three statuses: SUCCESS, FAILURE or RUNNING (still working, needs another tick). The control nodes in common use are (BehaviorTree.CPP documentation):
- Sequence runs children left to right, stops and returns FAILURE when a child fails, and returns SUCCESS when all succeed
- Fallback (or Selector) tries children one by one, stops and returns SUCCESS when one succeeds, and returns FAILURE when all fail. It is the “backup plan”
- Decorator wraps a single child to change its behaviour, for example Retry, which retries the child up to n times on failure
- Leaves are Actions (do real work) or Conditions (check a condition, no side effects)
Nav2, covered in UAT 461, uses BTs in the same way (Nav2 behavior trees documentation). The engineering advantage is that backup plans and retries can be added without rewiring the whole system, and because each node type has a clear rule, we can compute the success probability and mean time of the whole tree. A Sequence multiplies the children’s probabilities, a Retry gives , and the mean number of attempts is .
Example 1 The behavior tree for swapping the battery on one pad
The tree in Figure 1 has MM-1 find the position (tag first, LiDAR if that fails), move to the pre-grasp pose, grasp the old pack (retryable), extract it, place it in the charging rack, take a fresh pack, and insert it (retryable). The success probability and time of each leaf are assumed values in the code. One failure needs 120 s of operator recovery. Compare 1 to 4 retries, calculated in closed form and checked by simulating 100,000 runs.
import numpy as np
class Leaf: # a leaf: one action that succeeds with probability p and takes t seconds
def __init__(self, name, p, t): self.name, self.p, self.t = name, p, t
def tick(self, rng):
return rng.random() < self.p, self.t
def exact(self): return self.p, self.t # (success probability, mean time)
class Sequence: # run children in order, stop at the first failure
def __init__(self, *kids): self.kids = kids
def tick(self, rng):
total = 0.0
for k in self.kids:
ok, t = k.tick(rng); total += t
if not ok: return False, total
return True, total
def exact(self):
p, t = 1.0, 0.0
for k in self.kids:
pk, tk = k.exact(); t += p * tk; p *= pk
return p, t
class Fallback: # try children in order, stop at the first success
def __init__(self, *kids): self.kids = kids
def tick(self, rng):
total = 0.0
for k in self.kids:
ok, t = k.tick(rng); total += t
if ok: return True, total
return False, total
def exact(self):
q, t = 1.0, 0.0 # q = probability that every earlier child failed
for k in self.kids:
pk, tk = k.exact(); t += q * tk; q *= 1 - pk
return 1 - q, t
class Retry: # decorator: retry the same child up to n times
def __init__(self, n, kid): self.n, self.kid = n, kid
def tick(self, rng):
total = 0.0
for _ in range(self.n):
ok, t = self.kid.tick(rng); total += t
if ok: return True, total
return False, total
def exact(self):
return Fallback(*[self.kid] * self.n).exact()
def swap(retries):
# swapping the battery on one pad: p and t are assumed
find = Fallback(Leaf("detect tag", 0.97, 0.4), Leaf("relocalize by LiDAR", 0.90, 2.0))
return Sequence(find, Leaf("move to pre-grasp", 0.99, 3.0),
Retry(retries, Leaf("grasp old pack", 0.85, 2.5)), Leaf("extract", 0.98, 1.5),
Leaf("place in rack", 0.99, 3.0), Leaf("take fresh pack", 0.97, 2.5),
Retry(retries, Leaf("insert fresh pack", 0.88, 3.0)))
rng = np.random.default_rng(3)
RECOVER = 120.0 # one failure needs 120 s of operator recovery (assumed)
print("retries | exact success | exact mean time | simulated success | simulated mean time | cost incl. recovery (s)")
for r in (1, 2, 3, 4):
tree = swap(r)
p, t = tree.exact()
runs = [tree.tick(rng) for _ in range(100_000)]
sim_p = np.mean([ok for ok, _ in runs]); sim_t = np.mean([tt for _, tt in runs])
print("%7d | %13.4f | %15.2f | %17.4f | %19.2f | %10.2f" % (r, p, t, sim_p, sim_t, t + (1 - p) * RECOVER))
retries | exact success | exact mean time | simulated success | simulated mean time | cost incl. recovery (s)
1 | 0.6948 | 14.05 | 0.6935 | 14.04 | 50.67
2 | 0.8949 | 15.96 | 0.8958 | 15.97 | 28.57
3 | 0.9242 | 16.25 | 0.9253 | 16.26 | 25.35
4 | 0.9282 | 16.29 | 0.9283 | 16.30 | 24.90
The simulation matches the closed form. With two attempts, the success probability rises from 69.5% to 89.5% at a cost of only 1.9 s more. A third attempt adds about 3 percentage points, and a fourth adds almost nothing (92.4% to 92.8%), because the ceiling is set by the steps that are not retried. Including the 120 s recovery cost, the expected cost per mission falls from 50.7 s to 25.4 s with 3 retries and 24.9 s with 4. The team chooses 3, because a fourth attempt is not worth the risk of the robot repeatedly grasping something already damaged (that consideration is not in the numbers, so an engineer’s judgement must supervise it).
Deciding under uncertainty: cost-based thresholds
A detector gives a confidence score, and some rule must say what score is enough to “grasp”. The default of 0.5 is right only when the two kinds of error cost the same, which is rarely true. Grasping something that is not a parcel (a false pick) may drop the object or send it to the wrong destination, while skipping a real parcel (a miss) only costs a re-detection in the next frame. The expected cost per detection is
where is the fraction of detections that are real parcels, TPR is the fraction of real parcels that pass the threshold, and FPR is the fraction of non-parcels that pass anyway. These are two values on the ROC curve (Fawcett, 2006). Bayesian decision theory says to grasp when the posterior probability of a real parcel exceeds , which agrees with the threshold that minimises cost.
Example 2 Setting the score threshold of the parcel detector
Scores of real parcels follow a normal distribution at 0.80 (σ 0.12) and those of non-parcels at 0.50 (σ 0.15), assumed data. Real parcels are 80% of detections. A wrong pick costs 40 s to recover and a skip costs 6 s. Find the threshold with the lowest cost, compare it with 0.5, and check by simulation.
import numpy as np
from scipy.stats import norm
from scipy.optimize import brentq
# detector confidence: real parcel N(0.80, 0.12), not a parcel N(0.50, 0.15) (assumed)
mu1, s1, mu0, s0 = 0.80, 0.12, 0.50, 0.15
prev = 0.80 # fraction of detections that are real parcels
C_FP, C_FN = 40.0, 6.0 # a wrong pick costs 40 s to recover, a skip and re-detect costs 6 s
def rates(th):
tpr = 1 - norm.cdf(th, mu1, s1) # real parcels that pass the threshold
fpr = 1 - norm.cdf(th, mu0, s0) # non-parcels that pass anyway
return tpr, fpr
def cost(th):
tpr, fpr = rates(th)
return prev * (1 - tpr) * C_FN + (1 - prev) * fpr * C_FP # expected cost per detection
ths = np.linspace(0.30, 0.95, 651)
best = ths[np.argmin([cost(t) for t in ths])]
# Bayes: grasp when the posterior probability exceeds C_FP/(C_FP+C_FN)
post = lambda th: prev * norm.pdf(th, mu1, s1) / (prev * norm.pdf(th, mu1, s1) + (1 - prev) * norm.pdf(th, mu0, s0))
bayes = brentq(lambda th: post(th) - C_FP / (C_FP + C_FN), 0.5, 0.95)
print("posterior needed: %.4f" % (C_FP / (C_FP + C_FN)))
print("sweep optimum %.3f, Bayes threshold %.3f" % (best, bayes))
for th in (0.50, 0.65, round(best, 2), 0.90):
tpr, fpr = rates(th)
prec = prev * tpr / (prev * tpr + (1 - prev) * fpr)
print("threshold %.2f: recall %.3f, false-pick rate %.3f, precision %.3f, cost %.2f s" % (th, tpr, fpr, prec, cost(th)))
rng = np.random.default_rng(4) # check by simulating 400,000 detections
n = 400_000
real = rng.random(n) < prev
score = np.where(real, rng.normal(mu1, s1, n), rng.normal(mu0, s0, n))
th = round(best, 2)
grasp = score >= th
sim = np.mean(np.where(real & ~grasp, C_FN, 0) + np.where(~real & grasp, C_FP, 0))
print("simulated cost at %.2f: %.2f s" % (th, sim))
posterior needed: 0.8696
sweep optimum 0.684, Bayes threshold 0.684
threshold 0.50: recall 0.994, false-pick rate 0.500, precision 0.888, cost 4.03 s
threshold 0.65: recall 0.894, false-pick rate 0.159, precision 0.958, cost 1.78 s
threshold 0.68: recall 0.841, false-pick rate 0.115, precision 0.967, cost 1.68 s
threshold 0.90: recall 0.202, false-pick rate 0.004, precision 0.995, cost 3.86 s
simulated cost at 0.68: 1.69 s
The threshold found by sweeping (0.684) equals the Bayes threshold exactly. At 0.5 the robot never misses a real parcel (recall 0.994) but picks a non-parcel half the time one is present (false-pick rate 0.500), costing 4.03 s per detection. At 0.68 the cost falls to 1.68 s, the minimum, and simulation gives 1.69 s. A threshold that is too high (0.90) is also bad (3.86 s), because the robot skips nearly every real parcel (recall 0.202). The lesson: a threshold is not a fixed property of the model but a business decision that needs the costs, and it must be recalculated when the costs or the share of real parcels change.
Planning an arm motion in configuration space
A ground vehicle plans on a 2D map, but a robot arm has several joints. One pose of the arm is a set of joint angles . Configuration space (C-space) is the space of all possible poses (LaValle, 2006; Lynch and Park, 2017, chapter 2). A two-joint arm has a two-dimensional C-space. MM-1, whose base moves in the plane (three degrees of freedom) and carries a two-joint arm, has a five-dimensional one. The advantage is that the whole robot becomes a single point in C-space, while real obstacles become “forbidden blobs” found by collision-checking every pose. The simplest method is to divide C-space into a grid, check for collision at each cell, and search with A* just as on a map (Hart et al., 1968). This works for two or three joints; a six-joint arm needs sampling methods such as the RRT of UAT 308.
A straight line in joint space (all joints moving together) is the simplest trajectory, but it does not guarantee freedom from collision, because a straight line in C-space is not a straight line of the fingertip.
Example 3 Moving the arm past the post in front of the battery bay
A two-joint arm in a vertical plane has links of 0.45 and 0.35 m, the shoulder at (0, 0) and the floor at y = −0.40 m. An 8 cm wide post stands from the floor to y = 0.14 m at x = 0.34 to 0.42 m in front of the battery bay. The hand must move from the fresh-battery tray at (0.25, 0.10) to the bay at (0.62, −0.05), with a 3 cm safety margin. The joint grid is 1 degree fine and collisions are checked with points every 1 cm along the links.
import heapq
import numpy as np
L1, L2 = 0.45, 0.35 # link lengths, m (assumed); the arm moves in a vertical plane, shoulder at (0, 0), floor at y = -0.40
FLOOR = -0.40
post = (0.34, -0.40, 0.42, 0.14) # the post in front of the battery bay (xmin, ymin, xmax, ymax), m
margin = 0.03 # a 3 cm safety margin
N = 181 # a 181 x 181 joint grid (1 degree resolution)
q1s = np.radians(np.linspace(-30, 180, N)) # joint 1: -30 to 180 degrees
q2s = np.radians(np.linspace(-150, 30, N)) # joint 2: -150 to 30 degrees
def hits(q1, q2):
# collision test with points every 1 cm along each link: hits the post, or goes below the floor
s1, s2 = np.linspace(0, L1, 46), np.linspace(0, L2, 36)
ex, ey = L1 * np.cos(q1), L1 * np.sin(q1)
px = np.r_[s1 * np.cos(q1), ex + s2 * np.cos(q1 + q2)]
py = np.r_[s1 * np.sin(q1), ey + s2 * np.sin(q1 + q2)]
inside = (px > post[0] - margin) & (px < post[2] + margin) & (py > post[1] - margin) & (py < post[3] + margin)
return bool(inside.any() or (py < FLOOR).any())
blocked = np.array([[hits(a, b) for b in q2s] for a in q1s]) # the configuration-space map: True = collision
print("collision fraction of C-space: %.1f%%" % (100 * blocked.mean()))
def ik(x, y, elbow_up=True):
c2 = (x * x + y * y - L1 * L1 - L2 * L2) / (2 * L1 * L2)
q2 = -np.arccos(c2) if elbow_up else np.arccos(c2) # elbow up means q2 is negative
q1 = np.arctan2(y, x) - np.arctan2(L2 * np.sin(q2), L1 + L2 * np.cos(q2))
return q1, q2
def idx(q1, q2): return int(round(np.degrees(q1) + 30)), int(round(np.degrees(q2) + 150))
start = idx(*ik(0.25, 0.10)) # the pose picking a fresh pack from the tray in front of the post
goal = idx(*ik(0.62, -0.05)) # the pre-grasp pose at the battery bay beyond the post
print("start", start, "goal", goal, "free:", not blocked[start], not blocked[goal])
# 1) the straight line in joint space
n = 200
line = [(start[0] + (goal[0] - start[0]) * k / n, start[1] + (goal[1] - start[1]) * k / n) for k in range(n + 1)]
bad = sum(blocked[int(round(a)), int(round(b))] for a, b in line)
print("straight joint-space line: %d of %d samples collide" % (bad, n + 1))
# 2) A* on the C-space grid, 8 neighbours
def astar(s, g):
h = lambda p: np.hypot(p[0] - g[0], p[1] - g[1])
openq, came, cost, expanded = [(h(s), s)], {}, {s: 0.0}, 0
while openq:
_, cur = heapq.heappop(openq); expanded += 1
if cur == g: break
for da in (-1, 0, 1):
for db in (-1, 0, 1):
nb = (cur[0] + da, cur[1] + db)
if (da or db) and 0 <= nb[0] < N and 0 <= nb[1] < N and not blocked[nb]:
c = cost[cur] + np.hypot(da, db)
if c < cost.get(nb, 1e9):
cost[nb], came[nb] = c, cur
heapq.heappush(openq, (c + h(nb), nb))
path = [g]
while path[-1] != s: path.append(came[path[-1]])
return path[::-1], expanded
path, expanded = astar(start, goal)
def seg_free(a, b):
m = int(max(abs(a[0] - b[0]), abs(a[1] - b[1]))) * 2 + 1
return all(not blocked[int(round(a[0] + (b[0] - a[0]) * k / m)), int(round(a[1] + (b[1] - a[1]) * k / m))] for k in range(m + 1))
short, i = [path[0]], 0 # shortcutting as for RRT in UAT 308
while i < len(path) - 1:
j = len(path) - 1
while j > i + 1 and not seg_free(path[i], path[j]): j -= 1
short.append(path[j]); i = j
plen = lambda p: sum(np.hypot(p[k + 1][0] - p[k][0], p[k + 1][1] - p[k][1]) for k in range(len(p) - 1))
print("A* path: %d cells, length %.1f deg, expanded %d nodes" % (len(path), plen(path), expanded))
print("after shortcut: %d waypoints, length %.1f deg (straight line %.1f deg)" % (len(short), plen(short), plen([start, goal])))
print("waypoints (q1, q2 deg):", [(a - 30, b - 150) for a, b in short])
collision fraction of C-space: 32.8%
start (103, 7) goal (59, 71) free: True True
straight joint-space line: 62 of 201 samples collide
A* path: 65 cells, length 82.2 deg, expanded 1036 nodes
after shortcut: 3 waypoints, length 78.0 deg (straight line 77.7 deg)
waypoints (q1, q2 deg): [(73, -143), (46, -98), (29, -79)]
Poses that hit the post or the floor make up 32.8% of C-space, and the straight line in joint space collides at 62 of the 201 points checked. A* finds a route around the forbidden blob 82.2 degrees long (expanding 1,036 nodes), and after shortcutting it has 3 waypoints and 78.0 degrees, compared with 77.7 degrees for the colliding straight line. The detour costs only 0.3 degrees but avoids the collision. The chosen waypoint (46°, −98°) lifts the elbow above the post before reaching down.
Timing the motion under joint limits
A path that avoids collisions is not yet a trajectory. A trajectory also says where the arm is at each time. Every joint has a speed limit and an acceleration limit . The standard method is time scaling: let run from 0 to 1 along the path, so joint is at . If follows a trapezoidal speed profile (constant acceleration, constant speed, constant deceleration), the joint that reaches its limit first sets the maximum scaled speed and scaled acceleration . The total time is if (Lynch and Park, 2017, section 9.2). If the segment is too short to reach full speed, the profile is a triangle and . The method makes all joints start and stop together and move along the planned straight line in joint space.
Example 4 Motion time along the waypoints from Example 3
Joint 1 is limited to 100 deg/s and 200 deg/s², joint 2 to 150 deg/s and 300 deg/s² (assumed). The arm stops at every waypoint. Compute the time of each segment and verify the profile by sampling finely.
wp = np.array([(a - 30, b - 150) for a, b in short], dtype=float) # the joint waypoints (degrees) from the path just found
vmax = np.array([100.0, 150.0]) # joint speed limits, deg/s (assumed)
amax = np.array([200.0, 300.0]) # joint acceleration limits, deg/s^2 (assumed)
def segment_time(dq):
# trapezoidal time scaling s: 0 -> 1 as in Modern Robotics section 9.2
d = np.abs(dq)
v = np.min(vmax[d > 0] / d[d > 0]) # scaled speed set by the first joint to hit its limit
a = np.min(amax[d > 0] / d[d > 0])
if v * v <= a: return 1 / v + v / a, v, a, "trapezoid"
return 2 / np.sqrt(a), np.sqrt(a), a, "triangle" # too short to reach full speed
total, rows = 0.0, []
for k in range(len(wp) - 1):
dq = wp[k + 1] - wp[k]
T, v, a, shape = segment_time(dq)
peak_speed = np.abs(dq) * v # actual peak speed of each joint
peak_acc = np.abs(dq) * a
total += T; rows.append(T)
print("segment %d: dq = (%.0f, %.0f) deg, T = %.3f s (%s), peak speed (%.0f, %.0f) deg/s, peak acc (%.0f, %.0f) deg/s^2" % (k + 1, dq[0], dq[1], T, shape, *peak_speed, *peak_acc))
print("total with a stop at each waypoint: %.3f s" % total)
# a long move such as swinging from the conveyor to the rack, (-120, 60) degrees, gives a full trapezoid
T, v, a, shape = segment_time(np.array([-120.0, 60.0]))
print("long swing (-120, 60) deg: T = %.3f s (%s), cruise phase %.3f s" % (T, shape, T - 2 * v / a))
# compare with going straight from start to goal if it did not collide (not usable here)
direct = segment_time(wp[-1] - wp[0])[0]
print("direct line (unusable, collides): %.3f s, detour cost %.3f s" % (direct, total - direct))
# verify the profile by sampling finely
def profile(T, v, a, t):
ta = v / a if T > 1.0 / v else T / 2
vt = v if T > 1.0 / v else a * ta
if t < ta: return 0.5 * a * t * t, a * t
if t > T - ta: return 1 - 0.5 * a * (T - t) ** 2, a * (T - t)
return 0.5 * a * ta * ta + vt * (t - ta), vt
worst = np.zeros(2)
for k in range(len(wp) - 1):
dq = wp[k + 1] - wp[k]; T, v, a, _ = segment_time(dq)
for t in np.linspace(0, T, 400):
worst = np.maximum(worst, np.abs(dq) * profile(T, v, a, t)[1])
print("worst joint speed seen: (%.1f, %.1f) deg/s against limits (%.0f, %.0f)" % (*worst, *vmax))
segment 1: dq = (-27, 45) deg, T = 0.775 s (triangle), peak speed (70, 116) deg/s, peak acc (180, 300) deg/s^2
segment 2: dq = (-17, 19) deg, T = 0.583 s (triangle), peak speed (58, 65) deg/s, peak acc (200, 224) deg/s^2
total with a stop at each waypoint: 1.358 s
long swing (-120, 60) deg: T = 1.700 s (trapezoid), cruise phase 0.700 s
direct line (unusable, collides): 0.938 s, detour cost 0.420 s
worst joint speed seen: (69.5, 115.9) deg/s against limits (100, 150)
The first segment (−27°, +45°) takes 0.775 s. Joint 2, which moves more, sets the pace and reaches its maximum acceleration of 300 deg/s², while joint 1 moves less and stays below its own limits. Both segments are short enough to be triangles, and the total of 1.358 s is 0.420 s longer than the colliding straight line. A long segment (−120°, +60°), such as swinging the arm from the conveyor to the rack, gives a full trapezoid taking 1.700 s with a 0.700 s constant-speed phase. Sampling the profile finds a peak joint speed of (69.5, 115.9) deg/s, within the limits. If stopping at every waypoint is too slow, a real system blends the segments to pass through waypoints without stopping, but the blended trajectory must be collision-checked again.
Module lab
Lab: MM-1 decisions and planning in the simulator
- Build the battery-swap behavior tree of Figure 1 with the BT library available in the lab (or the classes of Example 1). Measure the success probability and time of each leaf from 30 real runs in the simulator, then compare the closed-form calculation with the simulation.
- Compare 1 to 4 retries, measuring the real recovery cost from the time an operator needs to fix a failure, and choose a number with reasons.
- Collect the parcel detector’s scores on at least 200 images with true labels. Compute TPR and FPR at several thresholds, set the costs of a wrong pick and a skip from the measured recovery times, and find the lowest-cost threshold.
- Simulate the two-joint arm of MM-1 with the obstacle your team defines. Build a C-space map at 2 degrees, search with A*, and compare with the straight line in joint space.
- Compute the time of each segment from the real arm’s limits, run it in the simulator and compare with the measured time. Report the total cycle time for one battery swap on one pad.
Common mistakes
Watch out
- Setting the decision threshold at 0.5 without looking at costs, although a wrong pick costs several times more than a skip
- Retrying without limit when the cause of failure is one that retrying cannot fix, such as a wrong position
- Assuming a straight line in joint space is collision-free, when the whole path must be checked
- Checking collisions only at the end points of a trajectory and not along the length of the links
- Forgetting the safety margin and the perception error from module 1 when defining forbidden regions
- Setting motion time from the joint speed limit alone, without checking acceleration or the joint that reaches its limit first
- Blending waypoints without re-checking for collision
Summary
- A behavior tree composes behaviour from Sequence, Fallback and Retry, and its success probability and mean time can be computed in closed form
- The number of retries is chosen from the cost of failure, since later retries give less
- A decision threshold comes from the cost of each kind of error, not from 0.5
- An arm plans in C-space, where forbidden blobs come from collision checks, and a straight line in joint space does not guarantee freedom from collision
- Motion time comes from trapezoidal time scaling, with the joint that reaches its limit first setting the pace
Check your understanding
- A Sequence has three leaves that succeed with probabilities 0.90, 0.95 and 0.80. What is the success probability of the whole sequence?
- A leaf succeeds with probability 0.70 and is wrapped in a Retry of three. What is its success probability, and what is the mean number of attempts?
- A wrong pick costs 30 s of recovery and a skip costs 10 s. The robot should grasp when the posterior probability of a real parcel exceeds what value?
- In one segment, joint 1 must turn 90 degrees (limits 120 deg/s and 240 deg/s²) and joint 2 must turn 30 degrees (limits 90 deg/s and 180 deg/s²). How long does it take with a trapezoidal profile?
- How many dimensions does the C-space have for a base that moves in the plane (x, y, heading) carrying a two-joint arm?
Answers
- , and the mean number of attempts is
- and . Check , so it is a trapezoid: s
- dimensions
Key formulas
| Success probability of a Sequence | |
| Success probability of a Retry | |
| Cost-based decision rule | |
| Trapezoidal profile time |
Key references
- Colledanchise, M., & Ögren, P. (2018). Behavior trees in robotics and AI: An introduction. CRC Press. link
- Faconti, D. BehaviorTree.CPP documentation: Behavior tree basics. link
- Nav2 Maintainers. Nav2 behavior trees. Nav2 documentation (rolling). link
- Fawcett, T. (2006). An introduction to ROC analysis. Pattern Recognition Letters, 27(8), 861–874. link
- Hart, P. E., Nilsson, N. J., & Raphael, B. (1968). A formal basis for the heuristic determination of minimum cost paths. IEEE Transactions on Systems Science and Cybernetics, 4(2), 100–107. link
- LaValle, S. M. (2006). Planning algorithms. Cambridge University Press. link
- Lynch, K. M., & Park, F. C. (2017). Modern robotics: Mechanics, planning, and control. Cambridge University Press. link
Further reading
Study the assigned knowledge units in advance, review media and take the module quiz
การวางแผนเส้นทางและหลบหลีกสิ่งกีดขวางอัตโนมัติ
จลนศาสตร์หุ่นยนต์และการวางแผนการเคลื่อนที่
In class / field
Lab or field practice from worksheets with a safety checklist
Learning evidence: Checked worksheets and quiz results