Classes | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
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 2575 of file stage.hh.


Member Enumeration Documentation

Enumerator:
CMD_NOOP 
CMD_OPEN 
CMD_CLOSE 
CMD_UP 
CMD_DOWN 

Definition at line 2593 of file stage.hh.

Enumerator:
LIFT_DOWN 
LIFT_UP 
LIFT_UPPING 
LIFT_DOWNING 

Definition at line 2586 of file stage.hh.

Enumerator:
PADDLE_OPEN 
PADDLE_CLOSED 
PADDLE_OPENING 
PADDLE_CLOSING 

Definition at line 2579 of file stage.hh.


Constructor & Destructor Documentation

ModelGripper::ModelGripper ( World world,
Model parent,
const std::string &  type 
)

Definition at line 62 of file model_gripper.cc.

Definition at line 107 of file model_gripper.cc.


Member Function Documentation

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

Definition at line 2659 of file stage.hh.

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

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

Definition at line 2665 of file stage.hh.

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

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

Definition at line 2661 of file stage.hh.

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

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

Definition at line 2663 of file stage.hh.

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

Reimplemented from Stg::Model.

Definition at line 493 of file model_gripper.cc.

void ModelGripper::FixBlocks ( ) [private]

Definition at line 185 of file model_gripper.cc.

Returns the state of the gripper .

Definition at line 2654 of file stage.hh.

void ModelGripper::Load ( void  ) [virtual]

configure a model by reading from the current world file

Reimplemented from Stg::Model.

Definition at line 113 of file model_gripper.cc.

void ModelGripper::PositionPaddles ( ) [private]

Definition at line 204 of file model_gripper.cc.

void ModelGripper::Save ( void  ) [virtual]

save the state of the model to the current world file

Reimplemented from Stg::Model.

Definition at line 163 of file model_gripper.cc.

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

Set the current activity of the gripper.

Definition at line 2657 of file stage.hh.

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

Configure the gripper

Definition at line 2651 of file stage.hh.

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

Reimplemented from Stg::Model.

Definition at line 223 of file model_gripper.cc.

void ModelGripper::UpdateBreakBeams ( ) [private]

Definition at line 360 of file model_gripper.cc.

void ModelGripper::UpdateContacts ( ) [private]

Definition at line 403 of file model_gripper.cc.


Member Data Documentation

Definition at line 2629 of file stage.hh.

Definition at line 2630 of file stage.hh.

Definition at line 2632 of file stage.hh.

Definition at line 2633 of file stage.hh.

Option ModelGripper::showData [static, private]

Definition at line 2635 of file stage.hh.

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

Definition at line 2638 of file stage.hh.


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


stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Thu Aug 27 2015 15:20:57