Public Types | |
enum | ExternalizationType { Input = 1, Output = 2, IO = 3 } |
Public Member Functions | |
IKORTest (ref< base::VFile > testSpecification, ref< base::VFileSystem > fs, ref< base::Cache > cache) | |
virtual String | className () const |
ref< BasicEnvironment > | getEnvironment () |
the environment in which tests are performed | |
ref< const BasicEnvironment > | getEnvironment () const |
void | setEnvironment (ref< BasicEnvironment > env) |
ref< Robot > | getRobot () |
which robot is to be tested? | |
ref< const Robot > | getRobot () const |
Int | getManipulatorIndex () const |
which of the robot's manipulators is to be tested? | |
Int | numTests () const |
Test & | getTest (Int index) |
base::PathName | getTestInputPath () const |
the VFileSystem path from which the test specification was read | |
void | saveResults (bool saveTrajFiles=true, base::PathName alternateOutputFileName=base::PathName()) |
virtual bool | formatSupported (const String format, Real version=1.0, ExternalizationType type=IO) const |
query if specific format is supported (for input, output or both) | |
virtual void | externalize (base::Externalizer &e, String format="", Real version=1.0) |
read or write object state to Externalizer | |
virtual const String & | getName () const |
virtual void | externalize (Externalizer &e, String format="", Real version=1.0) const |
write object state to Externalizer (throws if e is in Input) | |
void | load (ref< VFile > archive, const String &format="", Real version=1.0) |
void | save (ref< VFile > archive, const String &format="", Real version=1.0) |
virtual bool | isSameKindAs (const Object &) const |
virtual bool | isSameKindAs (const ReferencedObject &) const |
void | reference () const |
bool | unreference () const |
const int | referenceCount () const |
void | enableOnUnreferenceCall (bool enabled) |
virtual void | onUnreference () const |
Public Attributes | |
bool | displayObstacles |
true if obstacles are selected for display | |
bool | displayAxes |
true if coordinate axes selected for display | |
bool | displayPlatform |
true if the platform should be displayed | |
bool | displayEEPath |
true if the path of the manip/tool is selected for display | |
Int | displayStepMod |
only display every nth step (1 for all steps) | |
base::Point3 | lookAtTarget |
camera parameters (as in gfx::LookAtCameraManipulator) | |
Real | alpha |
Real | theta |
Real | d |
Protected Member Functions | |
virtual void | setName (const String &name) |
Protected Attributes | |
ref< base::VFileSystem > | filesystem |
ref< base::Cache > | cache |
ref< SimulatedBasicEnvironment > | env |
Int | testRobotIndex |
which robot from the environment is used for testing | |
Int | testManipulatorIndex |
which manipulator (in case the robot has multiple) is used for testing | |
array< Test > | tests |
base::PathName | inputPath |
int | _refCount |
bool | onUnreferenceEnabled |
Definition at line 58 of file IKORTest.
|
Definition at line 40 of file Externalizable. |
|
|
|
return the name of the object's class type. Must be defined by derived classes. Implements base::Object. Reimplemented in robot::sim::VisualIKORTest. |
|
If enabled, each call to unreference() will also call virtual method onUnreference() Definition at line 115 of file Referenced. References base::Referenced::onUnreferenceEnabled. |
|
|
read or write object state to Externalizer
Implements base::Externalizable. Reimplemented in robot::sim::VisualIKORTest. |
|
query if specific format is supported (for input, output or both)
Implements base::Externalizable. Reimplemented in robot::sim::VisualIKORTest. |
|
Definition at line 146 of file IKORTest. References env. |
|
the environment in which tests are performed
Definition at line 145 of file IKORTest. References env. |
|
which of the robot's manipulators is to be tested?
Definition at line 154 of file IKORTest. References testManipulatorIndex. |
|
Definition at line 44 of file Named. References base::String. Referenced by physics::Collidable::findNamed(), physics::operator<<(), robot::ToolDescription::operator=(), robot::RobotDescription::operator=(), robot::PlatformDescription::operator=(), robot::ManipulatorDescription::operator=(), base::Named::operator=(), and robot::ManipulatorDescription::operator==(). |
|
Definition at line 151 of file IKORTest. References env, and testRobotIndex. |
|
which robot is to be tested?
Definition at line 150 of file IKORTest. References env, and testRobotIndex. |
|
Definition at line 157 of file IKORTest. References Assert, numTests(), and tests. |
|
the VFileSystem path from which the test specification was read
Definition at line 160 of file IKORTest. References inputPath. |
|
Definition at line 52 of file ReferencedObject. |
|
|
|
|
|
Definition at line 156 of file IKORTest. References tests. Referenced by getTest(). |
|
Called by unreference() if enabled via enableOnUnreferenceCall(true). Typically overridden in subclasses that wish to know about unreference() calls - for example to handle manually breaking cyclic references Reimplemented in robot::control::ControllableAdaptor::AdaptorControlInterface, and robot::control::ControllableAdaptor. Definition at line 121 of file Referenced. Referenced by base::Referenced::unreference(). |
|
Increment the reference count by one, indicating that this object has another pointer which is referencing it. Definition at line 65 of file Referenced. References base::Referenced::_refCount. |
|
Return the number pointers currently referencing this object. Definition at line 112 of file Referenced. References base::Referenced::_refCount. Referenced by robot::control::ControllableAdaptor::AdaptorControlInterface::onUnreference(). |
|
|
|
save the test and any results Externalizes the entire IKORTest specification with results (if present) Also, if saveTrajFiles is true, the result trajectory of each test is saved in a seperate file (per test) |
|
|
|
|
Decrement the reference count by one, indicating that a pointer to this object is referencing it. If the refence count goes to zero, it is assumed that this object is nolonger referenced and is automatically deleted. Definition at line 81 of file Referenced. References base::Referenced::_refCount, Exception, base::Referenced::onUnreference(), and base::Referenced::onUnreferenceEnabled. |
|
Definition at line 136 of file Referenced. Referenced by base::Referenced::reference(), base::Referenced::referenceCount(), base::Referenced::Referenced(), base::Referenced::unreference(), and base::Referenced::~Referenced(). |
|
|
|
|
|
|
|
true if coordinate axes selected for display
|
|
true if the path of the manip/tool is selected for display
|
|
true if obstacles are selected for display
|
|
true if the platform should be displayed
|
|
only display every nth step (1 for all steps)
|
|
Definition at line 191 of file IKORTest. Referenced by getEnvironment(), and getRobot(). |
|
|
|
Definition at line 197 of file IKORTest. Referenced by getTestInputPath(). |
|
camera parameters (as in gfx::LookAtCameraManipulator)
|
|
Definition at line 137 of file Referenced. Referenced by base::Referenced::enableOnUnreferenceCall(), base::Referenced::Referenced(), and base::Referenced::unreference(). |
|
which manipulator (in case the robot has multiple) is used for testing
Definition at line 193 of file IKORTest. Referenced by getManipulatorIndex(). |
|
which robot from the environment is used for testing
Definition at line 192 of file IKORTest. Referenced by getRobot(). |
|
Definition at line 196 of file IKORTest. Referenced by getTest(), and numTests(). |
|
|