Abstract
Trajectory planning under kinodynamic constraints is fundamental for advanced robotics applications that require dexterous, reactive, and rapid skills in complex environments. These constraints, which may represent task, safety, or actuator limitations, are essential for ensuring the proper functioning of robotic platforms and preventing unexpected behaviors. Recent advances in kinodynamic planning demonstrate that learning-to-plan techniques can generate complex and reactive motions under intricate constraints. However, these techniques necessitate the analytical modeling of both the robot and the entire task, a limiting assumption when systems are extremely complex or when constructing accurate task models is prohibitive. This paper addresses this limitation by combining learning-to-plan methods with reinforcement learning, resulting in a novel integration of black-box learning of motion primitives and optimization. We evaluate our approach against state-of-the-art safe reinforcement learning methods, showing that our technique, particularly when exploiting task structure, outperforms baseline methods in challenging scenarios such as planning to hit in robot air hockey. This work demonstrates the potential of our integrated approach to enhance the performance and safety of robots operating under complex kinodynamic constraints.
Introduction
In robotics, "kinodynamic constraints" are essential rules that govern safe and effective operation, such as motor torque limits and collision avoidance. Traditional motion planning handles these constraints effectively but requires comprehensive analytical models of the task. Conversely, Safe Reinforcement Learning (SafeRL) offers flexibility in unknown environments but often struggles with high-speed, complex tasks because it treats the robot as a "black box," ignoring valuable domain knowledge like trajectory smoothness.
This paper identifies a critical gap: the need for a framework that exploits known robot kinematics and safety boundaries while learning unknown task objectives through trial and error. We propose CNP3O (Constrained Neural motion Planning with PPO), a hybrid framework combining the safety of motion planning with the flexibility of RL.
The CNP3O Framework
The CNP3O architecture rests on three primary pillars designed to enable learning under strict physical constraints:
- Motion Primitives (MPs) via B-splines: Instead of selecting actions at every millisecond, the RL agent predicts the weights of a B-spline curve representing the entire trajectory. B-splines are mathematically well-behaved, allowing for the analytical calculation of velocity and acceleration to verify safety before execution.
- Learning Under Known Constraints: Using a Lagrangian relaxation approach, hard constraints (e.g., torque limits) are transformed into differentiable penalties in the reward function. This allows the system to use analytical gradients to guide the neural network toward safer solutions.
- Prior Knowledge Integration: The framework allows for "hard-coding" boundary conditions, such as ensuring the robot starts at its current position and ends with zero velocity, which significantly simplifies the learning process.
Experimental Evaluation
The researchers evaluated CNP3O in two simulated environments using the MuJoCo physics engine, followed by real-world validation:
- Heavy Object Task: A Kuka Iiwa 14 robot must move a 12kg box between pedestals without colliding or tipping the payload.
- Robot Air Hockey Hitting: The robot must hit a puck into a goal at high speed while keeping the mallet flat on the table.
- Real-World Air Hockey: The simulated policy was deployed "zero-shot" on a physical Kuka Iiwa 14 robot setup.
Results and Discussion
CNP3O significantly outperformed state-of-the-art SafeRL methods, such as PPO-Lagrangian and PCPO. In many scenarios, baseline methods failed to learn the tasks entirely due to the restrictive nature of the constraints.
In the air hockey simulation, the version of CNP3O utilizing prior knowledge (CNP3O-PK) achieved a scoring ratio close to 100%. As shown in the metrics below, it maintained higher rewards and lower constraint violations compared to other methods.
Key insights from the results include:
- Trajectory-Level Exploration: Choosing a whole path at once allows for more meaningful exploration compared to step-based exploration.
- Decoupling Geometry and Time: B-splines allow the robot to learn the shape of a move separately from its speed, which is vital for high-speed tasks.
- Sim-to-Real Success: The policy successfully transferred to a real robot, showing resilience to sensor noise due to the filtering effect of the low-level controller following the planned spline.
Conclusion
CNP3O bridges the gap between motion planning and reinforcement learning by integrating trajectory-based exploration with constraint optimization. While the method currently requires known, differentiable constraints and can be data-hungry, it demonstrates superior performance in complex, high-speed robotic tasks. Future work will focus on incorporating imitation learning to improve sample efficiency and domain randomization to further minimize the sim-to-real gap.
Summary updated