NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgCompressionSpringActuator::Config Struct Reference

#include <tgCompressionSpringActuator.h>

Inheritance diagram for tgCompressionSpringActuator::Config:

Public Member Functions

 Config (bool iFEA=false, double s=1000.0, double d=10.0, double rL=0.0, bool moveCPA=true, bool moveCPB=true)

Public Attributes

bool isFreeEndAttached
double stiffness
double damping
double restLength
bool moveCablePointAToEdge
bool moveCablePointBToEdge

Detailed Description

The config struct. As of 2016-08-02, since this compression spring is unactuated, the config struct only needs a small number of the parameters in tgSpringCableActuator.

Definition at line 63 of file tgCompressionSpringActuator.h.

Constructor & Destructor Documentation

tgCompressionSpringActuator::Config::Config ( bool  iFEA = false,
double  s = 1000.0,
double  d = 10.0,
double  rL = 0.0,
bool  moveCPA = true,
bool  moveCPB = true 

Parameter defaults.

is this the right place for this, or the constructor of this class?

Definition at line 45 of file tgCompressionSpringActuator.cpp.

Member Data Documentation

double tgCompressionSpringActuator::Config::damping

Specifies the damping (b) term in the linear force equation. Units are mass / seconds Must be non-negative.

Definition at line 105 of file tgCompressionSpringActuator.h.

bool tgCompressionSpringActuator::Config::isFreeEndAttached

List of the parameters themselves. All are passed in to tgBulletCompressionSpring. Boolean flag for attached-ness of the free end of the spring. If no, the spring only provides compression force. If yes, the spring is "attached" to both anchors, and provides a tension force too when the distance between anchors is greater than rest length.

Definition at line 90 of file tgCompressionSpringActuator.h.

bool tgCompressionSpringActuator::Config::moveCablePointAToEdge

Control the automatic re-locating of cable anchor points.

When true, the default behavior, the specified attachment point of a cable is moved from the actual node location (for example, at the center of the circle at the end of a rod) to a location at the edge of the rigid body it's attached to (for example, on the edge of the circle at the end of a rod.)

If unsure, leave default, because when set to 'false', the cable will likely clip through the rod. Disabling automatic movement of anchor points is most useful for structures that need very particular cable placement. Here, cable attachment point "A" corresponds to the first of the two anchors of the spring-cable, or the "From" point in the tgcreator files. The "B" point corresponds to the second anchor location, or the "To" point in the tgcreator files.

These parameters are used in the createTgBulletSpringCable method inside the tgBasicActuatorInfo class.

Definition at line 135 of file tgCompressionSpringActuator.h.

double tgCompressionSpringActuator::Config::restLength

Rest length of the spring. At distances above this amount, no force will be applied. Must be non-negative.

Definition at line 112 of file tgCompressionSpringActuator.h.

double tgCompressionSpringActuator::Config::stiffness

Linear Hookean stiffness of the spring (k). Must be non-negative. Upper limit depends on the timestep - stiffer springs will require a lower timestep. Units are mass / seconds^2

Definition at line 98 of file tgCompressionSpringActuator.h.

The documentation for this struct was generated from the following files: