Section 26.1: What a skill is; low- vs. high-level actions

A Careful Control Loop
Technical illustration for Section 26.1: What a skill is; low- vs. high-level actions.
Figure 26.1A: Low-level actions (joint torques, gripper open/close) vs. high-level skills (pick, place, open door) shown as a two-level action hierarchy, with the skill boundary defined by temporal abstraction and reusability.
Big Picture

What a skill is; low- vs. high-level actions treats action as a hierarchy rather than a flat stream of motor commands. A skill gives the planner a reusable temporal abstraction with an initiation condition, an internal policy, a termination rule, and a verification contract.

Why Hierarchy Matters

For What a skill is; low- vs. high-level actions, hierarchy separates timing, contact, recovery, and sequencing so a high-level planner can select skills without pretending every low-level policy is deterministic.

The distinction is temporal scale. A low-level action might be a velocity command for 20 milliseconds. A high-level skill might be a 6-second door-opening routine that watches force, pose, contact, and success. Both are actions from the planner's perspective, but only the skill hides a controlled sequence behind a stable interface.

Skill Equals Promise

For What a skill is; low- vs. high-level actions, treat the skill as an interface: initiation set, internal controller, progress signal, termination rule, verifier, and recovery status must be explicit.

Formal Contract

For What a skill is; low- vs. high-level actions, use the option tuple as an audit checklist: initiation states, internal policy, termination probability, and verifier must match the robot task.

$$\omega=(I_\omega,\pi_\omega,\beta_\omega),\quad a_t\sim\pi_\omega(a\mid s_t),\quad \mathrm{stop}\sim\beta_\omega(s_t).$$

For What a skill is; low- vs. high-level actions, map the option fields onto behavior trees, task graphs, finite-state machines, or task-and-motion planning nodes so start, act, stop, and verify remain inspectable.

Hierarchical robot policy from mission goal to task graph to verified skills Mission goal Task graph ordering and fallback Navigate Manipulate Recover Verifier
Figure 26.1.B: The diagram shows why a skill is more than a controller: the task graph depends on initiation, verification, and fallback paths.

Worked Implementation

Code Fragment 1 for What a skill is; low- vs. high-level actions should expose initiation, progress, termination, verification, and failure reporting before connecting the skill to ROS 2, BehaviorTree.CPP, Drake, or a learned policy.

# Define a reusable robot skill with explicit start, stop, and verify logic.
# The example separates planner-facing status from low-level control details.
from dataclasses import dataclass

@dataclass
class SkillResult:
    name: str
    status: str
    reason: str

def grasp_ready(state):
    return state["object_visible"] and state["base_distance_m"] < 0.8

def run_grasp_skill(state):
    if not grasp_ready(state):
        return SkillResult("grasp", "blocked", "precondition failed")
    if state["force_n"] >= 8.0 and state["lift_cm"] >= 3.0:
        return SkillResult("grasp", "success", "object verified in gripper")
    return SkillResult("grasp", "retry", "insufficient lift evidence")

print(run_grasp_skill({"object_visible": True, "base_distance_m": 0.5, "force_n": 9.2, "lift_cm": 4.0}))
SkillResult(name='grasp', status='success', reason='object verified in gripper')

This expected output means the skill returned a planner-facing verdict, not torque-level behavior. The key field is status='success', which tells the hierarchy that the grasp can hand control back upward because the postcondition was verified in sensor space.

Code Fragment 1: The dataclass result makes the skill contract explicit. The planner receives success, blocked, or retry with a reason, rather than a stream of raw motor commands.
Algorithm: Verified Skill Execution
  1. Check whether the current state satisfies the skill initiation predicate.
  2. Execute the skill policy while monitoring progress, time, force, and perception confidence.
  3. Terminate when the skill succeeds, violates a safety guard, or reaches a timeout.
  4. Run a verifier that checks the postcondition in sensor space and task space.
  5. Return success, retry, fallback, or escalate to the high-level planner.

