Skip to main content
QUICK REVIEW

[Paper Review] CASCLIK: CasADi-Based Closed-Loop Inverse Kinematics

Mathias Hauan Arbo, Esten Ingar Grøtli|arXiv (Cornell University)|Jan 20, 2019
Robotic Mechanisms and DynamicsEngineering25 references3 citations
TL;DR

CASCLIK is a CasADi-based Python module for rapid prototyping of closed-loop inverse kinematics controllers that support multiple constraint-based tasks using quadratic, nonlinear, or model predictive optimization, or set-based task-priority methods. It introduces a novel multidimensional 'in tangent cone' function for improved set constraint handling, enabling better task representation than splitting multidimensional constraints into one-dimensional components.

ABSTRACT

A Python module for rapid prototyping of constraint-based closed-loop inverse kinematics controllers is presented. The module allows for combining multiple tasks that are resolved with a quadratic, nonlinear, or model predictive optimization-based approach, or a set-based task-priority inverse kinematics approach. The optimization-based approaches are described in relation to the set-based task approach, and a novel multidimensional "in tangent cone" function is presented for set-based tasks. A ROS component is provided, and the controllers are tested with matching a pose using either transformation matrices or dual quaternions, trajectory tracking while remaining in a bounded workspace, maximizing manipulability during a tracking task, tracking an input marker's position, and force compliance.

Motivation & Objective

  • To enable rapid prototyping of constraint-based closed-loop inverse kinematics controllers for robotic systems.
  • To support multiple task types—such as pose tracking, trajectory following, manipulability maximization, and force compliance—within a unified framework.
  • To provide a flexible, robot-agnostic controller architecture that decouples task specification from low-level control and solver implementation.
  • To explore alternative controller formulations, including optimization-based and null-space approaches, for potential integration into industrial frameworks.
  • To improve the representation of multidimensional set constraints through a novel multidimensional 'in tangent cone' function.

Proposed method

  • Translates user-defined tasks into optimization problems (QP, NLP, MPC) solvable via CasADi’s numerical solvers.
  • Implements a set-based task-priority inverse kinematics framework using CasADi’s symbolic differentiation for Jacobian computation.
  • Introduces a multidimensional 'in tangent cone' function to represent set constraints in higher dimensions, avoiding the need to decompose them into one-dimensional components.
  • Supports both velocity-level and, via extension, acceleration-level control formulations using the task function approach.
  • Provides a ROS component for real-time testing and integration with robotic systems.
  • Defers to CasADi for symbolic backend and optimization, enabling fast prototyping with just-in-time compilation and C code generation support.

Experimental results

Research questions

  • RQ1How can a unified, robot-agnostic framework be designed to support multiple inverse kinematics controller formulations for constraint-based tasks?
  • RQ2What are the performance and trade-offs between optimization-based and set-based task-priority approaches in multi-task inverse kinematics?
  • RQ3Can a multidimensional formulation of the 'in tangent cone' function improve the accuracy and efficiency of set constraint representation compared to splitting into one-dimensional constraints?
  • RQ4How do different controller types—null-space, QP, NLP, MPC—compare in terms of execution speed, convergence, and task prioritization behavior?
  • RQ5To what extent can CASCLIK support real-time control and be deployed on embedded systems through CasADi’s compilation capabilities?

Key findings

  • The multidimensional 'in tangent cone' function enables a more accurate and compact representation of set constraints than decomposing them into multiple one-dimensional constraints.
  • The null-space approach generally executes faster than QP, NLP, or MPC approaches, with execution times increasing by an order of magnitude from null-space to MPC depending on horizon length.
  • Optimization-based approaches (QP, NLP, MPC) can improve manipulability in tracking tasks where null-space and QP methods fail to find better configurations.
  • The NLP and MPC approaches outperform QP and null-space methods in manipulability maximization, though the benefit of NLP may be reduced when using Taylor expansion approximations.
  • Compilation time for the null-space approach grows exponentially with the number of set constraints due to $2^{n_{\text{set}}}$ mode generation, limiting scalability for large constraint sets.
  • The framework achieves sub-millisecond execution speeds with CasADi’s JIT compilation, enabling real-time testing on physical systems, though industrial deployment is recommended via eTaSL/eTC.

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.