Public Types | |
enum | ExternalizationType { Input = 1, Output = 2, IO = 3 } |
Public Member Functions | |
TestBasicEnvironment (ref< base::VFileSystem > fs, ref< base::Cache > cache, const String &name="") | |
virtual String | className () const |
virtual ref< RobotDescription > | newRobotDescription () const |
virtual ref< Robot > | addRobot (ref< const robot::RobotDescription > robotDescription, const base::Point3 &position, const base::Orient &orientation, bool anchored=false) |
add Robot with the given description to the environment at the specified position/orientation (fixed there if anchored is true) | |
virtual void | removeRobot (ref< robot::Robot > robot) |
virtual Int | numRobots () const |
virtual ref< Robot > | getRobot (Int i) |
virtual ref< Tool > | addTool (ref< const robot::ToolDescription > toolDescription, const base::Point3 &position, const base::Orient &orientation) |
virtual void | removeTool (ref< Tool > tool) |
virtual Int | numTools () const |
virtual ref< Tool > | getTool (Int i) |
virtual ref< const Tool > | getTool (Int i) const |
virtual void | placeToolInProximity (ref< Tool > tool, ref< Robot > robot, Int manipulatorIndex=0) |
place the specified tool within grasping range of the end-effector of the specified robot manipulator | |
virtual ref< Obstacle > | addBoxObstacle (base::Dimension3 dim, const base::Point3 &position, const base::Orient &orientation, const String &name="") |
virtual ref< Obstacle > | addSphereObstacle (Real radius, const base::Point3 &position, const base::Orient &orientation, const String &name="") |
virtual void | removeObstacle (ref< Obstacle > obstacle) |
virtual Int | numObstacles () const |
virtual ref< Obstacle > | getObstacle (Int i) |
virtual ref< const Obstacle > | getObstacle (Int i) const |
virtual void | preSimulate () |
virtual void | simulateForSimTime (const base::Time &dt) |
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, const String format="", Real version=1.0) |
read or write object state to Externalizer | |
virtual ref< ToolDescription > | newToolDescription () const=0 |
virtual void | simulateForSimTime (const Time &dt)=0 |
void | simulateForRealTime (const Time &dt, Real simTimeStepSize=minSimStepSize) |
virtual bool | isSameKindAs (const ReferencedObject &) const |
virtual bool | isSameKindAs (const Object &) const |
void | reference () const |
bool | unreference () const |
const int | referenceCount () const |
void | enableOnUnreferenceCall (bool enabled) |
virtual void | onUnreference () 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 Object & | clone () const=0 |
Static Public Attributes | |
const Real | minSimStepSize |
Protected Types | |
typedef reflist< robot::TestRobot > | RobotList |
typedef reflist< Tool > | ToolList |
typedef reflist< Obstacle > | ObstacleList |
Protected Attributes | |
RobotList | robots |
list of robots in the environment | |
ToolList | tools |
list of tools in the environment | |
ObstacleList | obstacles |
list of obstacles in the environment | |
int | _refCount |
bool | onUnreferenceEnabled |
Definition at line 44 of file TestBasicEnvironment.
|
Definition at line 118 of file TestBasicEnvironment. |
|
Definition at line 116 of file TestBasicEnvironment. |
|
Definition at line 117 of file TestBasicEnvironment. |
|
Definition at line 40 of file Externalizable. |
|
|
|
Implements robot::sim::BasicEnvironment. |
|
add Robot with the given description to the environment at the specified position/orientation (fixed there if anchored is true)
Implements robot::sim::Environment. |
|
Implements robot::sim::BasicEnvironment. |
|
Implements robot::sim::BasicEnvironment. |
|
return the name of the object's class type. Must be defined by derived classes. Reimplemented from robot::sim::BasicEnvironment. Definition at line 49 of file TestBasicEnvironment. |
|
return a shallow copy, with Object& return type. Must be defined by derived classes. Implemented in base::LineSegPathRep, base::LineSegTrajectoryRep, base::ParametricPathRep, base::ParametricTrajectoryRep, base::PathComponent, base::PathName, base::WaypointPathRep, base::WaypointTrajectoryRep, gfx::TriangleIteratorState, gfx::VisualTriangles::TriangleArrayIteratorState, physics::ODECollidableBody::BodyState, and robot::sim::SimulatedBasicEnvironment. |
|
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. |
|
query if specific format is supported (for input, output or both)
Implements base::Externalizable. |
|
Implements robot::sim::BasicEnvironment. Definition at line 104 of file TestBasicEnvironment. References base::elementAt(). |
|
Implements robot::sim::BasicEnvironment. Definition at line 103 of file TestBasicEnvironment. References base::elementAt(). |
|
Implements robot::sim::Environment. Definition at line 70 of file TestBasicEnvironment. References base::elementAt(). |
|
Implements robot::sim::BasicEnvironment. Definition at line 82 of file TestBasicEnvironment. References base::elementAt(). |
|
Implements robot::sim::BasicEnvironment. Definition at line 81 of file TestBasicEnvironment. References base::elementAt(). |
|
|
|
Definition at line 52 of file ReferencedObject. |
|
|
|
Implements robot::sim::Environment. Definition at line 59 of file TestBasicEnvironment. References NewObj. |
|
Implemented in robot::sim::SimulatedBasicEnvironment. |
|
Implements robot::sim::BasicEnvironment. Definition at line 102 of file TestBasicEnvironment. References base::reflist< _Tp, _Alloc >::size(). |
|
Implements robot::sim::Environment. Definition at line 69 of file TestBasicEnvironment. References base::reflist< _Tp, _Alloc >::size(). |
|
Implements robot::sim::BasicEnvironment. Definition at line 80 of file TestBasicEnvironment. References base::reflist< _Tp, _Alloc >::size(). |
|
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(). |
|
place the specified tool within grasping range of the end-effector of the specified robot manipulator
Implements robot::sim::BasicEnvironment. |
|
Implements base::Simulatable. |
|
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(). |
|
Implements robot::sim::BasicEnvironment. |
|
Implements robot::sim::Environment. |
|
Implements robot::sim::BasicEnvironment. |
|
|
|
Reimplemented in base::Universe. |
|
Implemented in base::Universe. |
|
|
|
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(). |
|
Definition at line 39 of file Simulatable. |
|
list of obstacles in the environment
Definition at line 122 of file TestBasicEnvironment. |
|
Definition at line 137 of file Referenced. Referenced by base::Referenced::enableOnUnreferenceCall(), base::Referenced::Referenced(), and base::Referenced::unreference(). |
|
list of robots in the environment
Definition at line 120 of file TestBasicEnvironment. |
|
list of tools in the environment
Definition at line 121 of file TestBasicEnvironment. |