Stg::ModelGripper Class Reference

#include <stage.hh>

Inheritance diagram for Stg::ModelGripper:
Inheritance graph
[legend]

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

Private Member Functions

virtual void DataVisualize (Camera *cam)
void FixBlocks ()
void PositionPaddles ()
virtual void Update ()
void UpdateBreakBeams ()
void UpdateContacts ()

Private Attributes

config_t cfg
cmd_t cmd
Blockpaddle_left
Blockpaddle_right

Static Private Attributes

static Option showData

Detailed Description

Definition at line 2489 of file stage.hh.


Member Enumeration Documentation

Enumerator:
CMD_NOOP 
CMD_OPEN 
CMD_CLOSE 
CMD_UP 
CMD_DOWN 

Definition at line 2507 of file stage.hh.

Enumerator:
LIFT_DOWN 
LIFT_UP 
LIFT_UPPING 
LIFT_DOWNING 

Definition at line 2500 of file stage.hh.

Enumerator:
PADDLE_OPEN 
PADDLE_CLOSED 
PADDLE_OPENING 
PADDLE_CLOSING 

Definition at line 2493 of file stage.hh.


Constructor & Destructor Documentation

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

Member Function Documentation

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

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

Definition at line 2573 of file stage.hh.

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

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

Definition at line 2579 of file stage.hh.

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

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

Definition at line 2575 of file stage.hh.

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

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

Definition at line 2577 of file stage.hh.

virtual void Stg::ModelGripper::DataVisualize ( Camera cam  )  [private, virtual]

Reimplemented from Stg::Model.

void Stg::ModelGripper::FixBlocks (  )  [private]
config_t Stg::ModelGripper::GetConfig (  )  [inline]

Returns the state of the gripper .

Definition at line 2568 of file stage.hh.

virtual void Stg::ModelGripper::Load (  )  [virtual]

configure a model by reading from the current world file

Reimplemented from Stg::Model.

void Stg::ModelGripper::PositionPaddles (  )  [private]
virtual void Stg::ModelGripper::Save (  )  [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.

Definition at line 2571 of file stage.hh.

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

Configure the gripper

Definition at line 2565 of file stage.hh.

virtual void Stg::ModelGripper::Update (  )  [private, virtual]

Reimplemented from Stg::Model.

void Stg::ModelGripper::UpdateBreakBeams (  )  [private]
void Stg::ModelGripper::UpdateContacts (  )  [private]

Member Data Documentation

Definition at line 2543 of file stage.hh.

Definition at line 2544 of file stage.hh.

Definition at line 2546 of file stage.hh.

Definition at line 2547 of file stage.hh.

Option Stg::ModelGripper::showData [static, private]

Definition at line 2549 of file stage.hh.

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

Definition at line 2552 of file stage.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


stage
Author(s): Richard Vaughan, with contributions from many others. See web page for a full credits list.
autogenerated on Fri Jan 11 10:03:40 2013