Skip to main content
QUICK REVIEW

[Paper Review] A Factor-Graph Approach for Optimization Problems with Dynamics Constraints

Mandy Xie, Alejandro Escontrela|arXiv (Cornell University)|Nov 11, 2020
Model-Driven Software Engineering TechniquesComputer Science51 references14 citations
TL;DR

This paper introduces dynamics factor graphs (DFGs), a graphical framework that models rigid-body dynamics as factor graphs to solve optimization problems in robotics, including kinodynamic motion planning and full-body dynamics. By formulating dynamics constraints and objectives as factors, DFGs enable efficient, high-dimensional optimization using sparse nonlinear solvers like GTSAM, demonstrating successful trajectory optimization for systems from a cart-pole to a 12-DoF quadruped without simplified dynamics models or prior expert knowledge of dynamics.

ABSTRACT

In this paper, we introduce dynamics factor graphs as a graphical framework to solve dynamics problems and kinodynamic motion planning problems with full consideration of whole-body dynamics and contacts. A factor graph representation of dynamics problems provides an insightful visualization of their mathematical structure and can be used in conjunction with sparse nonlinear optimizers to solve challenging, high-dimensional optimization problems in robotics. We can easily formulate kinodynamic motion planning as a trajectory optimization problem with factor graphs. We demonstrate the flexibility and descriptive power of dynamics factor graphs by applying them to control various dynamical systems, ranging from a simple cart pole to a 12-DoF quadrupedal robot.

Motivation & Objective

  • To develop a unified, intuitive graphical representation for modeling complex dynamics problems in robotics.
  • To enable optimization of high-dimensional, kinodynamically constrained motion planning problems without relying on simplified dynamics models.
  • To integrate dynamics constraints, inequality constraints (e.g., contact, joint limits), and objective functions (e.g., minimum torque) into a single optimization framework.
  • To demonstrate the framework's flexibility and scalability across diverse robotic systems, from simple pendulums to complex legged robots.
  • To provide a plug-and-play solution for trajectory optimization that avoids the need for expert-tailored dynamics algorithms or physics engine black boxes.

Proposed method

  • Represent rigid-body dynamics as a factor graph where dynamics equations (e.g., twist and acceleration constraints) are encoded as factors over state variables (e.g., joint positions, velocities, torques).
  • Use the articulated-body algorithm (ABA) and composite-rigid-body algorithm (CRBA) as underlying dynamics solvers, embedded within the factor graph structure to enforce consistency.
  • Formulate kinodynamic motion planning as a trajectory optimization problem by adding trajectory smoothness factors and dynamics constraints to the graph.
  • Incorporate inequality constraints (e.g., contact, joint limits) using a hinge loss formulation to enable safe, feasible solutions within the optimization framework.
  • Leverage state-of-the-art sparse nonlinear optimization via GTSAM to efficiently solve the high-dimensional, sparse system of equations arising from the factor graph.
  • Apply the framework to diverse systems—cart-pole, Kuka arm, 12-DoF quadruped—by defining appropriate factor types and objectives without modifying the core algorithm.

Experimental results

Research questions

  • RQ1Can a unified graphical framework represent both classical dynamics problems and complex kinodynamic motion planning with full dynamics?
  • RQ2How can dynamics constraints, contact forces, and inequality constraints be naturally encoded and optimized within a factor graph framework?
  • RQ3Can this approach generate accurate, energy-efficient, and dynamically feasible trajectories for diverse robotic systems without simplified dynamics models?
  • RQ4To what extent does the DFG framework improve trajectory accuracy and robustness in open-loop execution compared to model-predictive or simplified models?
  • RQ5Can the same optimization pipeline be reused across systems of varying complexity with minimal reconfiguration?

Key findings

  • The DFG framework successfully models and solves forward and inverse dynamics problems, with the ability to recover known algorithms (e.g., ABA, CRBA) as specific elimination orders in the factor graph.
  • For the cart-pole system, the DFGP-generated trajectory achieved precise tracking of both position and velocity objectives across two configurations, with minimal error.
  • On the Kuka LBR iiwa, the DFGP solution with a minimum torque objective reduced peak torques in the 2nd and 4th joints by up to 30% compared to unconstrained optimization, confirming improved energy efficiency.
  • For the 12-DoF quadruped, the optimized trajectory achieved high tracking accuracy in open-loop execution, with the actual center of mass trajectory closely following the desired path despite model uncertainties.
  • The inclusion of contact factors and joint limit constraints ensured no slipping or joint violations during the quadruped’s navigation along a hexagonal path.
  • The framework demonstrated end-to-end applicability across systems of vastly different complexity, from 2-DoF to 12-DoF, using the same core algorithm and solver stack (GTSAM).

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.