Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PostureEditor Class Reference

#include <PostureEditor.h>

Inheritance diagram for PostureEditor:

List of all members.


Detailed Description

allows logging of events to the console or a file

Definition at line 12 of file PostureEditor.h.


Public Member Functions

 PostureEditor (MotionManager::MC_ID estop_ID)
 constructor
virtual ~PostureEditor ()
 destructor
virtual ControlBaseactivate (MotionManager::MC_ID disp_id, Socket *gui)
 Called when the control is activated (or the control system is reactivating).
virtual void refresh ()
 if we're back from a child slot, it's either load or save, so we need to handle it
virtual void pause ()
 called when a control is being overriden by a child, or the control system is deactivating (e-stop being turned off)
virtual void deactivate ()
 called when this control is being popped from the control stack
virtual void processEvent (const EventBase &e)
 listens for the EStop to be turned off before moving

Protected Member Functions

bool isEStopped ()
 called to check status of estop
void updatePose (unsigned int delay)
 called anytime pose is modified; uses reachID to move to pose if estop is off

Protected Attributes

PostureEngine pose
 the current target posture
MotionManager::MC_ID reachID
 id of motion sequence used to slow "snapping" to positions
MotionManager::MC_ID estopID
 so we can check if the estop is active
class FileInputControlloadPose
 the control for loading postures
class NullControldisabledLoadPose
 a message to display instead of loadPose when EStop is on
class StringInputControlsavePose
 the control for saving postures
bool pauseCalled
 true if refresh hasn't been called since pause

Static Protected Attributes

static const unsigned int moveTime = 1500
 number of milliseconds to take to load a posture - individual joint changes will be done in half the time

Private Member Functions

 PostureEditor (const PostureEditor &)
 don't call
PostureEditoroperator= (const PostureEditor &)
 don't call

Constructor & Destructor Documentation

PostureEditor::PostureEditor ( MotionManager::MC_ID  estop_ID  )  [explicit]

constructor

Definition at line 13 of file PostureEditor.cc.

PostureEditor::~PostureEditor (  )  [virtual]

destructor

Definition at line 37 of file PostureEditor.cc.

PostureEditor::PostureEditor ( const PostureEditor  )  [private]

don't call


Member Function Documentation

ControlBase * PostureEditor::activate ( MotionManager::MC_ID  disp_id,
Socket gui 
) [virtual]

Called when the control is activated (or the control system is reactivating).

Takes the id number of a LedMC which the control should use, maintained by Controller. Controls share the display which is passed, and may use the socket gui to communicate with the GUI controller, if it is connected.

Returns:
a ControlBase pointer. Return:
  • this if the control should stay active (if it's not a one-shot command)
  • NULL to return to parent
  • other address to spawn a child control

Reimplemented from ControlBase.

Definition at line 44 of file PostureEditor.cc.

void PostureEditor::refresh (  )  [virtual]

if we're back from a child slot, it's either load or save, so we need to handle it

Reimplemented from ControlBase.

Definition at line 66 of file PostureEditor.cc.

Referenced by pause(), and processEvent().

void PostureEditor::pause (  )  [virtual]

called when a control is being overriden by a child, or the control system is deactivating (e-stop being turned off)

Reimplemented from ControlBase.

Definition at line 94 of file PostureEditor.cc.

void PostureEditor::deactivate (  )  [virtual]

called when this control is being popped from the control stack

Reimplemented from ControlBase.

Definition at line 103 of file PostureEditor.cc.

void PostureEditor::processEvent ( const EventBase e  )  [virtual]

listens for the EStop to be turned off before moving

Implements EventListener.

Definition at line 114 of file PostureEditor.cc.

Referenced by refresh().

bool PostureEditor::isEStopped (  )  [protected]

called to check status of estop

Definition at line 145 of file PostureEditor.cc.

Referenced by refresh(), and updatePose().

void PostureEditor::updatePose ( unsigned int  delay  )  [protected]

called anytime pose is modified; uses reachID to move to pose if estop is off

Definition at line 150 of file PostureEditor.cc.

Referenced by refresh().

PostureEditor& PostureEditor::operator= ( const PostureEditor  )  [private]

don't call


Member Data Documentation

the current target posture

Definition at line 29 of file PostureEditor.h.

Referenced by activate(), PostureEditor(), processEvent(), refresh(), and updatePose().

id of motion sequence used to slow "snapping" to positions

Definition at line 30 of file PostureEditor.h.

Referenced by activate(), deactivate(), processEvent(), and updatePose().

so we can check if the estop is active

Definition at line 31 of file PostureEditor.h.

Referenced by isEStopped().

the control for loading postures

Definition at line 33 of file PostureEditor.h.

Referenced by PostureEditor(), refresh(), and ~PostureEditor().

a message to display instead of loadPose when EStop is on

Definition at line 34 of file PostureEditor.h.

Referenced by PostureEditor(), refresh(), and ~PostureEditor().

the control for saving postures

Definition at line 35 of file PostureEditor.h.

Referenced by PostureEditor(), and refresh().

bool PostureEditor::pauseCalled [protected]

true if refresh hasn't been called since pause

Definition at line 36 of file PostureEditor.h.

Referenced by pause(), processEvent(), and refresh().

const unsigned int PostureEditor::moveTime = 1500 [static, protected]

number of milliseconds to take to load a posture - individual joint changes will be done in half the time

Definition at line 38 of file PostureEditor.h.

Referenced by refresh().


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:36 2007 by Doxygen 1.5.4