#include <rdModelTestSuite.h>
Public Member Functions | |
| bool | Test (rdModel *aModel) |
| Run all tests on a model. | |
| bool | TestNumbers (rdModel *aModel) |
| Test the various numbers of things in a model. | |
| bool | TestNames (rdModel *aModel) |
| Test the names of things in a model. | |
| bool | TestStates (rdModel *aModel) |
| Test the methods for setting and getting the states of a model. | |
| bool | TestGravity (rdModel *aModel) |
| Test class rdGravity. | |
| bool | TestBodies (rdModel *aModel) |
| Test class for bodies. | |
| bool | TestKinematics (rdModel *aModel) |
| Test the methods for computing kinematic quantities for a model. | |
| bool | TestLoads (rdModel *aModel) |
| Test class Loads. | |
| bool | TestDerivatives (rdModel *aModel) |
| Test class Derivatives. | |
| bool | TestMassMatrix (rdModel *aModel) |
| Test class rdMassMatrix. | |
| bool | TestJacobian (rdModel *aModel) |
| Test the Jocobian methods. | |
| bool | TestOrientationUtilities (rdModel *aModel) |
| Test angular conversions. | |
| bool | TestContact (rdModel *aModel) |
| bool | TestActuation (rdModel *aModel) |
| bool | TestContacts (rdModel *aModel) |
| Test class rdContactForceSet. | |
| bool | TestActuators (rdModel *aModel) |
| Test class rdActuatorSet. | |
Private Attributes | |
| FILE * | _outFPT |
|
|
Run all tests on a model.
|
|
|
Test class rdActuatorSet. Right now these tests don't make use of the model at all; they just test constructing a set of actuators from file and then writing them back out to file.
|
|
|
Test class for bodies. rdModel::getGroundID() rdModel::getMass() rdModel::getInertiaBodyLocal() rdModel::getSystemInertia()
|
|
|
Test class rdContactForceSet. Right now these tests don't make use of the model at all; they just test constructing a set of contacts from file and then writing them back out to file.
|
|
|
Test class Derivatives. rdModel::computeAccelerations() rdModel::deriv()
|
|
|
Test class rdGravity. rdModel::getGravity() rdModel::setGravity()
|
|
|
Test the Jocobian methods.
|
|
|
Test the methods for computing kinematic quantities for a model. rdModel::getPosition() rdModel::getVelocity() rdModel::getAcceleration() rdModel::getDirectionCosines() rdModel::getAngularVelocity() rdModel::getAngularVelocityBodyLocal() rdModel::getAngularAcceleration() rdModel::getAngularAccelerationBodyLocal()
|
|
|
Test class Loads. rdModel::applyForce() rdModel::getNetAppliedGeneralizedForce()
|
|
|
Test class rdMassMatrix. rdModel::formMassMatrix()
|
|
|
Test the names of things in a model. rdModel::getName() rdModel::getBodyName() rdModel::getCoordinateName() rdModel::getSpeedName() rdModel::getActuatorName() rdModel::getControlName() rdModel::getStateName()
|
|
|
Test the various numbers of things in a model. rdModel::getNX() rdModel::getNQ() rdModel::getNU() rdModel::getNY() rdModel::getNB() rdModel::getNJ() rdModel::getNA() rdModel::getNP()
|
|
|
Test angular conversions. rdModel::convertDirectionCosinesToQuaternions() rdModel::convertQuaternionsToDirectionCosines() rdModel::convertDirectionCosinesToAngles() rdModel::convertAnglesToDirectionCosines() rdModel::convertAnglesToQuaternions() rdModel::convertQuaternionsToAngles() rdModel::convertRadiansToDegrees() rdModel::convertDegreesToRadians()
|
|
|
Test the methods for setting and getting the states of a model. rdModel::set() rdModel::setTime() rdModel::getTime() rdModel::setTimeNormConstant() rdModel::getTimeNormConstant() rdModel::setControls() rdModel::getControls() rdModel::setInitialStates() rdModel::getInitialStates() rdModel::setStates() rdModel::getStates() rdModel::setConfiguration() rdModel::getCoordinates() rdModel::getSpeeds() rdModel::extractConfiguration()
|
1.3