Public Types | |
enum | Type { Serial, Parallel } |
enum | ExternalizationType { Input = 1, Output = 2, IO = 3 } |
Public Member Functions | |
ManipulatorDescription () | |
ManipulatorDescription (String name, Matrix4 baseTransform, KinematicChain kinematicChain) | |
ManipulatorDescription (const ManipulatorDescription &md) | |
ManipulatorDescription & | operator= (const ManipulatorDescription &md) |
virtual String | className () const |
void | set (String name, Matrix4 baseTransform, KinematicChain kinematicChain) |
virtual Type | type () const |
virtual const KinematicChain & | getKinematicChain (Int p=0) const |
virtual Matrix4 | getBaseTransform () const |
the transformation from the mount origin to the base origin (the first joint) | |
bool | operator== (const ManipulatorDescription &md) |
bool | operator!= (const ManipulatorDescription &md) |
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 void | externalize (base::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 |
Protected Member Functions | |
ManipulatorDescription (String name) | |
virtual void | setType (Type type) |
virtual void | setBaseTransform (const Matrix4 &m) |
virtual void | setKinematicChain (const KinematicChain &kc) |
virtual void | outputElementXML (base::Externalizer &e, base::dom::DOMElement *manipElem, String format, Real version) const |
virtual void | inputElementXML (base::Externalizer &e, base::dom::DOMElement *manipElem, String format, Real version) |
virtual void | setName (const String &name) |
Protected Attributes | |
Type | mtype |
Matrix4 | baseTransform |
depricated | |
KinematicChain | kinematicChain |
int | _refCount |
bool | onUnreferenceEnabled |
Friends | |
class | Robot |
Definition at line 42 of file ManipulatorDescription.
|
Definition at line 40 of file Externalizable. |
|
Definition at line 45 of file ManipulatorDescription. Referenced by type(). |
|
Definition at line 47 of file ManipulatorDescription. |
|
Definition at line 48 of file ManipulatorDescription. |
|
Definition at line 50 of file ManipulatorDescription. References baseTransform, kinematicChain, and mtype. |
|
Definition at line 110 of file ManipulatorDescription. |
|
return the name of the object's class type. Must be defined by derived classes. Implements base::Object. Reimplemented in robot::sim::SimulatedManipulatorDescription. Definition at line 62 of file ManipulatorDescription. |
|
If enabled, each call to unreference() will also call virtual method onUnreference() Definition at line 115 of file Referenced. References base::Referenced::onUnreferenceEnabled. |
|
write object state to Externalizer (throws if e is in Input)
Reimplemented from base::Externalizable. Reimplemented in robot::sim::SimulatedManipulatorDescription. Definition at line 106 of file ManipulatorDescription. |
|
read or write object state to Externalizer
Implements base::Externalizable. Reimplemented in robot::sim::SimulatedManipulatorDescription. |
|
query if specific format is supported (for input, output or both)
Implements base::Externalizable. Reimplemented in robot::sim::SimulatedManipulatorDescription. Definition at line 103 of file ManipulatorDescription. |
|
the transformation from the mount origin to the base origin (the first joint)
Definition at line 88 of file ManipulatorDescription. References baseTransform. |
|
get a kinematic chain that describes this manipulator. For serial manipulators this is a unique chain of joints. For Parallel manipulators the chain obtained depends on the parameter. The chain doesn't include the base link. (NB: when/if parallel manipulator support is added, this argument may change or be overloaded, but there will always be a default that will provide the unique chain in the case of a serial manipulator) Definition at line 84 of file ManipulatorDescription. References kinematicChain. |
|
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=(), operator=(), base::Named::operator=(), and operator==(). |
|
|
|
Definition at line 52 of file ReferencedObject. |
|
|
|
|
|
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(). |
|
Definition at line 98 of file ManipulatorDescription. |
|
Definition at line 53 of file ManipulatorDescription. References baseTransform, base::Named::getName(), kinematicChain, mtype, and base::Named::setName(). |
|
Definition at line 91 of file ManipulatorDescription. References baseTransform, base::Named::getName(), kinematicChain, and mtype. |
|
|
|
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(). |
|
|
|
Definition at line 64 of file ManipulatorDescription. References Serial, setBaseTransform(), setKinematicChain(), base::Named::setName(), and setType(). |
|
Definition at line 113 of file ManipulatorDescription. References baseTransform. Referenced by set(). |
|
Definition at line 114 of file ManipulatorDescription. References kinematicChain. Referenced by set(). |
|
|
Definition at line 112 of file ManipulatorDescription. References mtype. Referenced by set(). |
|
Definition at line 73 of file ManipulatorDescription. |
|
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 124 of file ManipulatorDescription. |
|
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(). |
|
depricated
Definition at line 121 of file ManipulatorDescription. Referenced by getBaseTransform(), ManipulatorDescription(), operator=(), operator==(), and setBaseTransform(). |
|
Definition at line 122 of file ManipulatorDescription. Referenced by getKinematicChain(), ManipulatorDescription(), operator=(), operator==(), and setKinematicChain(). |
|
Definition at line 120 of file ManipulatorDescription. Referenced by ManipulatorDescription(), operator=(), operator==(), setType(), and type(). |
|
Definition at line 137 of file Referenced. Referenced by base::Referenced::enableOnUnreferenceCall(), base::Referenced::Referenced(), and base::Referenced::unreference(). |