CV Courseversity

Robot Learning and Human–Robot Interaction

Covers how robots learn manipulation skills from demonstration and joint perception-control training, how sim-to-real transfer techniques like automatic domain randomization and dynamics randomization generalize beyond a single hand or task, and how human-robot interaction research defines the dimensions and safety strategies of effective, safe collaboration between people and robots sharing physical space.

“A warehouse robot has just watched a human employee pack one box, one single time, and is now expected to pack a different box with different items without ever being explicitly reprogrammed — while, a few feet away, a collaborative robot arm on the same floor is designed to slow or soften its motion the instant a person's hand crosses into its workspace, because getting a task right is not enough if the robot also has to work safely beside the very people it may be learning from. What has to be true about how a robot learns a physical skill, and about how it is built to behave around people, for both of these expectations to be met at once?”

Learning Manipulation from Demonstration and Interaction · 15 min

The classical robotics pipeline separates perception, which turns raw sensor data into an estimate of the world, from control, which turns that estimate into motor commands, with each stage engineered and tuned largely independently. Levine, Finn, Darrell, and Abbeel's 2016 paper "End-to-End Training of Deep Visuomotor Policies" tests whether jointly training these stages together, rather than separately, produces better manipulation behavior, by training a single deep convolutional neural network policy, containing roughly 92,000 parameters, to map raw camera images directly to torques at the robot's motors. Rather than trying to solve this very high-dimensional policy-search problem directly, they use guided policy search, which converts it into a supervised learning problem: a separate trajectory-centric reinforcement learning process first generates good example trajectories under partial state information, and the deep visuomotor policy is then trained to imitate the actions those guiding trajectories took, conditioned only on the raw image and robot state it would actually have access to at test time. Evaluated on real-world manipulation tasks that demand tight coordination between what the robot sees and how it moves, including screwing a cap onto a bottle, this joint training approach demonstrated that perception and control can benefit from being learned together end-to-end, a genuinely different lesson from the strict separation between sensing, planning, and acting that opened this course's earlier robotics module.

A different way to acquire a manipulation skill is to learn directly from a demonstration rather than through trial-and-error reinforcement learning, an approach broadly called imitation learning. Duan, Andrychowicz, Stadie, Ho, Schneider, Sutskever, Abbeel, and Zaremba's 2017 paper "One-Shot Imitation Learning" pushes this further with a meta-learning framework: instead of training a policy on many demonstrations of one exact task, they train a neural network across a large distribution of related tasks so that, at test time, showing it just one new demonstration is sufficient for it to reproduce that behavior on a new instance of the task it has never encountered, with no additional training. The network takes both a single demonstration and the robot's current state as input and, using soft attention over the demonstration, outputs actions intended to reproduce the demonstrated behavior in the new situation; the authors evaluate this on block-manipulation tasks such as stacking every block on a table into a single tower, or arranging them into separate two-block towers, with block counts and starting arrangements varied at test time. This differs fundamentally both from classical reinforcement learning, which typically needs a hand-designed reward function and many trials per new task, and from ordinary imitation learning, which typically needs many demonstrations of the exact task being learned: one-shot imitation learning instead learns a general strategy for turning a single demonstration into a working policy.

Taken together, jointly trained visuomotor policies and one-shot imitation learning illustrate that "learning a manipulation skill" is not one single recipe but a family of different trade-offs. Reinforcement learning, whether trained on the real robot or, as in this course's earlier sim-to-real coverage, entirely in simulation, requires no human demonstrations at all but typically needs a well-specified reward signal and a large number of trials. Guided policy search narrows that trial requirement by bootstrapping from trajectory-centric optimization under favorable conditions and then training a general, sensor-driven policy to reproduce it. One-shot imitation learning goes furthest toward minimizing what a person must provide for each new task, a single demonstration, by shifting nearly all of the learning effort into an offline meta-training phase across many related tasks in advance. None of these approaches replaces the others; which one is appropriate for a given manipulation problem depends on how expensive real-world trials are, how many related tasks are available to learn from in advance, and how precisely a reward function for the task can actually be written down.

