Stg::ModelGripper Class Reference

#include <stage.hh>

Inheritance diagram for Stg::ModelGripper:

List of all members.

Classes

struct  config_t

Public Types

enum  cmd_t {
  CMD_NOOP = 0, CMD_OPEN, CMD_CLOSE, CMD_UP,
  CMD_DOWN
}
enum  lift_state_t { LIFT_DOWN = 0, LIFT_UP, LIFT_UPPING, LIFT_DOWNING }
enum  paddle_state_t { PADDLE_OPEN = 0, PADDLE_CLOSED, PADDLE_OPENING, PADDLE_CLOSING }

Public Member Functions

void CommandClose ()
void CommandDown ()
void CommandOpen ()
void CommandUp ()
config_t GetConfig ()
virtual void Load ()
 ModelGripper (World *world, Model *parent, const std::string &type)
virtual void Save ()
void SetCommand (cmd_t cmd)
void SetConfig (config_t &newcfg)
virtual ~ModelGripper ()

Static Public Attributes

static const Size size

Member Enumeration Documentation

Enumerator:
CMD_NOOP 
CMD_OPEN 
CMD_CLOSE 
CMD_UP 
CMD_DOWN 
Enumerator:
LIFT_DOWN 
LIFT_UP 
LIFT_UPPING 
LIFT_DOWNING 
Enumerator:
PADDLE_OPEN 
PADDLE_CLOSED 
PADDLE_OPENING 
PADDLE_CLOSING 

Constructor & Destructor Documentation

ModelGripper::ModelGripper ( World world,
Model parent,
const std::string &  type 
)
ModelGripper::~ModelGripper ( ) [virtual]

Member Function Documentation

void Stg::ModelGripper::CommandClose ( ) [inline]

Command the gripper paddles to close. Wrapper for SetCommand( CMD_CLOSE ).

void Stg::ModelGripper::CommandDown ( ) [inline]

Command the gripper lift to go down. Wrapper for SetCommand( CMD_DOWN ).

void Stg::ModelGripper::CommandOpen ( ) [inline]

Command the gripper paddles to open. Wrapper for SetCommand( CMD_OPEN ).

void Stg::ModelGripper::CommandUp ( ) [inline]

Command the gripper lift to go up. Wrapper for SetCommand( CMD_UP ).

config_t Stg::ModelGripper::GetConfig ( ) [inline]

Returns the state of the gripper .

void ModelGripper::Load ( void  ) [virtual]

configure a model by reading from the current world file

Reimplemented from Stg::Model.

void ModelGripper::Save ( void  ) [virtual]

save the state of the model to the current world file

Reimplemented from Stg::Model.

void Stg::ModelGripper::SetCommand ( cmd_t  cmd) [inline]

Set the current activity of the gripper.

void Stg::ModelGripper::SetConfig ( config_t newcfg) [inline]

Configure the gripper


Member Data Documentation

const Size Stg::ModelGripper::size [static]

The documentation for this class was generated from the following files: