Robotics Innovatory, Sungkyunkwan University

Interactive Diffusion Policy

Safe Reactive Avoidance through Proximity Sensing in Human-Robot Shared Environments

Department of Mechanical Engineering · Sungkyunkwan University

Human-robot interactions: proximity sensing triggers RMPflow avoidance, then the robot resumes its task (1× and 2× speed).

Proximity sensing drives avoidance; recovery data trains the dynamics model that guides task resumption.

Watch the full supplementary video

Abstract

Manipulators sharing a workspace with humans must avoid approaching obstacles while completing their tasks. Such avoidance requires obstacle detection, but camera-based detection can be hindered by occlusion. Avoidance can also move the robot outside the demonstration distribution, making task resumption difficult for a learned policy. These challenges call for a method that integrates reactive avoidance with recovery from out-of-distribution states. In this paper, we propose Interactive Diffusion Policy (IDP), which connects task execution, reactive avoidance, and recovery. Diffusion Policy generates a reference target, and a lower level RMPflow controller integrates target tracking and obstacle avoidance using distance information from proximity sensors. Robot mounted capacitive proximity sensors provide local distance information to compensate for camera observation limitations. Sensor experiments confirmed that the proximity sensors supported avoidance even for occluded and transparent objects that a depth camera failed to detect. To resume the task after avoidance, recovery data are collected by human guidance from off-path states caused by actual RMPflow avoidance. These data are used to train the dynamics model of the Latent Policy Barrier (LPB), which guides task resumption after avoidance. Manipulator experiments under various obstacle conditions showed that the robot resumed the task after avoidance and achieved a task success rate of 91.3%. These results show that IDP integrates collision avoidance and task resumption, enabling task execution that considers both safety and task capability in human shared workspaces.

Diffusion Policy executes the pick-and-place task. When an obstacle approaches, RMPflow uses the proximity sensors to steer the arm away, which can leave the robot out of distribution (OOD). LPB then guides it back toward the demonstrated states so the task can resume.

From Task Execution to Task Resumption

Diffusion Policy

Generates reference actions from RGB and proprioception.

RMPflow avoidance

Combines target tracking with proximity-driven obstacle avoidance.

LPB recovery

Guides actions toward the expert distribution when the observation's latent distance exceeds a threshold.

Diffusion Policy turns camera images and proprioception into a chunk of reference targets. RMPflow tracks them while its collision term uses proximity distances to keep the arm away from obstacles. When the latent OOD cost exceeds its threshold, LPB steers the action chunk so that its predicted latent state returns toward the nearest expert state. The inset shows the dynamics-model training: rollouts that combine the policy's own actions with human guidance cover the off-path states that avoidance produces.

Proximity Sensing Around the Robot

Link-mounted sensors measure nearby obstacles that the depth camera may miss.

Where depth sensing falls short

We compare depth and proximity inputs using the same RMPflow controller.

View the sensor comparison figure
The same RMPflow controller receives obstacle information either from a depth camera (middle column) or from the robot-mounted proximity sensors (right column); the left column shows the depth image. With a clear view (top row), both avoid the suddenly appearing obstacle. When the robot itself hides the obstacle from the camera (middle row) or the obstacle is transparent glass (bottom row), camera-based control collides, while proximity-based control still detects and avoids it.
Proximity sensor modules mounted on the manipulator links, with an exploded view of one module. Each module combines a capacitive sensing PCB, which detects nearby people and objects through changes in the electric field, with a ToF sensor that provides reference distances for calibrating the capacitive estimate.
A test jig repeatedly moves a metal specimen toward and away from the sensor. The sensor's distance estimate (red) follows the reference distance (black dashed) through each approach and retreat, with an error of about ±20 mm (blue).

ToF provides calibration references; joint-dependent compensation reduces self-detection.

Watch the distance-estimation test jig

Jig motion and distance response · 8× playback.

An obstacle on a pole approaches different points along the arm. The link-mounted proximity sensors detect it, and the arm moves locally away from the side it approaches.
Watch close-proximity interactions

Learning from Avoidance and Recovery

We collect recovery trajectories following actual RMPflow deflections.

  1. Run the policy

    Roll out an intermediate pick-and-place checkpoint.

  2. Avoid, then guide

    RMPflow deflects the robot; an operator intervenes if the policy cannot resume.

  3. Train the dynamics

    Use fixed-horizon transitions from expert demonstrations and recovery rollouts.

While an intermediate policy checkpoint performs the task, an approaching obstacle triggers RMPflow avoidance (left). If the policy cannot resume from the resulting off-path state, an operator guides the robot back to the task (right). The plot traces the end-effector path through policy rollout (grey), avoidance (red), and human guidance (blue); the whole rollout is recorded to train the LPB dynamics model.

Expert demonstrations train the base policy and supply latent references and dynamics samples.

Recovery trajectories extend dynamics training to avoidance-induced states and task resumption.

A recovery-collection rollout at 2× speed: the policy runs the task, RMPflow deflects the arm away from an approaching obstacle, and the operator guides it back until the policy continues on its own. The plot on the right traces the measured end-effector path for each phase.

Real-Robot Experiments

Wide-range pick-and-place on a single-arm manipulator.

The manipulator picks an object from the table on the right and places it in the box on the left, a wide-range motion across the workspace. Vision sensors on the wrist and at the workspace give the policy its RGB observations, and the proximity sensors on the arm links detect obstacles.

Recovery dataset ablation

We compare recovery mechanisms within the same IDP architecture.

Task completion from eight post-avoidance poses (10 trials per pose, 80 per condition).

Task success for No Guidance, rollout-trained LPB, and Recovery-aware LPB
ConditionRecovery mechanismTask success
No GuidancePolicy continuation without LPB25.0%
LPBDynamics trained on checkpoint rollouts63.8%
Recovery-aware LPBDynamics trained on avoidance and recovery trajectories91.3%

Recovery under dynamic obstacles

Dynamic global blocking (DGB) continuously deflects the robot; a suddenly appearing obstacle (SAO) requires rapid avoidance.

Watch a side-by-side DGB recovery comparison
End-effector trajectories under dynamic global blocking (DGB, top row) and a suddenly appearing obstacle (SAO, bottom row). DP + Stop keeps clear of the obstacle but stays frozen until the episode times out. DP + RMPflow avoids it, but from the off-path state it strikes the workspace under DGB and drops the grasped object under SAO. IDP (Ours) avoids the obstacle and completes the task in both cases.

Avoidance and recovery within a rollout

Latent OOD cost over a single IDP pick-and-place rollout with four avoidance events. Each RMPflow avoidance pushes the cost above the LPB threshold (dashed red line); LPB guidance then drives it back down, and the task continues until the next intrusion. Above the plot, each event pairs the current wrist-camera view with its nearest image in the expert demonstrations.

Download ↓