Sim-to-Real Transfer Beyond One Hand: Automatic and Dynamics Randomization · 15 min

This course's earlier robotics module covered how OpenAI trained a policy in simulation to reorient a block in a Shadow Dexterous Hand using domain randomization, and how a follow-up system extended that approach to solving a physical Rubik's cube using automatic domain randomization, or ADR, to widen the simulated randomization ranges as training progressed. What that earlier coverage left unexamined is exactly how the "automatic" part of ADR works mechanically, described in OpenAI's 2019 paper "Solving Rubik's Cube with a Robot Hand": training begins in a fixed, non-randomized simulated environment, and whenever the current policy's performance under the current randomization ranges, over parameters such as the cube's simulated size, surface friction, and visual materials, exceeds a set performance threshold, those ranges are automatically widened, making the task modestly harder; training then continues under the new, wider ranges, and this cycle of succeed-then-widen repeats indefinitely. The degree of randomization the policy experiences at any point in training is therefore set automatically by how well it is currently performing, rather than by a fixed schedule an engineer chose in advance, which is what let training difficulty keep escalating without requiring continual manual re-tuning.

Beyond the headline scramble-solving results already covered, the researchers report a further, more qualitative finding: when the resulting policy was evaluated on the physical robot, it proved robust to real-world disturbances that were never modeled anywhere in its simulated training distribution at all, for instance continuing to solve the cube while being physically prodded with a stuffed toy giraffe. The researchers present this as evidence that sufficiently broad automatic domain randomization can produce generalization to genuinely novel, out-of-distribution perturbations, not merely robustness within the specific ranges of friction, mass, or appearance that were explicitly randomized during training. This is an honest, bounded, empirical observation on one hardware platform and one task family, not a general guarantee that domain randomization always produces this kind of out-of-distribution robustness, and understanding when and why it does remains an open question in sim-to-real research.

Peng, Andrychowicz, Zaremba, and Abbeel's 2018 paper "Sim-to-Real Transfer of Robotic Control with Dynamics Randomization" demonstrates that the same underlying strategy generalizes well beyond one dexterous hand and one manipulation task. Rather than randomizing primarily visual appearance and surface friction for an in-hand manipulation task, they randomize the simulator's dynamics parameters directly, including mass, friction, and motor strength, and apply this to a robotic arm performing an object-pushing task, a different embodiment and a different skill entirely from the earlier dexterous-hand research. They report that policies trained under this dynamics randomization maintained a similar level of performance when deployed on the real robot and were robust to substantial calibration error between the simulator's assumed dynamics and the real robot's actual dynamics. Where the dexterous-hand work showed domain randomization succeeding for one hand and one task, dynamics randomization shows the same core idea, training under many simulated variations so that no single simulated instance is over-fit to, generalizing across different physical quantities, different robot embodiments, and different tasks, evidence that domain randomization is a general strategy for narrowing the reality gap rather than an ad hoc trick specific to any one piece of hardware.

Human-Robot Interaction, Collaboration, and Safety · 15 min

Goodrich and Schultz's 2007 survey "Human-Robot Interaction: A Survey" defines human-robot interaction, or HRI, as the field dedicated to understanding, designing, and evaluating robotic systems for use by or with humans, and emphasizes that meaningful interaction requires communication whether the robot and the person are physically co-located or working remotely from each other. They organize the field's research around five dimensions a designer can shape: the level of autonomy, ranging from full teleoperation, in which a human directly controls every robot action, to full autonomy, with many intermediate mixed-initiative points where control shifts between human and robot depending on the situation; the nature of information exchange, meaning what channels, such as visual displays, gesture, speech, or touch, and what content pass between human and robot; team structure, meaning how many humans and robots are involved and how authority and roles are distributed among them; adaptation, learning, and training, meaning how the robot's behavior, and the human operator's skill, change over repeated interaction; and task-shaping, meaning how introducing a robot changes the way the surrounding human work itself gets organized. This taxonomy gives researchers a common vocabulary for comparing HRI systems that otherwise look completely different, from a teleoperated bomb-disposal robot to a fully autonomous warehouse arm.

