Homepage
Demos
Overview
Downloads
Dev. Resources
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 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
FileInputControlloadPose
 the control for loading postures
NullControldisabledLoadPose
 a message to display instead of loadPose when EStop is on
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

PostureEditor::~PostureEditor  )  [virtual]
 

destructor

Definition at line 37 of file PostureEditor.cc.

PostureEditor::PostureEditor const PostureEditor  )  [private]
 

don't call


Member Function Documentation

virtual 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.

void PostureEditor::deactivate  )  [virtual]
 

called when this control is being popped from the control stack

Reimplemented from ControlBase.

Definition at line 100 of file PostureEditor.cc.

bool PostureEditor::isEStopped  )  [protected]
 

called to check status of estop

Definition at line 138 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 91 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 111 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 64 of file PostureEditor.cc.

Referenced by pause(), and processEvent().

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

Referenced by refresh().


Member Data Documentation

class NullControl* PostureEditor::disabledLoadPose [protected]
 

a message to display instead of loadPose when EStop is on

Definition at line 34 of file PostureEditor.h.

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

MotionManager::MC_ID PostureEditor::estopID [protected]
 

so we can check if the estop is active

Definition at line 31 of file PostureEditor.h.

Referenced by isEStopped().

class FileInputControl* PostureEditor::loadPose [protected]
 

the control for loading postures

Definition at line 33 of file PostureEditor.h.

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

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().

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().

PostureEngine PostureEditor::pose [protected]
 

the current target posture

Definition at line 29 of file PostureEditor.h.

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

MotionManager::MC_ID PostureEditor::reachID [protected]
 

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

Definition at line 30 of file PostureEditor.h.

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

class StringInputControl* PostureEditor::savePose [protected]
 

the control for saving postures

Definition at line 35 of file PostureEditor.h.

Referenced by refresh().


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

Tekkotsu v2.4.1
Generated Tue Aug 16 16:35:06 2005 by Doxygen 1.4.4