Inheritance diagram for robot::sim::VisualIKORTest:
Public Types | |
enum | ExternalizationType { Input = 1, Output = 2, IO = 3 } |
typedef Int | Attributes |
typedef Int | VisualType |
enum | AttributeFlags { ShowAxes = 1, ShowBounds = 2, ShowCollisions = 4, ShowCollisionModel = 8, ShowCollisionDetection = 16, ShowEdges = 32, ShowNormals = 64, VerticesOnly = 128 } |
Public Member Functions | |
VisualIKORTest (ref< base::VFile > testSpecification, ref< base::VFileSystem > fs, ref< base::Cache > cache) | |
virtual String | className () const |
virtual bool | visualTypeSupported (VisualType type) const |
virtual osg::Node * | createOSGVisual (Attributes visualAttributes=0) const |
virtual void | updateVisuals () const |
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 | |
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 void | externalize (Externalizer &e, String format="", Real version=1.0) const |
write object state to Externalizer (throws if e is in Input) | |
virtual const String & | getName () const |
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 |
virtual osg::Node * | createOSGVisual (Visual::Attributes visualAttributes=0) 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 |
Static Public Attributes | |
const Int | OSGVisual = 1 |
Protected Types | |
typedef base::array< gfx::Segment3 > | LineSegArray |
Protected Member Functions | |
osg::Node * | osgCreateAxes () const |
osg::Node * | osgCreateObstacles () const |
osg::Node * | osgCreateManipulator () const |
osg::Node * | osgCreateTrajectory () const |
void | svgLine (base::Externalizer &e, base::dom::DOMElement *svgElem, const gfx::Segment3 &line) const |
void | svgLines (base::Externalizer &e, base::dom::DOMElement *svgElem, const LineSegArray &lines) const |
void | svgText (base::Externalizer &e, base::dom::DOMElement *svgElem, const Point3 &pos, const String &text, Real size=11) const |
void | svgOutputAxes (base::Externalizer &e, base::dom::DOMElement *svgElem) const |
virtual void | setName (const String &name) |
Static Protected Member Functions | |
LineSegArray | manipToolAsLines (const KinematicChain &chain, const Vector &q, Int numPlatformLinks) |
LineSegArray | platformAsLines (ref< const PlatformDescription > platfDescr, const KinematicChain &platfChain, const Vector &q, Real steerAngle) |
LineSegArray | obstaclesAsLines (ref< const BasicEnvironment > env) |
LineSegArray | trajectoryAsLines (const array< base::Vector > &xs) |
osg::Vec3Array * | newVertexArrayFromLines (const LineSegArray &lines) |
osg::Geometry * | newGeometryFromLines (const LineSegArray &lines, const gfx::Color4 &color) |
Protected Attributes | |
Visual::Attributes | attributes |
osg::ref_ptr< osg::Switch > | node |
array< osg::ref_ptr< osg::Switch > > | testPlatfSwitches |
one Switch per test, where children are joint space configurations of platform | |
array< osg::ref_ptr< osg::Switch > > | testManipSwitches |
one Switch per test, where children are joint space configurations of manipulator | |
base::Matrix4 | svgTransform |
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 48 of file VisualIKORTest.
|
Definition at line 39 of file Visual. Referenced by gfx::Visual::createOSGVisual(). |
|
Definition at line 74 of file VisualIKORTest. |
|
Definition at line 44 of file Visual. Referenced by gfx::Visual::visualTypeSupported(). |
|
|
|
Definition at line 40 of file Externalizable. |
|
|
|
return the name of the object's class type. Must be defined by derived classes. Reimplemented from robot::sim::IKORTest. Definition at line 54 of file VisualIKORTest. |
|
Reimplemented in physics::GJKCollisionDetector, physics::OBBCollisionModel, physics::ODECollisionModel, physics::ODESolidSystem, physics::Solid, physics::SOLIDCollisionModel, and robot::sim::SimulatedBasicEnvironment. Definition at line 49 of file Visual. References gfx::Visual::Attributes, Logln, and NewObj. |
|
|
|
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
Reimplemented from robot::sim::IKORTest. |
|
query if specific format is supported (for input, output or both)
Reimplemented from robot::sim::IKORTest. Definition at line 65 of file VisualIKORTest. |
|
Definition at line 146 of file IKORTest. References robot::sim::IKORTest::env. |
|
the environment in which tests are performed
Definition at line 145 of file IKORTest. References robot::sim::IKORTest::env. |
|
which of the robot's manipulators is to be tested?
Definition at line 154 of file IKORTest. References robot::sim::IKORTest::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 robot::sim::IKORTest::env, and robot::sim::IKORTest::testRobotIndex. |
|
which robot is to be tested?
Definition at line 150 of file IKORTest. References robot::sim::IKORTest::env, and robot::sim::IKORTest::testRobotIndex. |
|
Definition at line 157 of file IKORTest. References Assert, robot::sim::IKORTest::numTests(), and robot::sim::IKORTest::tests. |
|
the VFileSystem path from which the test specification was read
Definition at line 160 of file IKORTest. References robot::sim::IKORTest::inputPath. |
|
Definition at line 52 of file ReferencedObject. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 156 of file IKORTest. References robot::sim::IKORTest::tests. Referenced by robot::sim::IKORTest::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. |
|
|
|
Reimplemented from gfx::Visual. Definition at line 58 of file VisualIKORTest. |
|
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(). |
|
|
|
Definition at line 83 of file VisualIKORTest. |
|
|
|
|
|
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 robot::sim::IKORTest::getEnvironment(), and robot::sim::IKORTest::getRobot(). |
|
|
|
Definition at line 197 of file IKORTest. Referenced by robot::sim::IKORTest::getTestInputPath(). |
|
camera parameters (as in gfx::LookAtCameraManipulator)
|
|
Definition at line 84 of file VisualIKORTest. |
|
Definition at line 137 of file Referenced. Referenced by base::Referenced::enableOnUnreferenceCall(), base::Referenced::Referenced(), and base::Referenced::unreference(). |
|
|
|
Definition at line 99 of file VisualIKORTest. |
|
one Switch per test, where children are joint space configurations of manipulator
Definition at line 95 of file VisualIKORTest. |
|
which manipulator (in case the robot has multiple) is used for testing
Definition at line 193 of file IKORTest. Referenced by robot::sim::IKORTest::getManipulatorIndex(). |
|
one Switch per test, where children are joint space configurations of platform
Definition at line 94 of file VisualIKORTest. |
|
which robot from the environment is used for testing
Definition at line 192 of file IKORTest. Referenced by robot::sim::IKORTest::getRobot(). |
|
Definition at line 196 of file IKORTest. Referenced by robot::sim::IKORTest::getTest(), and robot::sim::IKORTest::numTests(). |
|
|