Lasota, Fong, and Shah's 2017 survey "A Survey of Methods for Safe Human-Robot Interaction" makes a point that reframes what "safety" even means in this context: they define safety to include "all possible ways in which harm could come to a person, ranging from physical contact to adverse psychological effects," deliberately broader than collision avoidance alone. They organize the resulting research into four categories of safety strategy. Safety through control regulates the robot's own motions and forces in real time, for example limiting the speed or force with which it can make contact with a person. Safety through motion planning chooses trajectories in advance that keep the robot's planned path away from a person, or away from a region a person is predicted to occupy, directly reusing the path-planning machinery from the previous lesson, but now treating a person as a special kind of obstacle a planner must route around. Safety through prediction anticipates where a person is likely to move next and adjusts robot behavior preemptively rather than only reacting once a person is already too close. Safety through consideration of psychological factors attends to a person's comfort and trust, since a robot can be technically safe from causing injury and still behave in ways that startle or unsettle the people working near it.

These academic safety strategies connect directly to deployed industrial practice through ISO/TS 15066, a real technical specification governing collaborative robots, or "cobots," that share a workspace with people without a safety cage separating them. Among the collaboration modes it defines are power- and force-limiting, which restricts the force and pressure a robot can exert during incidental contact with a person to below biomechanically established injury thresholds so that a collision that does occur causes no lasting harm, and safety-rated monitored stop, which halts the robot's motion whenever a person enters the shared workspace and resumes automatically once the person has left, a direct industrial instance of Lasota, Fong, and Shah's "safety through control" category. Learned robot behaviors, whether from the demonstration-based and jointly-trained policies in this module's earlier lessons or the simulation-trained, randomized policies of this course's sim-to-real coverage, raise a safety question that classical, hand-engineered systems do not have to answer in the same way: how do you certify that a policy trained from data and simulation, whose behavior in genuinely novel real-world situations cannot be exhaustively enumerated in advance, will still respect these same safety guarantees, an active area of ongoing robotics and machine-learning-safety research rather than a solved problem.

Practice

Robot Learning and Human-Robot Interaction

Train Policyunder current rangesSuccess Rateabove threshold?Widen Ranges(harder simulation)yes

Automatic domain randomization escalates simulated difficulty on its own: once policy performance clears a threshold under the current ranges, those ranges widen and training continues — no engineer sets the schedule by hand.

  • End-to-end visuomotor policies (Levine et al., 2016) jointly train perception and control as one network, mapping raw images directly to motor torques via guided policy search — a genuinely different lesson from the strict sense-plan-act separation covered earlier in this course, and distinct from one-shot imitation learning (Duan et al., 2017), which meta-trains across many tasks so a single new demonstration suffices instead of many trials or many demonstrations of the same task.
  • Automatic domain randomization widens its simulated randomization ranges only once policy performance clears a threshold, escalating difficulty without a hand-tuned schedule; the resulting Rubik's-cube policy also showed emergent robustness to perturbations never modeled in training, while dynamics randomization (Peng et al., 2018) shows the same core idea generalizes beyond one hand and one task to arbitrary dynamics parameters, embodiments, and skills.
  • Lasota, Fong, and Shah define HRI safety to include psychological as well as physical harm, organizing strategies into four categories — control, motion planning, prediction, and psychological factors — which is why ISO/TS 15066's power-and-force limiting and safety-rated monitored stop translate "safety through control" directly into enforceable industrial practice for collaborative robots.

