Tekkotsu 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


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.


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

Tekkotsu v3.0
Generated Fri May 11 20:08:33 2007 by Doxygen 1.4.7