Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

base::WaypointTrajectoryRep Class Reference

Concrete trajectory representation as a sequence of positions and times. More...

Inheritance diagram for base::WaypointTrajectoryRep:

Inheritance graph
[legend]
Collaboration diagram for base::WaypointTrajectoryRep:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 WaypointTrajectoryRep (const array< Point3 > &points, const array< Orient > &orients, const array< Time > &times)
virtual Objectclone () const
virtual String className () const
virtual Time time (Real s) const
 get time at s:[0..1]

virtual void shiftTime (const Time &dt)
 shift time by dt

virtual void scaleTime (Real s)
 scale time by s

virtual Real gets (const Time &t) const
 get parameter s value at time t

virtual void serialize (Serializer &s)
 read or write object state to Serializer

virtual Point3 position (Real s) const
 get cartesian position at s:[0..1]

virtual Orient orientation (Real s) const
 get orientation at s:[0..1]

virtual Real distinguishedValue (Int i) const
virtual Int numDistinguishedValues () const
 number of distinguished s values

virtual void translate (const Vector3 &t)
 translate the path position by t

virtual void rotate (const Quat4 &r)
 rotate the path orientation by r

virtual void transform (const Matrix4 &m)
 transform the path by m

virtual void scalePosition (Real s)
 scale position coords. by s

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

Static Public Member Functions

template<class BaseClass, class DerivedClass> void registerSerializableInstantiator (const SerializableInstantiator &instantiator)
void registerSerializableInstantiator (const String &baseClassTypeName, const String &derivedClassTypeName, const SerializableInstantiator &instantiator)
template<class BaseClass> const SerializableInstantiator & getSerializableInstantiator (const String &derivedClassTypeName)
const SerializableInstantiator & getSerializableInstantiator (const String &baseClassTypeName, const String &derivedClassTypeName)

Protected Types

enum  Flags { None = 0, ConstPos = 1, ConstOrient = 2 }

Protected Member Functions

 WaypointTrajectoryRep ()
 WaypointTrajectoryRep (const array< Point3 > &points, const array< Orient > &orients, const array< Time > &times, array< Real > si, Int flags)
virtual void computeSis ()
 compute si's s.t. s:[0..1] maps to t:[start-time..end-time]

Int findIndex (Real s) const
 find the closest index into points/orients before s


Protected Attributes

array< Timetimes
array< Point3points
array< Orientorients
array< Realsi
 value of s:[0..1] corresponding to each waypoint.

Int flags
int _refCount
bool onUnreferenceEnabled

Friends

class Serializable::SerializableDerivedInstantiator< WaypointTrajectoryRep >
class Serializable::SerializableDerivedInstantiator< WaypointPathRep >

Detailed Description

Concrete trajectory representation as a sequence of positions and times.

Definition at line 37 of file WaypointTrajectoryRep.


Member Enumeration Documentation

enum base::WaypointPathRep::Flags [protected, inherited]
 

Enumeration values:
None 
ConstPos 
ConstOrient 

Definition at line 74 of file WaypointPathRep.


Constructor & Destructor Documentation

base::WaypointTrajectoryRep::WaypointTrajectoryRep const array< Point3 > &  points,
const array< Orient > &  orients,
const array< Time > &  times
[inline]
 

Definition at line 40 of file WaypointTrajectoryRep.

References computeSis().

base::WaypointTrajectoryRep::WaypointTrajectoryRep  )  [inline, protected]
 

Definition at line 70 of file WaypointTrajectoryRep.

Referenced by clone().

base::WaypointTrajectoryRep::WaypointTrajectoryRep const array< Point3 > &  points,
const array< Orient > &  orients,
const array< Time > &  times,
array< Real si,
Int  flags
[inline, protected]
 

Definition at line 71 of file WaypointTrajectoryRep.

References base::Int.


Member Function Documentation

virtual String base::WaypointTrajectoryRep::className  )  const [inline, virtual]
 

return the name of the object's class type. Must be defined by derived classes.

Reimplemented from base::WaypointPathRep.

Definition at line 53 of file WaypointTrajectoryRep.

References base::String.

virtual Object& base::WaypointTrajectoryRep::clone  )  const [inline, virtual]
 

return a shallow copy, with Object& return type. Must be defined by derived classes.

Reimplemented from base::WaypointPathRep.

Definition at line 50 of file WaypointTrajectoryRep.

References NewObj, and WaypointTrajectoryRep().

virtual void base::WaypointTrajectoryRep::computeSis  )  [protected, virtual]
 

compute si's s.t. s:[0..1] maps to t:[start-time..end-time]

Reimplemented from base::WaypointPathRep.

Referenced by WaypointTrajectoryRep().

virtual Real base::WaypointPathRep::distinguishedValue Int  i  )  const [virtual, inherited]
 

some values of s may correspond to distinguished points along a path. the values s=0 and s=1 are always distinguished values. For example, if the path was specified using waypoints, then there will be a distinguished value of s for each waypoint. 0 <= i < numDistinguishedValues()

Reimplemented from base::PathRep.

void base::Referenced::enableOnUnreferenceCall bool  enabled  )  [inline, inherited]
 