Recall Practice

End-to-end visuomotor policiesClick to reveal
What did Levine et al.'s deep visuomotor policy learn to do differently from the traditional perception-then-control pipeline?
It mapped raw camera pixels directly to motor torques through one jointly trained CNN policy (via guided policy search), rather than a hand-engineered perception module feeding a separately designed controller — demonstrated on tasks like screwing a cap onto a bottle.
One-shot imitation learningClick to reveal
How does one-shot imitation learning let a robot perform a brand-new task after seeing only one demonstration?
It is meta-trained across many related tasks so it learns a general demonstration-to-policy mapping; a single new demonstration is then enough to specify a new task instance (such as a new block-tower arrangement), unlike ordinary reinforcement learning (which needs a reward function and many trials) or standard imitation learning (which needs many demonstrations of that exact task).
ADR's automatic wideningClick to reveal
How does automatic domain randomization decide when to widen its simulated randomization ranges?
Whenever the policy's performance under the current ranges exceeds a set threshold, those ranges are automatically widened and training continues under the harder, wider ranges — a self-escalating schedule rather than one an engineer hand-tunes in advance.
Safety beyond collisionClick to reveal
How do Lasota, Fong, and Shah define safety in human-robot interaction, and what are their four categories of safety strategy?
Safety includes all ways a person could be harmed, from physical contact to adverse psychological effects, not just collision avoidance. Their four strategy categories are safety through control, motion planning, prediction, and consideration of psychological factors.

Glossary

Guided Policy Search
A method that converts a difficult direct policy-search problem into supervised learning by first generating good example trajectories via trajectory-centric reinforcement learning, then training a general, sensor-driven policy to reproduce them.
One-Shot Imitation Learning
A meta-learning approach that trains a policy across a large distribution of related tasks so that, at test time, a single new demonstration of an unseen task instance is sufficient to reproduce that behavior, without further training.
Automatic Domain Randomization (ADR)
A sim-to-real technique that automatically widens the ranges over which simulated parameters are randomized whenever policy performance under the current ranges exceeds a threshold, escalating training difficulty without a hand-tuned schedule.
Dynamics Randomization
A sim-to-real technique that randomizes a simulator's underlying physical dynamics parameters (such as mass, friction, and motor strength) rather than only visual appearance, to produce policies robust to calibration error between simulated and real dynamics.
Power- and Force-Limiting
A collaborative-robot operating mode, defined in ISO/TS 15066, that restricts the force and pressure a robot can exert during incidental contact with a person to below biomechanically established injury thresholds.
Safety-Rated Monitored Stop
A collaborative-robot safety mode, defined in ISO/TS 15066, that halts robot motion whenever a person enters the shared workspace and resumes automatically once the person has left.
Practical Activity

Classify the Learning Strategy and the Safety Strategy

A virtual, paper-based worksheet — no robot hardware, simulator, or live model of any kind is used. Part one gives learners six short, invented scenario descriptions of a robot acquiring a skill (for example: 'the policy is meta-trained on hundreds of different block-arrangement tasks so that, at deployment, one new demonstration is enough to specify a never-before-seen arrangement,' or 'the policy is trained entirely inside a simulator whose friction and object-mass ranges are automatically widened every time the policy's success rate crosses a threshold'). For each, learners identify which concept from the lesson it illustrates (end-to-end visuomotor policy learning, one-shot imitation learning, or automatic/dynamics domain randomization) and briefly justify the choice in writing. Part two gives learners four short scenario descriptions of a robot working near a person (for example, a robot arm that slows down as a tracked human hand approaches its workspace, or a robot that pauses noticeably before reaching near a person's face even though it is already force-limited) and asks learners to classify each under Lasota, Fong, and Shah's four safety-strategy categories — control, motion planning, prediction, or psychological factors — writing one sentence justifying each classification.

Ready to test yourself?

5 questions on this module.

Start Quiz