Skip to main content
QUICK REVIEW

[Paper Review] PYROBOCOP : Python-based Robotic Control & Optimization Package for Manipulation and Collision Avoidance.

Arvind U. Raghunathan, Devesh K. Jha|arXiv (Cornell University)|Jun 6, 2021
Robotic Path Planning AlgorithmsComputer Science35 references5 citations
TL;DR

PYROBOCOP is a lightweight, Python-based optimization package for robotic control that enables trajectory optimization of contact-rich systems using a novel complementarity-based formulation for both contact and collision avoidance. It leverages orthogonal collocation on finite elements, automatic differentiation via ADOL-C, and IPOPT for solving Mathematical Programs with Complementarity Constraints (MPCCs), achieving performance comparable to state-of-the-art tools like CasADi and Pyomo while simplifying obstacle modeling and handling non-smooth dynamics effectively.

ABSTRACT

PYROBOCOP is a lightweight Python-based package for control and optimization of robotic systems described by nonlinear Differential Algebraic Equations (DAEs). In particular, the package can handle systems with contacts that are described by complementarity constraints and provides a general framework for specifying obstacle avoidance constraints. The package performs direct transcription of the DAEs into a set of nonlinear equations by performing orthogonal collocation on finite elements. The resulting optimization problem belongs to the class of Mathematical Programs with Complementarity Constraints (MPCCs). MPCCs fail to satisfy commonly assumed constraint qualifications and require special handling of the complementarity constraints in order for NonLinear Program (NLP) solvers to solve them effectively. PYROBOCOP provides automatic reformulation of the complementarity constraints that enables NLP solvers to perform optimization of robotic systems. The package is interfaced with ADOLC for obtaining sparse derivatives by automatic differentiation and IPOPT for performing optimization. We demonstrate the effectiveness of our approach in terms of speed and flexibility. We provide several numerical examples for several robotic systems with collision avoidance as well as contact constraints represented using complementarity constraints. We provide comparisons with other open source optimization packages like CasADi and Pyomo .

Motivation & Objective

  • To address the lack of accessible, open-source Python tools for optimizing contact-rich robotic systems with collision constraints.
  • To provide a unified, differentiable formulation for modeling both contact and obstacle avoidance using complementarity constraints.
  • To enable efficient, real-time model-based control by integrating automatic differentiation and NLP solvers for nonlinear DAEs with complementarity constraints.
  • To simplify user input by internally handling obstacle constraints via polytopic bounding volumes, reducing modeling errors.

Proposed method

  • Direct transcription of nonlinear Differential Algebraic Equations (DAEs) into nonlinear equations using orthogonal collocation on finite elements.
  • Modeling of contact and collision avoidance constraints via complementarity constraints, enabling a unified formulation.
  • Automatic sparse derivative computation using ADOL-C for efficient gradient-based optimization.
  • Solution of the resulting Mathematical Programs with Complementarity Constraints (MPCCs) via IPOPT after automatic reformulation of complementarity constraints.
  • Support for minimum time problems and optimization over fixed mode sequences with unknown time horizons.
  • User interface designed around standard NumPy data structures to simplify integration and reduce implementation overhead.

Experimental results

Research questions

  • RQ1Can a Python-based optimization framework effectively handle trajectory optimization for robotic systems with unilateral contacts and collision constraints?
  • RQ2How does a complementarity-based formulation for obstacle avoidance compare to traditional constraint-based approaches in terms of differentiability and ease of use?
  • RQ3To what extent can PYROBOCOP achieve performance comparable to state-of-the-art tools like CasADi and Pyomo in terms of solution quality and computation time?
  • RQ4Can the integration of ADOL-C and IPOPT enable efficient, scalable optimization of MPCCs arising from robotic dynamics with non-smooth constraints?
  • RQ5How does the internal handling of obstacle constraints via polytopic bounding volumes reduce user error and simplify problem specification?

Key findings

  • PYROBOCOP achieves computation times comparable to CasADi and Pyomo, demonstrating competitive performance for trajectory optimization of contact-rich systems.
  • The novel complementarity-based obstacle avoidance formulation is differentiable even for polytopic obstacles, enabling effective gradient-based optimization.
  • Users can specify obstacle avoidance by only providing the bounding polytope of each obstacle, with the package internally handling all constraint generation, reducing modeling errors.
  • The package successfully solves complex robotic tasks such as planar pushing and belt-drive unit assembly with both contact and collision avoidance constraints.
  • PYROBOCOP supports minimum time problems and optimization over unknown mode sequence time horizons, enhancing its applicability to real-world robotic control.
  • Despite relying on IPOPT, which finds only local solutions, PYROBOCOP demonstrates robust performance across diverse dynamical systems, including systems with non-smooth dynamics.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.