Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PostureEditor Class Reference

allows logging of events to the console or a file More...

#include <PostureEditor.h>

Inheritance diagram for PostureEditor:

Detailed Description

allows logging of events to the console or a file

Definition at line 10 of file PostureEditor.h.

List of all members.

Public Member Functions

 PostureEditor ()
 constructor
virtual ~PostureEditor ()
 destructor
virtual ControlBaseactivate (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
MC_ID reachID
 id of motion sequence used to slow "snapping" to positions
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 (  )  [explicit]

constructor

Definition at line 20 of file PostureEditor.cc.

PostureEditor::~PostureEditor (  )  [virtual]

destructor

Definition at line 44 of file PostureEditor.cc.

PostureEditor::PostureEditor ( const PostureEditor  )  [private]

don't call


Member Function Documentation

ControlBase * PostureEditor::activate ( 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 51 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 113 of file PostureEditor.cc.

bool PostureEditor::isEStopped (  )  [protected]

called to check status of estop

Definition at line 156 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 104 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 124 of file PostureEditor.cc.

Referenced by refresh().

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

Referenced by refresh().


Member Data Documentation

a message to display instead of loadPose when EStop is on

Definition at line 31 of file PostureEditor.h.

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

the control for loading postures

Definition at line 30 of file PostureEditor.h.

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

Referenced by refresh().

bool PostureEditor::pauseCalled [protected]

true if refresh hasn't been called since pause

Definition at line 33 of file PostureEditor.h.

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

the current target posture

Definition at line 27 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 28 of file PostureEditor.h.

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

the control for saving postures

Definition at line 32 of file PostureEditor.h.

Referenced by PostureEditor(), and refresh().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:14 2016 by Doxygen 1.6.3