Homepage Demos Overview Downloads Tutorials Reference
Credits

PostureEditor Class Reference

#include <PostureEditor.h>

Inheritance diagram for PostureEditor:

Inheritance graph
[legend]
List of all members.

Detailed Description

allows logging of events to the console or a file

Definition at line 14 of file PostureEditor.h.

Public Member Functions

 PostureEditor (MotionManager::MC_ID estop_ID)
 constructor
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 ControlBasedoSelect ()
 opens a custom (embedded) menu edit outputs
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, setting up #ledID otherwise

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
ControlBaselastSlot
 the last accessed slot
FileInputControlloadPose
 the control for loading postures
StringInputControlsavePose
 the control for saving postures
bool pauseCalled
 true if refresh hasn't been called since pause

Static Protected Attributes

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 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 37 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 86 of file PostureEditor.cc.

ControlBase * PostureEditor::doSelect  )  [virtual]
 

opens a custom (embedded) menu edit outputs

Reimplemented from ControlBase.

Definition at line 95 of file PostureEditor.cc.

bool PostureEditor::isEStopped  )  [protected]
 

called to check status of estop

Definition at line 127 of file PostureEditor.cc.

Referenced by refresh(), and updatePose().

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

don't call

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 79 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 103 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 54 of file PostureEditor.cc.

Referenced by processEvent().

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

called anytime pose is modified; uses reachID to move to pose if estop is off, setting up #ledID otherwise

Definition at line 132 of file PostureEditor.cc.

Referenced by refresh().


Member Data Documentation

MotionManager::MC_ID PostureEditor::estopID [protected]
 

so we can check if the estop is active

Definition at line 33 of file PostureEditor.h.

ControlBase* PostureEditor::lastSlot [protected]
 

the last accessed slot

Definition at line 35 of file PostureEditor.h.

Referenced by doSelect(), and refresh().

FileInputControl* PostureEditor::loadPose [protected]
 

the control for loading postures

Definition at line 36 of file PostureEditor.h.

Referenced by PostureEditor(), 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 40 of file PostureEditor.h.

Referenced by refresh().

bool PostureEditor::pauseCalled [protected]
 

true if refresh hasn't been called since pause

Definition at line 38 of file PostureEditor.h.

Referenced by pause(), and refresh().

PostureEngine PostureEditor::pose [protected]
 

the current target posture

Definition at line 31 of file PostureEditor.h.

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

MotionManager::MC_ID PostureEditor::reachID [protected]
 

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

Definition at line 32 of file PostureEditor.h.

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

StringInputControl* PostureEditor::savePose [protected]
 

the control for saving postures

Definition at line 37 of file PostureEditor.h.

Referenced by PostureEditor(), and refresh().


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

Tekkotsu v2.2
Generated Tue Oct 19 14:20:21 2004 by Doxygen 1.3.9.1