Public Types | |
enum | CoordFrame { UnknownFrame, EndEffectorFrame, EndEffectorBaseFrame, BaseFrame, MountFrame, PlatformFrame, WorldFrame } |
Public Member Functions | |
virtual array< std::pair< String, String > > | controlInterfaces () const |
virtual ref< ControlInterface > | getControlInterface (String interfaceName="")=0 throw (std::invalid_argument) |
get a ControlInterface by name (or throw if the name isn't a valid interface) | |
virtual bool | isDescriptionProvided () const |
is there a description of this robot available? | |
virtual ref< const RobotDescription > | getRobotDescription () const throw (std::logic_error) |
get a description of the robot, if provided. Throws an exception if no description can be provided. | |
virtual ref< RobotDescription > | newRobotDescription () const |
virtual ref< PlatformDescription > | newPlatformDescription () const |
virtual ref< ManipulatorDescription > | newManipulatorDescription () const |
virtual ref< ToolDescription > | newToolDescription () const |
base::Matrix4 | coordFrameTransform (CoordFrame from, CoordFrame to=PlatformFrame, Int manipulatorIndex=0, const base::Matrix4 &T=base::Matrix4(), const base::Point3 &platformPosition=base::Point3(), const base::Orient &platformOrientation=base::Orient()) const |
virtual bool | isSameKindAs (const ReferencedObject &) const |
virtual bool | isSameKindAs (const Object &) const |
virtual String | className () const=0 |
void | reference () const |
bool | unreference () const |
const int | referenceCount () const |
void | enableOnUnreferenceCall (bool enabled) |
virtual void | onUnreference () const |
Static Public Member Functions | |
CoordFrame | coordFrame (const String &frameString) |
convert String coord. frame specifier to CoordFrame | |
String | coordFrame (CoordFrame coordFrame) |
convert coord. frame specifier to String | |
Protected Member Functions | |
Robot () | |
Robot (const Robot &r) | |
void | setRobotDescription (ref< const RobotDescription > robotDescription) |
Protected Attributes | |
int | _refCount |
bool | onUnreferenceEnabled |
Definition at line 42 of file Robot.
|
|
|
|
|
|
|
|
A Robot provides a number of ControlInterfaces for various parts, such as its drive platform, manipulators and other sensors etc. Refer to documentation for specific concrete Robot implementation for specific ControlInterface names and descriptions. This method enumerates the ControlInterface names and their types. The interfaces can be obtained by passing the name to the getControlInterface() method. Reimplemented in robot::sim::SimulatedRobot, and robot::TestRobot. |
|
convert coord. frame specifier to String
|
|
convert String coord. frame specifier to CoordFrame
|
|
Obtain transformation that will transform between coordinate frames Some transformations will require further information, such as specifying the forward kinematics transform from the base frame to the end-effector frame, or which manipulator (EndEffector[Base]Frame, BaseFrame & MountFrame) Transformations involving the WorldFrame require the platform position and orientation. |
|
If enabled, each call to unreference() will also call virtual method onUnreference() Definition at line 115 of file Referenced. References base::Referenced::onUnreferenceEnabled. |
|
get a ControlInterface by name (or throw if the name isn't a valid interface)
Implements robot::Controllable. Implemented in robot::sim::SimulatedRobot, and robot::TestRobot. |
|
get a description of the robot, if provided. Throws an exception if no description can be provided.
Definition at line 64 of file Robot. References Exception, and isDescriptionProvided(). |
|
is there a description of this robot available?
Reimplemented in robot::sim::SimulatedRobot, and robot::TestRobot. Definition at line 61 of file Robot. Referenced by getRobotDescription(). |
|
|
|
Definition at line 52 of file ReferencedObject. |
|
Reimplemented in robot::sim::SimulatedRobot. Definition at line 76 of file Robot. References NewObj. |
|
Reimplemented in robot::sim::SimulatedRobot. Definition at line 75 of file Robot. References NewObj. |
|
Definition at line 74 of file Robot. References NewObj. |
|
Definition at line 77 of file Robot. References NewObj. |
|
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(). |
|
|
|
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 137 of file Referenced. Referenced by base::Referenced::enableOnUnreferenceCall(), base::Referenced::Referenced(), and base::Referenced::unreference(). |