If enabled, each call to unreference() will also call virtual method onUnreference()

Definition at line 115 of file Referenced.

References base::Referenced::onUnreferenceEnabled.

Int base::WaypointPathRep::findIndex Real  s  )  const [protected, inherited]
 

find the closest index into points/orients before s

virtual Real base::WaypointTrajectoryRep::gets const Time t  )  const [virtual]
 

get parameter s value at time t

Implements base::TrajectoryTimeRep.

const SerializableInstantiator& base::Serializable::getSerializableInstantiator const String baseClassTypeName,
const String derivedClassTypeName
[static, inherited]
 

template<class BaseClass>
const SerializableInstantiator& base::Serializable::getSerializableInstantiator const String derivedClassTypeName  )  [inline, static, inherited]
 

Definition at line 71 of file Serializable.

References base::String.

virtual bool base::Object::isSameKindAs const Object  )  const [inline, virtual, inherited]
 

Definition at line 47 of file Object.

virtual bool base::ReferencedObject::isSameKindAs const ReferencedObject  )  const [inline, virtual, inherited]
 

Definition at line 52 of file ReferencedObject.

virtual Int base::WaypointPathRep::numDistinguishedValues  )  const [virtual, inherited]
 

number of distinguished s values

Reimplemented from base::PathRep.

virtual void base::Referenced::onUnreference  )  const [inline, virtual, inherited]
 

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().

virtual Orient base::WaypointPathRep::orientation Real  s  )  const [virtual, inherited]
 

get orientation at s:[0..1]

Implements base::PathRep.

virtual Point3 base::WaypointPathRep::position Real  s  )  const [virtual, inherited]
 

get cartesian position at s:[0..1]

Implements base::PathRep.

void base::Referenced::reference  )  const [inline, inherited]
 

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.

const int base::Referenced::referenceCount  )  const [inline, inherited]
 

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().

void base::Serializable::registerSerializableInstantiator const String baseClassTypeName,
const String derivedClassTypeName,
const SerializableInstantiator instantiator
[static, inherited]
 

template<class BaseClass, class DerivedClass>
void base::Serializable::registerSerializableInstantiator const SerializableInstantiator instantiator  )  [inline, static, inherited]
 

Definition at line 62 of file Serializable.

virtual void base::WaypointPathRep::rotate const Quat4 r  )  [virtual, inherited]
 

rotate the path orientation by r

Implements base::PathRep.

virtual void base::WaypointPathRep::scalePosition Real  s  )  [virtual, inherited]
 

scale position coords. by s

Implements base::PathRep.

virtual void base::WaypointTrajectoryRep::scaleTime Real  s  )  [virtual]
 

scale time by s

Implements base::TrajectoryTimeRep.

virtual void base::WaypointTrajectoryRep::serialize Serializer s  )  [virtual]
 

read or write object state to Serializer

Reimplemented from base::WaypointPathRep.

virtual void base::WaypointTrajectoryRep::shiftTime const Time dt  )  [virtual]
 

shift time by dt

Implements base::TrajectoryTimeRep.

virtual Time base::WaypointTrajectoryRep::time Real  s  )  const [virtual]
 

get time at s:[0..1]

Implements base::TrajectoryTimeRep.

virtual void base::WaypointPathRep::transform const Matrix4 m  )  [virtual, inherited]
 

transform the path by m

Implements base::PathRep.

virtual void base::WaypointPathRep::translate const Vector3 t  )  [virtual, inherited]
 

translate the path position by t

Implements base::PathRep.

bool base::Referenced::unreference  )  const [inline, inherited]
 

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.


Friends And Related Function Documentation

friend class Serializable::SerializableDerivedInstantiator< WaypointPathRep > [friend, inherited]
 

Definition at line 92 of file WaypointPathRep.

friend class Serializable::SerializableDerivedInstantiator< WaypointTrajectoryRep > [friend]
 

Definition at line 80 of file WaypointTrajectoryRep.


Member Data Documentation

int base::Referenced::_refCount [mutable, protected, inherited]
 

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().

Int base::WaypointPathRep::flags [protected, inherited]
 

Definition at line 90 of file WaypointPathRep.

bool base::Referenced::onUnreferenceEnabled [protected, inherited]
 

Definition at line 137 of file Referenced.

Referenced by base::Referenced::enableOnUnreferenceCall(), base::Referenced::Referenced(), and base::Referenced::unreference().

array<Orient> base::WaypointPathRep::orients [protected, inherited]
 

Definition at line 81 of file WaypointPathRep.

Referenced by base::WaypointPathRep::clone().

array<Point3> base::WaypointPathRep::points [protected, inherited]
 

Definition at line 80 of file WaypointPathRep.

Referenced by base::WaypointPathRep::clone().

array<Real> base::WaypointPathRep::si [protected, inherited]
 

value of s:[0..1] corresponding to each waypoint.

Definition at line 82 of file WaypointPathRep.

Referenced by base::WaypointPathRep::clone().

array<Time> base::WaypointTrajectoryRep::times [protected]
 

Definition at line 75 of file WaypointTrajectoryRep.


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:39:38 2004 for OpenSim by doxygen 1.3.6