Skip to content
SofaDefrostPublic

About

A SOFA plugin to simulate linear structures using Cosserat theory

Topics

Resources

Stars

62 stars

Watchers

6 watching

Forks

Repository files navigation

Cosserat Plugin

Gitter Support download forks stars

Overview

An open-source plugin compatible with the Sofa framework for simulating 1D objects. It enables modeling of rigid and flexible 1D entities such as rods, wires, or needles using Cosserat beam theory. You can create scenes in Python or XML, or develop new C++ components. Contributions are welcome!

Theory and Background

The Cosserat model simulates deformation of robot bodies with rod-like geometry and mechanical properties. It replicates nonlinear deformations including bending, torsion, extension, and shearing.

Key feature: Each material point is treated as a rigid body with 6 degrees of freedom (3 translations + 3 rotations), unlike traditional models that treat points as particles with 3 translations.

This creates a framework similar to articulated solids, where relative positions are defined by strain states. Ideal for modeling concentric tube robots, cable-actuated continuum robots, or pneumatic soft robots with constant cross-sections.

For theoretical details: Theory

Features

Piece-wise Constant Strain (PCS)

Based on:

  • Discrete cosserat approach for soft robot dynamics: A new piece-wise constant strain model with torsion and shears Link
  • Coupling numerical deformable models in global and reduced coordinates for the simulation of the direct and inverse kinematics of Soft Robots Link
Video demonstration

Piece-wise Non-constant Strain

Allows strain to vary continuously within each beam section, enabling more accurate modeling of complex deformations compared to the constant strain assumption. Useful for beams with varying material properties or under non-uniform loads.

DCM with Plastic Model

Extends the Discrete Cosserat Model to include plastic behavior, simulating permanent deformations in materials that exceed elastic limits. This is essential for modeling materials that undergo irreversible changes under stress.

Use Cases and Applications

Cochlear Implant Modeling

Using Discrete Cosserat Model (DCM):

View 1 View 2 View 3
DCM Implant View 1 DCM Implant View 2 DCM Implant View 3

Cable Modeling for Deformable Robot Control

Soft Gripper Simulation Model Convergence Study
Soft Gripper Convergence Study

Actuation Examples

Cable Actuation 1 Cable Actuation 2 Cable Actuation 3
Actuation 1 Actuation 2 Actuation 3

Animation Examples

Example 1 Example 2 Example 3
PCS Example 1 PCS Example 2 PCS Example 3

Tripod with Bending Sensors

Tripod Sensor

Getting Started

Follow the tutorial: Cosserat Tutorial

Publications

  1. Discrete cosserat approach for soft robot dynamics: A new piece-wise constant strain model with torsion and shears
    IEEE Link

  2. Coupling numerical deformable models in global and reduced coordinates for the simulation of the direct and the inverse kinematics of Soft Robots
    IEEE Link
    PDF Download

Contributing

We welcome contributions! Please see our contribution guidelines and feel free to open issues or pull requests.

About

A SOFA plugin to simulate linear structures using Cosserat theory

Topics

Resources

Stars

62 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages