OpenSim::ControllerSet Class Reference
A class for holding and managing a set of controllers for a model.
More...
#include <ControllerSet.h>
List of all members.
Detailed Description
A class for holding and managing a set of controllers for a model.
- Authors:
- Jack Middleton
- Version:
- 1.0
Constructor & Destructor Documentation
ControllerSet::ControllerSet |
( |
|
) |
|
ControllerSet::ControllerSet |
( |
Model & |
model |
) |
|
ControllerSet::ControllerSet |
( |
const ControllerSet & |
aControllerSet |
) |
|
Copy constructor.
- Parameters:
-
ControllerSet::ControllerSet |
( |
Model & |
model, |
|
|
const std::string & |
aFileName, |
|
|
bool |
aUpdateFromXMLNode = true | |
|
) |
| | |
Construct a controller set from file.
- Parameters:
-
| aFileName | Name of the file. |
ControllerSet::~ControllerSet |
( |
|
) |
[virtual] |
Member Function Documentation
bool ControllerSet::addController |
( |
Controller * |
aController |
) |
|
Add a Controller to the set.
A copy of the specified controller is not made.
This method overrides the method in Set<Controller> so that several internal variables of the controller set can be updated.
- Parameters:
-
| aController | Pointer to the controller to be appended. |
- Returns:
- True if successful; false otherwise.
bool ControllerSet::check |
( |
|
) |
const [virtual] |
Check that all actuators have a valid controller.
void ControllerSet::constructStorage |
( |
|
) |
[virtual] |
Object * ControllerSet::copy |
( |
|
) |
const [virtual] |
void ControllerSet::copyData |
( |
const ControllerSet & |
aControllerSet |
) |
|
Copy the member variables of the ControllerSet.
- Parameters:
-
| aControllerSet | controller set to be copied |
double ControllerSet::getFirstTime |
( |
|
) |
const [virtual] |
double ControllerSet::getLastTime |
( |
|
) |
const [virtual] |
Assignment operator.
- Returns:
- Reference to this object.
Reimplemented from OpenSim::Object.
virtual void OpenSim::ControllerSet::printControlStorage |
( |
const std::string & |
fileName |
) |
const [virtual] |
void ControllerSet::printInfo |
( |
|
) |
const [virtual] |
bool ControllerSet::set |
( |
int |
aIndex, |
|
|
Controller * |
aController | |
|
) |
| | |
Set the controller at an index.
A copy of the specified controller is NOT made. The controller previously set a the index is removed (and deleted).
This method overrides the method in Set<Controller> so that several internal variables of the controller set can be updated.
- Parameters:
-
| aIndex | Array index where the controller is to be stored. aIndex should be in the range 0 <= aIndex <= getSize(); |
| acontroller | Pointer to the controller to be set. |
- Returns:
- True if successful; false otherwise.
void ControllerSet::setActuators |
( |
Set< Actuator > & |
as |
) |
[virtual] |
void ControllerSet::setDesiredStates |
( |
Storage * |
yStore |
) |
[virtual] |
void ControllerSet::setModel |
( |
Model * |
model |
) |
[virtual] |
void ControllerSet::setup |
( |
Model & |
aModel |
) |
[virtual] |
void ControllerSet::setupSystem |
( |
SimTK::MultibodySystem & |
system |
) |
[virtual] |
void ControllerSet::storeControls |
( |
const SimTK::State & |
s, |
|
|
int |
step | |
|
) |
| | [virtual] |
The documentation for this class was generated from the following files:
- OpenSim/Simulation/Model/ControllerSet.h
- OpenSim/Simulation/Model/ControllerSet.cpp