Practical Recipe

  1. Name each skill with a verb and object: navigate_to_station, grasp_handle, dock_drone, or change_lane.
  2. Write preconditions, postconditions, safety guards, timeout, and recovery behavior before training a policy.
  3. Represent sequencing as a finite-state graph, behavior tree, or task-and-motion plan so failures have explicit routes.
  4. Use language as a planner only after commands are grounded into a typed skill library with affordance checks.
  5. Evaluate composition, not only individual success. Many failures occur when two correct skills meet at a bad boundary.
Library Shortcut

For What a skill is; low- vs. high-level actions, use BehaviorTree.CPP, ROS 2 lifecycle nodes, Drake systems, or task-and-motion planning to handle scheduling and fallback while preserving explicit skill contracts.

Practical Example

For What a skill is; low- vs. high-level actions, decompose the household command into navigation, inspection, reachability, grasp, carry, and handoff only if each subskill exposes a verifier and recovery route.

Skill Interface Checklist
FieldQuestionExample For A Mobile Manipulator
InitiationWhen may it start?Object detected, arm clear, base within reach.
PolicyWhat controller runs?Visual servoing plus impedance control.
TerminationWhen does it stop?Grasp force stable for 0.5 seconds.
VerificationHow is success proved?Object pose follows gripper during lift.
RecoveryWhat happens after failure?Open gripper, re-localize, retry from a safer pose.
Composition Failure

For What a skill is; low- vs. high-level actions, test hierarchy failures caused by mismatched postconditions, hidden frames, stale perception, and planners treating probabilistic skills as deterministic.

Research Frontier

For What a skill is; low- vs. high-level actions, connect skill learning to VLA models and task-and-motion planning only when feasibility, verification, and recovery are represented for this body and scene.

Self Check

For What a skill is; low- vs. high-level actions, the test is whether initiation set, internal policy, termination rule, verifier, and recovery route can be written for the target robot skill.

Key Takeaway

What a skill is; low- vs. high-level actions is useful when it makes the perception-action loop more reliable, not when it merely adds a more impressive model name.

Exercise 26.1.1

Design a method-matched experiment for What a skill is; low- vs. high-level actions. Specify the environment, observation schema, action interface, metric, and one perturbation that targets the section's core assumption.

What's Next

This section grounded what a skill is; low- vs. high-level actions in an explicit robot-data contract: observations, actions, demonstrations, evaluation splits, and failure labels. The next reading step is Section 26.2, where the same contract is carried into the next technique or chapter.

References & Further Reading
Foundational Papers

Sutton, R. S., Precup, D., and Singh, S. (1999). Between MDPs and Semi-MDPs: A Framework for Temporal Abstraction in Reinforcement Learning.

This paper formalizes options as temporally extended actions with initiation, policy, and termination conditions. It is the canonical reference for the chapter's skill hierarchy vocabulary.

Paper

Bacon, P. L., Harb, J., and Precup, D. (2017). The Option-Critic Architecture.

Option-Critic learns options end to end within reinforcement learning. It helps readers compare hand-specified skills with learned temporal abstractions.

Paper

Eysenbach, B. et al. (2018). Diversity is All You Need: Learning Skills Without a Reward Function.

DIAYN studies unsupervised skill discovery by maximizing distinguishable behaviors. It is useful for understanding when skills can be learned before a downstream task is specified.

Paper
Technical Reports and Project Pages

Open X-Embodiment and RT-X Project Website.

Cross-embodiment datasets make skill reuse a practical question rather than only a theory topic. The project helps readers connect hierarchy to robot foundation models and shared behavior repertoires.

Tutorial
Tools and Libraries

BehaviorTree.CPP Documentation.

Behavior trees are a production-friendly way to compose skills with fallback and monitoring logic. They complement learned policies by making high-level task decomposition explicit and inspectable.

Tool