Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PostureNode Class Reference

#include <PostureNode.h>

Inheritance diagram for PostureNode:

List of all members.


Detailed Description

A simple StateNode that executes a PostureMC motion command.

Caches the posture file in a private PostureEngine because the motion command might be shared with other functions that are using it for other purposes

Definition at line 20 of file PostureNode.h.


Public Member Functions

 PostureNode (const std::string &nodename=defPostureNodeName, const std::string &filename=std::string())
 Constructor: takes optional instance name and filename.
virtual void DoStart ()
 Adds the motion command to the motion manager, add a listener for the motion's completion event.
virtual void loadFile (const std::string &filename)
 loads the specified file into posture, note this doesn't affect the current PostureMC, just the cached one which will be loaded into it on next activation. See getPosture(), getMC_ID()
virtual PostureEnginegetPosture ()
 accessor for posture, note this doesn't affect the current PostureMC, just the cached one which will be loaded into it on next activation. See getMC_ID()
virtual const PostureEnginegetPosture () const
 accessor for posture, note this doesn't return the current PostureMC, just the cached one which will be loaded into it on next activation. See getMC_ID()

Protected Attributes

PostureEngine posture
 The internal cache of joint positions, copied to the motion command when activated.

Constructor & Destructor Documentation

PostureNode::PostureNode ( const std::string &  nodename = defPostureNodeName,
const std::string &  filename = std::string() 
) [inline]

Constructor: takes optional instance name and filename.

Caches the posture file in a private PostureEngine because the motion command might be shared with other functions that are using it for other purposes

Definition at line 27 of file PostureNode.h.


Member Function Documentation

virtual void PostureNode::DoStart (  )  [inline, virtual]

Adds the motion command to the motion manager, add a listener for the motion's completion event.

Reimplemented from MCNodeBase.

Definition at line 34 of file PostureNode.h.

virtual void PostureNode::loadFile ( const std::string &  filename  )  [inline, virtual]

loads the specified file into posture, note this doesn't affect the current PostureMC, just the cached one which will be loaded into it on next activation. See getPosture(), getMC_ID()

Definition at line 40 of file PostureNode.h.

virtual PostureEngine& PostureNode::getPosture (  )  [inline, virtual]

accessor for posture, note this doesn't affect the current PostureMC, just the cached one which will be loaded into it on next activation. See getMC_ID()

Definition at line 46 of file PostureNode.h.

virtual const PostureEngine& PostureNode::getPosture (  )  const [inline, virtual]

accessor for posture, note this doesn't return the current PostureMC, just the cached one which will be loaded into it on next activation. See getMC_ID()

Definition at line 48 of file PostureNode.h.


Member Data Documentation

The internal cache of joint positions, copied to the motion command when activated.

This allows the motion command to be shared by other nodes/behaviors, which might modify the posture on an ongoing basis.

Definition at line 54 of file PostureNode.h.

Referenced by DoStart(), getPosture(), loadFile(), and PostureNode().


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

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