TL;DR
CollisionIK is a real-time, per-instant pose optimization method that allows robotic arms to smoothly achieve end-effector goals while dynamically avoiding obstacles on-the-fly. By framing environment collision avoidance as a soft objective term within a multi-objective optimization loop, it eliminates the need for computationally heavy global motion planners in reactive applications like teleoperation.
What Problem Does This Paper Address?
Standard inverse kinematics (IK) solvers excel at finding a robot joint configuration that satisfies a single target position and orientation. However, when used iteratively to generate continuous motion (a paradigm known as per-frame or per-instant IK), the resulting trajectories often suffer from joint space discontinuities, jerky movements, or catastrophic collisions with the environment.
To ensure safety and smoothness, robotics applications typically rely on global motion planners or trajectory optimizers. While effective, these frameworks are computationally heavy and struggle to adapt on-the-fly to dynamic, unpredictable environments. The authors introduce CollisionIK to bridge this gap, providing a fast, reactive, per-instant optimization framework that handles environment collision avoidance natively without sacrificing real-time performance.
Methods
CollisionIK casts motion generation as a multi-objective, non-linear constrained optimization problem. The objective function is a weighted sum of normalized terms, utilizing a specialized "Groove" parametric loss function to smoothly combine competing goals.
By default, the system optimizes for seven objectives and one constraint:
- End-effector position goal matching
- End-effector orientation goal matching
- Minimized joint velocity
- Minimized joint acceleration
- Minimized joint jerk
- Self-collision avoidance
- Environment collision avoidance
- Constraint: Kinematic singularity avoidance
To make environment collision avoidance computationally feasible for a real-time loop, the authors developed a streamlined spatial pipeline:
- Convex Representations: Obstacle point clouds are converted into convex hulls using the QuickHull algorithm, while the robot's links are wrapped in convex capsules.
- Collision Scene Filtering: To prevent performance degradation in crowded environments, the system employs a broad-phase/narrow-phase pipeline using axis-aligned bounding box (AABB) hierarchies and a Dynamic Bounding Volume Tree. This filters the environment down to a small set of "active" obstacles (capped at $N=3$ by default) that are closest to the robot.
- Smooth Distance Cost: Rather than using a non-differentiable minimum distance function, the collision cost function aggregates the squared reciprocal distances between the robot links and active obstacles, ensuring smooth gradients for the optimizer.
Datasets
The method was evaluated using a simulated testbed across five distinct robot models: Universal Robots UR5 (6-DOF), Rethink Robotics Sawyer (7-DOF), Kinova Jaco (7-DOF), Kuka IIWA (7-DOF), and the torso/right arm of the Rainbow Robotics Hubo+ (8-DOF).
The authors established three benchmark evaluation tasks:
- Around Table: Driving the end-effector through a table surface, forcing the arm to navigate around it.
- Square Tracing: Tracing a square perimeter while a dynamic cube obstacle encroaches on the workspace.
- Isolated Rotations: Rotating the end-effector 90 degrees along primary axes while three dynamic spheres continuously move toward the robot.
Key Insights and Ideas
- Soft Objectives Over Hard Constraints: Treating collision avoidance as a heavily weighted soft objective rather than a hard constraint allows the optimization solver to gracefully relax tracking accuracy in favor of safety when a collision is imminent.
- Active Filtering is Essential for Scalability: The computational bottleneck of environment collision avoidance is typically the number of distance queries. By dynamically pruning the obstacle set to only the top 3 most threatening objects, the per-solve time remains stable regardless of total scene complexity.
Key Results
CollisionIK was compared against baseline RelaxedIK (which lacks environment collision handling) and the MoveIt Cartesian Controller (MCC), which pairs Trac-IK with an RRT-Connect global planner.
- Safety: CollisionIK achieved zero environment collisions across all benchmark tasks. In comparison, RelaxedIK suffered thousands of collisions, and MCC frequently collided with dynamic obstacles due to planning latencies.
- Smoothness: CollisionIK generated significantly smoother trajectories than MCC, exhibiting orders-of-magnitude lower joint acceleration and jerk.
- Speed and Scalability: In an interactive environment with 4 sphere obstacles, CollisionIK solved at approximately 2,000 Hz (500 microseconds per solve). When scaled up to a highly complex environment containing 100 Stanford bunnies (each exceeding 30,000 vertices), the system still maintained a real-time rate of 60 Hz (16 milliseconds per solve).
Limitations and Future Work
- Local Minima: Because CollisionIK relies on local gradient-based optimization, it is susceptible to getting trapped in local minima. For instance, if an obstacle completely blocks a path, the robot may stop and fail to find a way around it, unlike global planners.
- Simulation Only: The current implementation was validated purely within simulation using clean, synthetic data. It does not yet account for the challenges of real-world sensing, such as noisy point clouds or sensor occlusion. Future work aims to integrate confidence bounds to handle noisy real-world perception data.
Summary updated