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

remote_command_chain Class Reference

A class representing a list of commands to perform. These commands are formed from the command structure. More...

#include <remote_command_chain.h>

Inheritance diagram for remote_command_chain:

chain

Public Member Functions

 remote_command_chain (void)
const remote_command erase (int i)
 Erase item from list.

remote_command get (int ip) const
 return element ip.

void set (short, int, int, DEGREE, int)
 Sets the poses x,y,theta, and function number.

bool append (const remote_command &)
 append a command structure.

bool append (const pose &ipose, int fn)
 Append a pose and function number.

remote_command operator[] (int) const
void insert (int 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

remote_command _remote_command_chain [REMOTE_COMMAND_CHAIN_MAX]

Friends

class mission_profile

Detailed Description

A class representing a list of commands to perform. These commands are formed from the command structure.

Difference with command chain is this contains not a function itsself, but the functin number to execute on the remote target.

Mission profile used to use pose_chain, but it contained no way to get a function. Thus it was converted
to use this remote command structure which is basically identical to the pose_chain structure except it adds an extra function number attribute.


Constructor & Destructor Documentation

remote_command_chain void   ) 
 


Member Function Documentation

bool append const pose ipose,
int  fn
 

Append a pose and function number.

bool append const remote_command  ) 
 

append a command structure.

void clear void   )  [inherited]
 

Resets the list and command execution index.

const remote_command erase int  i  ) 
 

Erase item from list.

int execute  )  const [inherited]
 

Returns the current index value.

remote_command get int  ip  )  const
 

return element ip.

void insert int  ip  ) 
 

remote_command operator[] int   )  const
 

Accessor operator add element before element ip. does not define contents of new element.

void set int   )  [inherited]
 

Sets the command execution index value.

void set short  ,
int  ,
int  ,
DEGREE  ,
int 
 

Sets the poses x,y,theta, and function number.

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]
 

remote_command _remote_command_chain[REMOTE_COMMAND_CHAIN_MAX] [private]
 

int _top [protected, inherited]
 


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