UF_MOTION_spring_damper_s (view source)
 
Defined in: uf_motion_types.h
 
Also known as:
 
Overview
Data structure definition for use with both springs and
dampers since they share many of the same attributes.


Data Members

name [ UF_OBJ_NAME_BUFSIZE ]
char
The name of the spring damper.
If NULL, a default name will be
created.

spr_dmp_type
UF_MOTION_spring_damper_type_t
The type of spring/damper.
See the enum definition.

joint
tag_t
The joint owning the spring/damper
if the spring/damper type is
UF_MOTION_revolute_spring_damper or
UF_MOTION_slider_spring_damper.

link_1
tag_t
Link one of the spring/damper if
the spring/damper type is
UF_MOTION_link_spring_damper.

point_1
tag_t
The point of the spring/damper
attachment on the first link.
See uf_so.h for smart point creation.
If the spring/damper type is
UF_MOTION_slider_spring_damper or
UF_MOTION_revolute_spring_damper,
this will automatically be set
with the joint origin.

pt1_coord [ 3 ]
double
The coordinates of the attachment
point of the spring/damper on the
first link. Not required for creation
or edit. If a smart point is not
provided for point_1, a dumb point will
automatically be created from input
coordinates (not recommended).

link_2
tag_t
Link two of the spring/damper, or
NULL_TAG if ground. This is only
for a spring/damper type of
UF_MOTION_link_spring_damper.

point_2
tag_t
The point of the spring/damper
attachment on the second link,
or the point of attachment to
ground if link_2 is NULL_TAG.
See uf_so.h for smart point creation.
If the spring/damper type is
UF_MOTION_slider_spring_damper,
this will automatically be set
with the joint origin.

pt2_coord [ 3 ]
double
The coordinates of the attachment
point of the spring/damper to the
second link, or to ground. Not required
for creation or edit. If a smart
point is not provided for point_2,
a dumb point will automatically be
created from input coordinates
(not recommended).

spring_rate
double
The spring rate for both rotational
and translational springs.

spring_preload
double
The spring preload at the reference length or angle

spring_ref_length
double
The reference length of the spring
is used to calculate either the
preload force on the spring or the
free length. This is used for
linear springs.

spring_ref_angle
double
The reference angle of the spring
at zero displacement. This is used
for rotational springs.

spring_init_length
double
The initial length of the spring at assembly
position; used for spring defined on slide
joint

damping_rate
double
The linear damping rate of the
damper.