In file /home/blah/darwin2k/src/dyno/mechanism/dynoInfluence.h: Applies a force proportional to mass to every link.
Inheritance:
Public Fields
-
triple acc
- the direction and magnitude of the acceleration felt by each link
Public Methods
-
uniformField(void)
- constructor
-
uniformField(const triple &Acc)
- constructor
-
int apply(void)
- applies a force of acc*link::mass to each link in the system
Public Fields
-
dynamicSystem* ds
-
int active
-
int stateSize
Public Methods
-
inline virtual int getState(double* state)
-
inline virtual int setState(const double* state)
-
inline virtual int reset(void)
Public Fields
-
static int staticClassID
-
int objectID
-
int verboseLevel
Public Methods
-
virtual const char* className(void) const
-
virtual synObject* copy(void) const
-
virtual int isOfType(int typeNum, int derivedOk)
-
static int setStaticClassID(void)
-
virtual int classID(void) const
Documentation
Applies a force proportional to mass to every link.
The uniformField class provides an easy way to add gravity (or
gravity-like forces) to all links in a dynamicSystem. The force
for each link is computed as acc*link::mass, where acc is a triple
indicating direction and magnitude. For example, acc = (0, 0, -9.8)
would correspond to a gravitational acceleration of 9.8m/s^2 acting
in the -z direction.
- triple acc
- the direction and magnitude of the acceleration felt by each link
- uniformField(void)
- constructor
- uniformField(const triple &Acc)
- constructor
- int apply(void)
- applies a force of acc*link::mass to each link in the system
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.