Main Page   Hardware Class Hierarchy   Hardware API     Mapping Class Hierarchy  Mapping API 

pose_chain Class Reference

A class representing a list of positions in space with X-coordinate, Y-coordatinate, and orientation (degrees). More...

#include <pose_chain.h>

Inheritance diagram for pose_chain:

chain

Public Member Functions

 pose_chain (void)
bool append (const pose &)
bool insert (int ip)
 Accessor operator.

pose operator[] (int) const
void set (int num, int x, int y, atomic_rotation face)
const pose erase (int i)
 Erase item from list.

pose get (int ip) const
 return element ip.

void clear (void)
 Resets the list and command execution index.

void set (int)
 Sets the command execution index value.

int size () const
 Returns current size of structure.

int execute () const
 Returns the current index value.


Protected Attributes

int _top
int _next

Private Attributes

pose _pose_chain [MAX_POSE]

Friends

class mission_profile

Detailed Description

A class representing a list of positions in space with X-coordinate, Y-coordatinate, and orientation (degrees).


Constructor & Destructor Documentation

pose_chain void   ) 
 


Member Function Documentation

bool append const pose  ) 
 

push new pose onto list. add element before element ip. does not define contents of new element.

void clear void   )  [inherited]
 

Resets the list and command execution index.

const pose erase int  i  ) 
 

Erase item from list.

int execute  )  const [inherited]
 

Returns the current index value.

pose get int  ip  )  const
 

return element ip.

bool insert int  ip  ) 
 

Accessor operator.

Returns false if cannot insert new element.

pose operator[] int   )  const
 

Note:
WARNING: cannot do _pose_chain[i].set(...) as _pose_chain[i] is const and does not update its private parts.

void set int   )  [inherited]
 

Sets the command execution index value.

void set int  num,
int  x,
int  y,
atomic_rotation  face
 

int size  )  const [inherited]
 

Returns current size of structure.


Friends And Related Function Documentation

friend class mission_profile [friend, inherited]
 


Field Documentation

int _next [protected, inherited]
 

pose _pose_chain[MAX_POSE] [private]
 

int _top [protected, inherited]
 


Generated on Mon Oct 8 19:32:27 2007 for OOMRM Mapping API by doxygen1.3