Helicoidal¶
Helicoidal models tendon-driven helicoidal lattice robots using GVS strain
bases, quadrature, and continuous tendon routing. It supports fixed and floating
bases with shared JAX and Warp dynamics.
Construction¶
Use Helicoidal.from_segments(...) with GVSSegment specifications. Helix
inputs derive distributed inertia from strand geometry and material density.
Other segments, including rigid cylindrical assemblies, use their ordinary GVS
cross-section geometry and density. Optional tip_mass [kg] adds translational
tip inertia; full attached bodies use the shared
inertia representation.
The optional pair mass_per_length [kg/m] and
rotational_inertia_per_length [kg m, three components] overrides distributed
inertia for all links. This is useful for externally identified backbone models.
Supply constitutive parameters through a mapping from segment indices to
HelicoidalBackboneParams or HelicoidalHelixParams. Each object describes
one segment; a mapping can mix the two types or reuse an object across segments:
robot = Helicoidal.from_segments(
segments,
constitutive_params={1: helix, 3: backbone, 5: helix},
)
Selected segments receive projected generalized stiffness and damping in
robot.params.link. Other segments use the matrices in their LinkSpec.
Backbone Parameters¶
HelicoidalBackboneParams describes the effective lattice response in the local
backbone material frame: x is longitudinal, and the component order is
[twist, bend_y, bend_z, extension, shear_y, shear_z].
from soromox.systems import HelicoidalBackboneParams
law = HelicoidalBackboneParams(
stiffness_base=K_base,
stiffness_tip=K_tip,
damping_time_constant=tau,
)
robot = robot.with_constitutive_params({1: law, 3: law, 5: law})
Endpoint arrays have shape (6,), with positive rotational stiffnesses
in N m² and translational stiffnesses in N. Compliance interpolates linearly
between their reciprocals; equal endpoint values give constant stiffness.
The law is projected using the configured strain basis and Gauss rule.
damping_time_constant accepts a scalar or six values in seconds, ordered as
[twist, bend_y, bend_z, extension, shear_y, shear_z] in the backbone material
frame. Each value scales its sectional stiffness before Gauss projection;
a scalar gives D_link = tau * K_link. For example:
law = law.replace(damping_time_constant=[0.002, 0.02, 0.02, 0.02, 0.02, 0.02])
robot = robot.with_constitutive_params({1: law, 3: law, 5: law})
Values must be finite and nonnegative; zero disables damping for that strain.
Active strains are selected in StrainBasisSpec. Numeric updates reuse compiled
methods when array shapes and dtypes remain fixed.
HelicoidalBackboneParams.from_compliance(...) also accepts affine compliance
coefficients and a segment length; see its API reference below.
Helix Parameters¶
HelicoidalHelixParams describes one soft segment with two oppositely wound
strand families. Material and sectional properties belong to cross-sections
normal to each strand's tangent. Lengths are in metres and angles in radians.
from math import pi
from soromox.systems import HelicoidalHelixParams, StrandCrossSection
helix = HelicoidalHelixParams.from_cross_section(
StrandCrossSection.circular(radius=0.002),
length=0.2,
radius_base=0.025,
radius_tip=0.025,
num_turns=3.0, # Each strand revolves around the backbone 3 times.
helices_per_direction=3, # Three strands in each winding direction.
winding_family_phase_offset=pi/6, # Families' base azimuths differ by 30 degrees.
density=1220.0,
young_modulus=30e6,
shear_modulus=30e6 / (2 * (1 + 0.48)),
fusion_stiffness_multiplier=4.0, # Scale the stiffness of fused strand crossings.
damping_time_constant=0.02,
)
backbone = helix.to_backbone()
# Use backbone.admissible_strains to choose the soft segments' strain bases.
robot = robot.with_constitutive_params({1: backbone, 3: backbone, 5: backbone})
robot = robot.with_helix_inertia({1: helix, 3: helix, 5: helix})
The reduction solves six unit-load cases at the soft segment tip relative to its
fixed base and fits a diagonal backbone law. It includes deformation of the
strand connections to the tip ring. The returned backbone parameters carry
admissible_strains; the model checks this mask against each segment's basis.
An inadmissible shear fit requires both shear strains to be deactivated.
helix.reduction_diagnostics() reruns the reduction to report the full tip
compliance, residual shear compliance, and numerical asymmetry.
Passing helix inputs directly to constitutive_params or
with_constitutive_params prepares both constitutive matrices and inertia.
Strand inertia includes cross-sectional moments, orientation, backbone offsets,
and the strand-to-backbone arc-length factor. It is sampled at the existing
Gauss points, supporting tapered geometries. Strand volumes add at crossings;
overlap is neglected. Each strand cross-section moves with its backbone material frame.
StrandCrossSection defines solid or hollow circular and rectangular strands for
both mechanics and rendering. Hollow cross-sections take a uniform wall_thickness;
rectangular height spans strand y (radial) and width spans z.
strand_constitutive_law uses the shared RodConstitutiveLaw. Its strand default
is EFFECTIVE_AREA transverse shear and SAINT_VENANT torsion: Cowper shear with
\(\nu=E/(2G)-1\) for circles/annuli, Jourawski shear energy for rectangles, exact
circular torsion and Marshall rectangular torsion. The same formulas apply to
solid and hollow strands, with continuous cavity-collapse limits. Marshall and
Jourawski remain approximations; see rod constitutive laws
for their assumptions and limits. Hollow strands require both of these choices.
helix.strand_cross_section_properties exposes the evaluated material area, principal area
moments, torsion constant and effective shear areas. The local strand stiffness,
in angular-first order, is
Measured values can be supplied through strand_area_override,
strand_second_moments_override, strand_torsion_constant_override and
strand_shear_factors_override. Shear factors multiply the resolved area.
Without strand_cross_section, all four overrides are required. Fusion and tip
attachment stiffness use their separate multipliers; damping_time_constant
applies to the fitted backbone stiffness.
Run the cylindrical example with strand-derived mechanics using:
JAX_PLATFORMS=cpu python examples/simulation/gvs/simulate_helicoidal.py \
--parameter-domain helix --duration 2 --tension 0.5 --viser
The example uses square-root sectional damping and Tsit5 at 250 µs.
Parameter Updates¶
Use the same method for either input type:
robot = robot.with_constitutive_params({1: helix.replace(young_modulus=28e6)})
robot = robot.with_constitutive_params({3: backbone.replace(stiffness_tip=K_tip)})
Reapply the parameters after changing segment lengths or constitutive inputs.
Helix lengths must match their selected GVS segments. Shared helix objects are
reduced once per call. Numeric backbone updates preserve admissible_strains.
Helix inputs also refresh inertia. For density-only updates, or after explicit
conversion with to_backbone(), use the differentiable with_helix_inertia:
Use helix.replace(strand_cross_section=section) to change strand shape, then reapply
the helix inputs as above. Derived properties follow geometry, material and law
updates. Calibrated overrides persist until explicitly cleared, for example
helix.replace(strand_shear_factors_override=None). Changing the static law
rebuilds the parameter object and can trigger JAX recompilation; numeric material
and geometry updates with the same structure remain differentiable.
Ordinary cylinder density updates use update_link_params(density=...).
Stored helix inertia is refreshed through the helix input; constitutive-only
backbone updates preserve the current inertia.
Helix reduction runs eagerly on the CPU during preparation. Use backbone parameters for differentiation through constitutive inputs. Prepared models reuse compiled dynamics when topology, array shapes, and dtypes stay fixed. Basis choices, quadrature counts, and tendon spans define the static structure.
Specialized Viser Rendering¶
HelicoidalViserRenderer displays both winding families, connectors,
and tendon routes, following the GVS material frames through deformation.
from soromox.rendering import HelicoidalModuleVisual, HelicoidalViserRenderer
renderer = HelicoidalViserRenderer(
robot,
modules=tuple(
HelicoidalModuleVisual.from_helix_params(i, helix)
for i in (1, 3, 5)
),
)
renderer.show(q)
Each module selects a link whose cross-section radius sets the helix centreline
radius. Keep the link's radius profile consistent with the helix inputs.
from_helix_params reuses the strand and winding geometry; supply strand_cross_section
explicitly when the helix inputs contain only measured sectional properties.
Rebuild the renderer after changing cross-section geometry or winding inputs.
HelicoidalVisualConfig controls colors and mesh resolution. The renderer
supports batched configurations, render_sequence, render_frame, and live
updates. Image and video capture use a connected Viser browser client.
API Reference¶
soromox.systems.components.StrandCrossSection
¶
Bases: BaseSystemParams
flowchart TD
soromox.systems.components.StrandCrossSection[StrandCrossSection]
soromox.systems.params.BaseSystemParams[BaseSystemParams]
soromox.systems.params.BaseSystemParams --> soromox.systems.components.StrandCrossSection
click soromox.systems.components.StrandCrossSection href "" "soromox.systems.components.StrandCrossSection"
click soromox.systems.params.BaseSystemParams href "" "soromox.systems.params.BaseSystemParams"
Constant circular or rectangular cross-section normal to a strand's x axis.
Attributes:
| Name | Type | Description |
|---|---|---|
geometry |
CrossSectionGeometry
|
Static cross-section family. |
outer_dimensions |
Array
|
Dynamic dimensions [m]: |
wall_thickness |
Array | None
|
Uniform wall [m] for a hollow cross-section; None for solid. |
inner_dimensions
property
¶
Dimensions of the centred cavity, or None for a solid cross-section.
radial_extent
property
¶
Half-extent along the strand's local y (radial) axis [m].
replace
¶
replace(**updates: Any) -> BaseSystemParams
Return an immutable copy with selected fields replaced.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**updates
|
Any
|
Parameter field names and their replacement values.
Nested parameter components should first be replaced with their
own |
{}
|
Returns:
| Type | Description |
|---|---|
BaseSystemParams
|
A validated parameter PyTree of the same concrete class. |
Raises:
| Type | Description |
|---|---|
KeyError
|
If any update names an unknown parameter field. |
TypeError
|
If a replacement cannot be inserted into the PyTree. |
ValueError
|
If validation of the resulting parameters fails. |
validate_for_update
¶
Validate values when concrete and structure when dynamically traced.
validate_structure_compatibility
¶
Validate statically observable compatibility with a model structure.
validate_value_compatibility
¶
Validate eager value compatibility with a model structure.
validate_against_structure
¶
Validate parameters fully against static construction choices.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
structure
|
Any
|
System-specific static structure to validate against. |
required |
Returns:
| Type | Description |
|---|---|
None
|
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If intrinsic or structure-dependent validation fails. |
validate_for_update_against_structure
¶
Validate concrete values and traced structure against a model.
circular
classmethod
¶
Construct a solid circular cross-section with radius in metres.
circular_hollow
classmethod
¶
Construct a circular tube from its outer radius and wall [m].
rectangular
classmethod
¶
Construct a solid rectangle with height along y and width along z [m].
rectangular_hollow
classmethod
¶
Construct a rectangular tube from outer dimensions and wall [m].
soromox.systems.gvs.helicoidal.Helicoidal
¶
Helicoidal(params: GVSParams, structure: GVSStructure, actuators: Actuator | tuple[Actuator, ...] | None = None, passive_elements: PassiveElement | tuple[PassiveElement, ...] | None = (), num_dynamics_prefix_buckets: int = _DEFAULT_NUM_DYNAMICS_PREFIX_BUCKETS, backend: ExecutionBackend = 'auto', backend_params: GVSBackendParams | None = None, base_pose: Array | None = None, floating_base: bool = False, **kwargs: Any)
Bases: GVS
flowchart TD
soromox.systems.gvs.helicoidal.Helicoidal[Helicoidal]
soromox.systems.gvs.core.GVS[GVS]
soromox.systems.soft_robot.SoftRobot[SoftRobot]
soromox.systems.dynamical_system.DynamicalSystem[DynamicalSystem]
soromox.systems.gvs.core.GVS --> soromox.systems.gvs.helicoidal.Helicoidal
soromox.systems.soft_robot.SoftRobot --> soromox.systems.gvs.core.GVS
soromox.systems.dynamical_system.DynamicalSystem --> soromox.systems.soft_robot.SoftRobot
click soromox.systems.gvs.helicoidal.Helicoidal href "" "soromox.systems.gvs.helicoidal.Helicoidal"
click soromox.systems.gvs.core.GVS href "" "soromox.systems.gvs.core.GVS"
click soromox.systems.soft_robot.SoftRobot href "" "soromox.systems.soft_robot.SoftRobot"
click soromox.systems.dynamical_system.DynamicalSystem href "" "soromox.systems.dynamical_system.DynamicalSystem"
Tendon-driven helicoidal lattice arm with geometric variable strains.
An effective sectional constitutive law describes the lattice's bending, torsion, extension, and shear response. Compliance varies linearly between the reciprocals of the endpoint sectional stiffnesses. Distributed lattice inertia and attached bodies at link tips account for the arm and its platforms. Tendons run continuously through compliant transitions and rigid links.
Supply an effective HelicoidalBackboneParams law directly, or prepare it
from strand geometry and material using HelicoidalHelixParams and
with_constitutive_params. Helix inputs also derive sectional inertia from
strand geometry and density; ordinary GVS segments use their own geometry
and density.
The local x-axis follows the backbone, with strains ordered as
[twist, bend_y, bend_z, extension, shear_y, shear_z]. Generalized
stiffness and damping are stored in params.link. After changing link
lengths, call with_constitutive_params to project the law over the new geometry.
Numeric parameter updates reuse compilation with fixed structure, shapes,
and dtypes. Supports JAX and Warp dynamics through GVS.
References
Guan, Qinghua, Francesco Stella, Cosimo Della Santina, Jinsong Leng, and Josie Hughes (2023). Trimmed helicoids: an architectured soft structure yielding soft robots with high precision, large workspace, and compliant interactions. npj Robotics, 1, Article 4. https://doi.org/10.1038/s44182-023-00004-7
Qin, Zhihang, Linxin Hou, Zeyu Zhong, Yuchen Sun, Wenci Xin, Yueheng Zhang, Ji Qi, Jie Wang, Peiyi Wang, Muhammad Sunny Nazeer, Yu Jun Tan, Federico Renda, and Cecilia Laschi (2026). Cosserat Modeling of Trimmed Helicoid Soft Arms with a Separated-Section Constitutive Law. arXiv:2609.25264. https://arxiv.org/abs/2609.25264
from_segments
classmethod
¶
from_segments(segments: list[GVSSegment] | tuple[GVSSegment, ...], *, mass_per_length: Array | None = None, rotational_inertia_per_length: Array | None = None, tip_mass: Array | None = None, constitutive_params: Mapping[int, HelicoidalBackboneParams | HelicoidalHelixParams] | None = None, gravity: Array | None = None, max_dof: int | None = None, max_num_gauss_points: int | None = None, scale_rotational_basis_by_length: bool = False, **kwargs: Any) -> Self
Construct from segment specs and optional helix material/geometry inputs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
segments
|
list[GVSSegment] | tuple[GVSSegment, ...]
|
GVS segment specifications. |
required |
mass_per_length
|
Array | None
|
Optional constant line-mass override per link [kg/m].
Supply together with |
None
|
rotational_inertia_per_length
|
Array | None
|
Optional principal local x/y/z inertia
override, shape |
None
|
tip_mass
|
Array | None
|
One point mass per link tip [kg]; defaults to zeros. |
None
|
constitutive_params
|
Mapping[int, HelicoidalBackboneParams | HelicoidalHelixParams] | None
|
Optional mapping from zero-based segment indices
to backbone or helix parameters. Replaces stiffness and damping
for selected segments. Helix inputs also derive distributed inertia;
see |
None
|
gravity
|
Array | None
|
Optional world-frame acceleration, shape |
None
|
max_dof
|
int | None
|
Optional common padded link/joint matrix dimension. |
None
|
max_num_gauss_points
|
int | None
|
Optional common quadrature padding. |
None
|
scale_rotational_basis_by_length
|
bool
|
Normalize rotational basis rows by link length when true. |
False
|
**kwargs
|
Any
|
Constructor arguments, including base pose and actuators. |
{}
|
Returns:
| Type | Description |
|---|---|
Self
|
A fully initialized helicoidal model. |
with_constitutive_params
¶
with_constitutive_params(params: Mapping[int, HelicoidalBackboneParams | HelicoidalHelixParams]) -> Self
Project constitutive parameters onto selected segments' GVS bases.
Each mapping entry describes one segment. Helix inputs are converted
to backbone parameters using six unit loads at the soft segment tip.
Shared helix objects are reduced once per call. Their reference lengths
must match the selected GVS segments. Their geometry and density also
refresh the selected segments' distributed inertia. Backbone inputs
update stiffness and damping. For density-only updates, use
with_helix_inertia to prepare inertia directly.
Backbone compliance is evaluated at each segment's Gauss nodes and
projected as integral B.T @ diag(1/C(s)) @ B ds (paper Eq. 25).
Each damping time constant scales its corresponding backbone sectional
stiffness before the same projection; a scalar applies to all strains.
Active basis strains must be allowed by the backbone parameters'
admissible_strains.
Backbone inputs support JAX transformations and differentiation. Prepare helix inputs eagerly on the CPU; repeat conversion after geometry or material updates. Prepared models reuse compiled dynamics with fixed structure, shapes and dtypes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
params
|
Mapping[int, HelicoidalBackboneParams | HelicoidalHelixParams]
|
Mapping from zero-based segment indices to backbone or helix parameters. Unselected segments retain their stiffness and damping. |
required |
Returns:
| Type | Description |
|---|---|
Self
|
A model with updated stiffness, damping, and derived helix inertia |
Self
|
in |
Raises:
| Type | Description |
|---|---|
TypeError
|
If a value has an unsupported parameter type. |
ValueError
|
If an index, helix length or constitutive fit is invalid,
or a basis activates inadmissible strains. Use
|
with_helix_inertia
¶
with_helix_inertia(params: Mapping[int, HelicoidalHelixParams]) -> Self
Derive distributed strand inertia for selected segments.
Use this for density-only updates or with explicitly converted backbone laws. Geometry and density are evaluated at the existing Gauss points; strand contributions include cross-sectional inertia, offsets and the strand-to-backbone arc-length factor. Volumes add at fused crossings. Other segments retain their inertia selection, including ordinary GVS geometry/density evaluation. Attached bodies retain their own inertia.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
params
|
Mapping[int, HelicoidalHelixParams]
|
Segment indices mapped to helix inputs with matching lengths. |
required |
Returns:
| Type | Description |
|---|---|
Self
|
A model with updated sectional inertia. Numeric updates support JAX |
Self
|
differentiation and reuse compilation at fixed shapes and dtypes. |
with_isotropic_material
¶
with_isotropic_material(material: IsotropicMaterialParams) -> Self
Require an effective sectional constitutive law for helicoidal lattice mechanics.
soromox.systems.gvs.params.HelicoidalBackboneParams
¶
Bases: BaseSystemParams
flowchart TD
soromox.systems.gvs.params.HelicoidalBackboneParams[HelicoidalBackboneParams]
soromox.systems.params.BaseSystemParams[BaseSystemParams]
soromox.systems.params.BaseSystemParams --> soromox.systems.gvs.params.HelicoidalBackboneParams
click soromox.systems.gvs.params.HelicoidalBackboneParams href "" "soromox.systems.gvs.params.HelicoidalBackboneParams"
click soromox.systems.params.BaseSystemParams href "" "soromox.systems.params.BaseSystemParams"
Endpoint sectional stiffnesses for one segment in its backbone material frame.
The coefficients describe the equivalent rod's effective lattice response.
Local x is longitudinal and y/z are transverse, with component order
[twist, bend_y, bend_z, extension, shear_y, shear_z]. Individual helical
strands' properties must first be reduced to this backbone constitutive law.
Compliance varies linearly over normalized reference backbone arc length
u = s/L, measured from the segment's proximal end:
C(u) = (1-u)/stiffness_base + u/stiffness_tip. The sectional stiffness
is diag(1/C(u)). Equal endpoint values give constant stiffness.
All six endpoint entries must be finite and positive. Active strains are
selected by the segment's strain basis.
Pass this object to with_constitutive_params for Gauss projection.
Reapplying it after a length change preserves the endpoint stiffnesses and
stretches the profile over the new length. Numeric updates reuse compilation
with fixed shapes and dtypes.
Attributes:
| Name | Type | Description |
|---|---|---|
stiffness_base |
Array
|
Diagonal sectional stiffness at the segment's proximal
end, shape |
stiffness_tip |
Array
|
Diagonal sectional stiffness at the segment's distal end, with the same shape, component order, frame, and units. |
damping_time_constant |
Array
|
Kelvin-Voigt time constant [s], either a scalar
shared by all strains or shape |
admissible_strains |
tuple[bool, ...]
|
Six static flags in native strain order. Active basis strains must be admissible. Helix conversion marks inadmissible shear entries false; their endpoint values are finite padding. Numeric replacements preserve these restrictions. |
from_compliance
classmethod
¶
from_compliance(*, compliance: Array, compliance_gradient: Array, length: Array, damping_time_constant: Array, admissible_strains: tuple[bool, ...] = (True,) * 6) -> Self
Convert an affine compliance law to endpoint stiffnesses.
Evaluates C(s) = compliance + (L-s)*compliance_gradient at both
ends. The supplied length is used for conversion; the returned
object stores endpoint stiffnesses. Subsequent length changes preserve
those values when the law is reprojected.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
compliance
|
Array
|
Distal backbone-frame compliance, shape |
required |
compliance_gradient
|
Array
|
Compliance variation per unit reference distance
from the distal end, shape |
required |
length
|
Array
|
Positive scalar reference backbone length [m]. |
required |
damping_time_constant
|
Array
|
Effective backbone time constant [s], either
a scalar or shape |
required |
admissible_strains
|
tuple[bool, ...]
|
Static flags identifying admissible basis strains. |
(True,) * 6
|
Returns:
| Type | Description |
|---|---|
Self
|
Endpoint parameters reproducing the supplied law at this length. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If shapes are incompatible, length is invalid, compliance is not finite and positive throughout a link, or damping is invalid. |
replace
¶
replace(**updates: Any) -> BaseSystemParams
Return an immutable copy with selected fields replaced.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**updates
|
Any
|
Parameter field names and their replacement values.
Nested parameter components should first be replaced with their
own |
{}
|
Returns:
| Type | Description |
|---|---|
BaseSystemParams
|
A validated parameter PyTree of the same concrete class. |
Raises:
| Type | Description |
|---|---|
KeyError
|
If any update names an unknown parameter field. |
TypeError
|
If a replacement cannot be inserted into the PyTree. |
ValueError
|
If validation of the resulting parameters fails. |
validate_for_update
¶
Validate values when concrete and structure when dynamically traced.
validate_structure_compatibility
¶
Validate statically observable compatibility with a model structure.
validate_value_compatibility
¶
Validate eager value compatibility with a model structure.
validate_against_structure
¶
Validate parameters fully against static construction choices.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
structure
|
Any
|
System-specific static structure to validate against. |
required |
Returns:
| Type | Description |
|---|---|
None
|
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If intrinsic or structure-dependent validation fails. |
validate_for_update_against_structure
¶
Validate concrete values and traced structure against a model.
soromox.systems.gvs.params.HelicoidalHelixParams
¶
Bases: BaseSystemParams
flowchart TD
soromox.systems.gvs.params.HelicoidalHelixParams[HelicoidalHelixParams]
soromox.systems.params.BaseSystemParams[BaseSystemParams]
soromox.systems.params.BaseSystemParams --> soromox.systems.gvs.params.HelicoidalHelixParams
click soromox.systems.gvs.params.HelicoidalHelixParams href "" "soromox.systems.gvs.params.HelicoidalHelixParams"
click soromox.systems.params.BaseSystemParams href "" "soromox.systems.params.BaseSystemParams"
Helix-domain material and geometry for one soft helicoidal segment.
Two equally spaced winding families share a constant strand cross-section normal to each strand's tangent. The segment backbone is straight along local x in its printed reference configuration. Each strand frame has x along its tangent, y along the projected outward radial direction, and z completing a right-handed frame. All lengths are in metres and angles in radians.
to_backbone() linearizes the unloaded lattice, solves six unit-load cases at
the soft segment tip relative to its fixed base, then fits the reference
toolkit's affine bending-compliance and constant torsion/extension law. Both
compliance measurement points are the soft segment ends.
This eager preparation step is independent of the runtime GVS strain basis.
Recompute it after material or geometry updates; prepared matrices can be
installed with compilation reuse when structure/shapes/dtypes stay fixed.
Run the sparse reduction eagerly, outside JAX transformations.
Attributes:
| Name | Type | Description |
|---|---|---|
length |
Array
|
Soft segment's reference backbone length [m]. |
radius_base |
Array
|
Helix centreline radius at the base [m]. |
radius_tip |
Array
|
Helix centreline radius at the tip [m]; linear taper in between. |
num_turns |
Array
|
Number of revolutions each strand makes around the backbone
over |
density |
Array
|
Strand material mass density [kg/m³]. Strand volumes are summed additively, neglecting overlap at fused crossings. |
young_modulus |
Array
|
Strand material Young's modulus [Pa]. |
shear_modulus |
Array
|
Strand material shear modulus [Pa]. |
strand_cross_section |
StrandCrossSection | None
|
Optional strand cross-section geometry retained by the shape constructors. Direct property-only construction leaves it unset. |
strand_constitutive_law |
RodConstitutiveLaw
|
Static strand shear/torsion choices. Defaults use effective shear and Saint-Venant torsion, with Marshall for rectangles. Cowper shear uses Poisson ratio E/(2G)-1. |
strand_area_override |
Array | None
|
Optional calibrated material area [m²]. |
strand_second_moments_override |
Array | None
|
Optional calibrated principal y/z area
moments, shape |
strand_torsion_constant_override |
Array | None
|
Optional calibrated torsion constant [m⁴]. |
strand_shear_factors_override |
Array | None
|
Optional calibrated y/z shear factors,
shape |
helices_per_direction |
int
|
Positive number of strands in each winding family. |
phase |
Array
|
Base azimuth of the first negative-winding strand [rad]. |
winding_family_phase_offset |
Array
|
Base azimuth of the first positive-winding strand relative to the first negative-winding strand [rad]. For example, π/6 separates the two families by 30° at the segment base. |
fusion_stiffness_multiplier |
Array
|
Dimensionless multiplier of the stiffness of fused strand crossings, computed from material moduli and a square contact patch of side sqrt(strand_area). Larger values make the connections stiffer; 1 uses the contact-patch estimate. |
tip_attachment_stiffness_multiplier |
Array
|
Stiffness of each strand's attachment to the tip ring relative to a fused crossing. The reference uses 10; strand bases are rigidly attached. |
damping_time_constant |
Array
|
Effective backbone Kelvin-Voigt time constant [s],
either a scalar or shape |
References
CharlesQueen (2026). helicoid-toolkit, spec/identify.py, lattice/assembly2.py and rod/equiv_rod.py, revision 76c659d. https://github.com/CharlesQueen/helicoid-toolkit
Qin et al. (2026). Cosserat Modeling of Trimmed Helicoid Soft Arms with a Separated-Section Constitutive Law. arXiv:2609.25264. https://arxiv.org/abs/2609.25264
strand_cross_section_properties
property
¶
strand_cross_section_properties: RodCrossSectionProperties
Resolve current geometry, material and law, then apply calibration overrides.
Derived quantities follow parameter updates without caching. Calibrated shear factors multiply the resolved material area to give effective areas.
strand_second_moments
property
¶
Resolved principal y/z area moments [m⁴].
replace
¶
Replace geometry, material, static law or calibration fields together.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**updates
|
object
|
Parameter fields to replace. Set an override to |
{}
|
Returns:
| Type | Description |
|---|---|
Self
|
A validated helix parameter object with the requested changes. |
from_cross_section
classmethod
¶
from_cross_section(strand_cross_section: StrandCrossSection, **kwargs) -> Self
Derive mechanical properties and retain geometry for visualization.
Geometry, material and the strand law determine the current properties.
Optional strand_*_override keywords supply calibrated properties.
Other keywords specify lattice geometry, material and fusion.
circular
classmethod
¶
Construct solid circular strands, retaining their radius [m].
circular_hollow
classmethod
¶
Construct circular tubes from outer radius and wall thickness [m].
rectangular
classmethod
¶
Construct solid rectangular strands with height along y, width along z [m].
rectangular_hollow
classmethod
¶
Construct hollow rectangular strands with height along y, width along z.
Dimensions are in metres. The default strand law uses Marshall torsion and Jourawski effective shear areas. Calibration overrides can supply individual sectional properties.
sectional_inertia
¶
Evaluate strand inertia per reference backbone length at positions s.
Sum strand-normal section inertias after rotating into the backbone frame and shifting to its centreline. The arc-length factor converts strand length to backbone length. Each section moves with its backbone material frame. Strand volumes are additive at crossings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
s
|
Array
|
Reference backbone arc positions [m], scalar or array, in [0, length]. |
required |
Returns:
| Type | Description |
|---|---|
Array
|
Angular-first spatial inertia, shape |
Array
|
coupling and translational blocks have units kg m, kg and kg/m. |
Array
|
Supports JAX differentiation and compilation. |
to_backbone
¶
to_backbone() -> HelicoidalBackboneParams
Fit endpoint stiffnesses and admissible strains for this segment.
Run eagerly on the CPU after material or geometry updates. The returned
admissible_strains identifies which strains the fitted law supports;
use it when choosing the segment's strain basis. Inadmissible residual
shear constrains both shear strains. An inadmissible bending, torsion,
or extension fit raises ValueError.
reduction_diagnostics
¶
Run the reduction and return diagnostics for inspecting the fit.
Returns:
| Type | Description |
|---|---|
dict[str, Array | float]
|
A dictionary containing |
dict[str, Array | float]
|
compliance at the soft tip relative to its fixed base, in native |
dict[str, Array | float]
|
|
dict[str, Array | float]
|
to tip moments/forces; block units are 1/(N m), 1/N and m/N. |
dict[str, Array | float]
|
|
dict[str, Array | float]
|
after subtracting fitted bending [m/N]; values <= 1e-9 constrain |
dict[str, Array | float]
|
shear. |
dict[str, Array | float]
|
before symmetrization, measuring numerical solve accuracy. |
validate_for_update
¶
Validate values when concrete and structure when dynamically traced.
validate_structure_compatibility
¶
Validate statically observable compatibility with a model structure.
validate_value_compatibility
¶
Validate eager value compatibility with a model structure.
validate_against_structure
¶
Validate parameters fully against static construction choices.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
structure
|
Any
|
System-specific static structure to validate against. |
required |
Returns:
| Type | Description |
|---|---|
None
|
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If intrinsic or structure-dependent validation fails. |
validate_for_update_against_structure
¶
Validate concrete values and traced structure against a model.
soromox.rendering.helicoidal.HelicoidalViserRenderer
¶
HelicoidalViserRenderer(robot: Helicoidal, *, modules: tuple[HelicoidalModuleVisual, ...] | None = None, visual_config: HelicoidalVisualConfig | None = None, config: RendererConfig | None = None, **kwargs)
Bases: ViserRenderer
flowchart TD
soromox.rendering.helicoidal.HelicoidalViserRenderer[HelicoidalViserRenderer]
soromox.rendering.viser_renderer.ViserRenderer[ViserRenderer]
soromox.rendering.base.BaseSoftRobotRenderer[BaseSoftRobotRenderer]
soromox.rendering.viser_renderer.ViserRenderer --> soromox.rendering.helicoidal.HelicoidalViserRenderer
soromox.rendering.base.BaseSoftRobotRenderer --> soromox.rendering.viser_renderer.ViserRenderer
click soromox.rendering.helicoidal.HelicoidalViserRenderer href "" "soromox.rendering.helicoidal.HelicoidalViserRenderer"
click soromox.rendering.viser_renderer.ViserRenderer href "" "soromox.rendering.viser_renderer.ViserRenderer"
click soromox.rendering.base.BaseSoftRobotRenderer href "" "soromox.rendering.base.BaseSoftRobotRenderer"
Display helicoidal strands and connecting link surfaces.
Supply modules to select the lattice links and their helix geometry.
By default every link is a lattice module. Links outside this selection
are rendered with their cross-section surfaces. The inherited static,
playback, export, and live APIs include contiguous tendon overlays.
soromox.rendering.helicoidal.HelicoidalModuleVisual
dataclass
¶
HelicoidalModuleVisual(segment_index: int, turns: float = 3.0, strands_per_family: int = 3, phase: float = 0.0, family_phase: float = pi / 6, strand_cross_section: StrandCrossSection = (lambda: circular(0.002))())
Helix geometry for one link, expressed in its material frame.
Attributes:
| Name | Type | Description |
|---|---|---|
segment_index |
int
|
Index of the GVS link carrying the lattice. |
turns |
float
|
Number of turns along the link's reference length. |
strands_per_family |
int
|
Equally spaced helices in each winding direction. |
strand_cross_section |
StrandCrossSection
|
Shared strand geometry. Height follows the projected outward radial direction (local y); width follows local z. Defaults to a solid circular cross-section with a 2 mm radius. |
phase |
float
|
Starting azimuth of the negative winding family [rad]. |
family_phase |
float
|
Additional azimuth of the positive winding family [rad]. |
The circular link cross section specifies the helix centerline radius. Geometry follows the rod's material frames, including bending and twist.
strand_radial_extent
property
¶
Half-extent of the strand along its local radial direction [m].
from_helix_params
classmethod
¶
from_helix_params(segment_index: int, params: HelicoidalHelixParams, *, strand_cross_section: StrandCrossSection | None = None) -> HelicoidalModuleVisual
Copy strand geometry and winding parameters from helix inputs.
Supply strand_cross_section explicitly for property-only helix inputs.
The link's existing circular envelope supplies the centreline radius;
it should match params.radius_base and params.radius_tip.
soromox.rendering.helicoidal.HelicoidalVisualConfig
dataclass
¶
HelicoidalVisualConfig(samples_per_turn: int = 32, strand_sections: int = 10, negative_color: tuple[float, float, float] = (0.16, 0.46, 0.76), positive_color: tuple[float, float, float] = (0.93, 0.65, 0.26), interface_color: tuple[float, float, float] = (0.35, 0.4, 0.47))
Sampling and appearance of helices and connecting links.
Attributes:
| Name | Type | Description |
|---|---|---|
samples_per_turn |
int
|
Minimum longitudinal sampling density of each helix. |
strand_sections |
int
|
Vertices around a strand cross section. |
negative_color |
tuple[float, float, float]
|
RGB color of the negative winding family, in [0, 1]. |
positive_color |
tuple[float, float, float]
|
RGB color of the positive winding family, in [0, 1]. |
interface_color |
tuple[float, float, float]
|
RGB color of connecting links, in [0, 1]. |