#include <RPLengthController.h>
Inherits tgObserver< TensegrityModel >, tgObserver< TensegrityModel >, and tgObserver< TensegrityModel >.
A controller to apply uniform tension to a RPModel. Iterates through all tgLinearString members and calls tensionMinLengthController
Definition at line 47 of file RPLengthController.h.
RPLengthController::RPLengthController |
( |
const double |
length = 400 | ) |
|
Construct a RPTensionController.
- Parameters
-
[in] | tension,a | double specifying the desired tension throughougt structure. Must be non-negitive |
Definition at line 44 of file RPLengthController_rand.cpp.
RPLengthController::~RPLengthController |
( |
| ) |
|
|
virtual |
RPLengthController::RPLengthController |
( |
const double |
length = 400 | ) |
|
Construct a RPTensionController.
- Parameters
-
[in] | tension,a | double specifying the desired tension throughougt structure. Must be non-negitive |
virtual RPLengthController::~RPLengthController |
( |
| ) |
|
|
virtual |
Nothing to delete, destructor must be virtual
RPLengthController::RPLengthController |
( |
const double |
length = 400 | ) |
|
Construct a RPTensionController.
- Parameters
-
[in] | tension,a | double specifying the desired tension throughougt structure. Must be non-negitive |
virtual RPLengthController::~RPLengthController |
( |
| ) |
|
|
virtual |
Nothing to delete, destructor must be virtual
Notify the observers when an attach action has occurred. Will only occur once, typically before setup
- Parameters
-
[in,out] | subject | the subject being observed |
Definition at line 55 of file tgObserver.h.
Notify the observers when a setup action has occurred.
- Parameters
-
[in,out] | subject | the subject being observed |
Reimplemented from tgObserver< TensegrityModel >.
Notify the observers when a setup action has occurred.
- Parameters
-
[in,out] | subject | the subject being observed |
Reimplemented from tgObserver< TensegrityModel >.
Apply the tension controller. Called my notifyStep(dt) of its subject. The tgLinearStrings will update using their tensionMinLengthController each step
- Parameters
-
[in] | subject | - the RPModel that is being controlled. Must have a list of allMuscles populated |
[in] | dt,current | timestep must be positive |
Implements tgObserver< TensegrityModel >.
Definition at line 64 of file RPLengthController_rand.cpp.
virtual void RPLengthController::onStep |
( |
TensegrityModel & |
subject, |
|
|
double |
dt |
|
) |
| |
|
virtual |
Apply the tension controller. Called my notifyStep(dt) of its subject. The tgLinearStrings will update using their tensionMinLengthController each step
- Parameters
-
[in] | subject | - the RPModel that is being controlled. Must have a list of allMuscles populated |
[in] | dt,current | timestep must be positive |
Implements tgObserver< TensegrityModel >.
virtual void RPLengthController::onStep |
( |
TensegrityModel & |
subject, |
|
|
double |
dt |
|
) |
| |
|
virtual |
Apply the tension controller. Called my notifyStep(dt) of its subject. The tgLinearStrings will update using their tensionMinLengthController each step
- Parameters
-
[in] | subject | - the RPModel that is being controlled. Must have a list of allMuscles populated |
[in] | dt,current | timestep must be positive |
Implements tgObserver< TensegrityModel >.
Notify the observers when a teardown action has occurred.
- Parameters
-
[in,out] | subject | the subject being observed |
Definition at line 67 of file tgObserver.h.
The documentation for this class was generated from the following files: