| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <WalkNode.h>
Inheritance diagram for WalkNode:

Definition at line 11 of file WalkNode.h.
Public Member Functions | |
| WalkNode (StateNode *p=NULL) | |
| constructor | |
| WalkNode (float xvel, float yvel, float avel, StateNode *p=NULL) | |
| constructor, positive is counter-clockwise from above (to match coordinate system) | |
| void | setVelocity (float xvel, float yvel, float avel) |
| sets the velocity of the walk | |
| void | setXVelocity (float xvel) |
| sets the velocity in x direction (positive is forward) | |
| float | getXVelocity () |
| returns the velocity in x direction (positive is forward) | |
| void | setYVelocity (float yvel) |
| sets the velocity in y direction (positive is forward) | |
| float | getYVelocity () |
| returns the velocity in y direction (positive is forward) | |
| void | setAVelocity (float avel) |
| sets the velocity of the turn, positive is counter-clockwise from above (to match coordinate system) | |
| float | getAVelocity () |
| returns the velocity of the turn, positive is counter-clockwise from above (to match coordinate system) | |
| virtual void | DoStart () |
| Transitions should call this when you are entering the state, so it can enable its transitions. | |
| virtual void | DoStop () |
| Transitions should call this when you are leaving the state, so it can disable its transitions. | |
| virtual void | teardown () |
| removes walkid if walkidIsMine | |
| virtual void | setWalkID (MotionManager::MC_ID id) |
| use this to force the WalkNode to use a shared WalkMC - set to MotionManager::invalid_MC_ID to reset to internally generated walk | |
| virtual MotionManager::MC_ID | getWalkID () |
| use this to access the WalkMC that the WalkNode is using | |
| virtual bool | ownsWalkID () |
| returns true if walkid was created (and will be destroyed) by this WalkNode - false if assigned by setWalkID() | |
Protected Member Functions | |
| void | updateWalk (float xvel, float yvel, float avel) |
| if the walk is invalid, create; then set xya | |
Protected Attributes | |
| MotionManager::MC_ID | walkid |
| the current WalkMC | |
| bool | walkidIsMine |
| true if the walk was created in updateWalk (instead of assigned externally) | |
| float | x |
| velocity in x direction (positive is forward) | |
| float | y |
| velocity in y direction (positive is dog's left) | |
| float | a |
| velocity of the turn, positive is counter-clockwise from above (to match coordinate system) | |
|
|
constructor
Definition at line 14 of file WalkNode.h. References a, StateNode::setRetain(), walkid, walkidIsMine, x, and y. |
Here is the call graph for this function:

|
||||||||||||||||||||
|
constructor, positive is counter-clockwise from above (to match coordinate system)
Definition at line 21 of file WalkNode.h. References a, StateNode::setRetain(), walkid, walkidIsMine, x, and y. |
Here is the call graph for this function:

|
|
Transitions should call this when you are entering the state, so it can enable its transitions.
Reimplemented from StateNode. Definition at line 53 of file WalkNode.h. References a, StateNode::DoStart(), updateWalk(), x, and y. |
Here is the call graph for this function:

|
|
Transitions should call this when you are leaving the state, so it can disable its transitions. for(int i=0; i<1000; i++) Reimplemented from StateNode. Definition at line 59 of file WalkNode.h. References a, StateNode::DoStop(), updateWalk(), x, and y. |
Here is the call graph for this function:

|
|
returns the velocity of the turn, positive is counter-clockwise from above (to match coordinate system)
Definition at line 51 of file WalkNode.h. References a. |
|
|
use this to access the WalkMC that the WalkNode is using
Definition at line 84 of file WalkNode.h. References MotionManager::MC_ID, and walkid. |
|
|
returns the velocity in x direction (positive is forward)
Definition at line 39 of file WalkNode.h. References x. |
|
|
returns the velocity in y direction (positive is forward)
Definition at line 45 of file WalkNode.h. References y. |
|
|
returns true if walkid was created (and will be destroyed) by this WalkNode - false if assigned by setWalkID()
Definition at line 87 of file WalkNode.h. References walkidIsMine. |
|
|
sets the velocity of the turn, positive is counter-clockwise from above (to match coordinate system)
Definition at line 48 of file WalkNode.h. References a, updateWalk(), x, and y. |
Here is the call graph for this function:

|
||||||||||||||||
|
sets the velocity of the walk
Definition at line 28 of file WalkNode.h. References a, updateWalk(), x, and y. |
Here is the call graph for this function:

|
|
use this to force the WalkNode to use a shared WalkMC - set to MotionManager::invalid_MC_ID to reset to internally generated walk
Definition at line 74 of file WalkNode.h. References MotionManager::invalid_MC_ID, MotionManager::MC_ID, motman, MotionManager::removeMotion(), walkid, and walkidIsMine. |
Here is the call graph for this function:

|
|
sets the velocity in x direction (positive is forward)
Definition at line 36 of file WalkNode.h. References a, updateWalk(), x, and y. |
Here is the call graph for this function:

|
|
sets the velocity in y direction (positive is forward)
Definition at line 42 of file WalkNode.h. References a, updateWalk(), x, and y. |
Here is the call graph for this function:

|
|
removes walkid if walkidIsMine
Reimplemented from StateNode. Definition at line 66 of file WalkNode.h. References MotionManager::invalid_MC_ID, motman, MotionManager::removeMotion(), walkid, and walkidIsMine. |
Here is the call graph for this function:

|
||||||||||||||||
|
if the walk is invalid, create; then set xya
Definition at line 91 of file WalkNode.h. References MotionManager::addMotion(), MotionManager::invalid_MC_ID, motman, walkid, and walkidIsMine. |
Here is the call graph for this function:

|
|
velocity of the turn, positive is counter-clockwise from above (to match coordinate system)
Definition at line 107 of file WalkNode.h. |
|
|
the current WalkMC
Definition at line 103 of file WalkNode.h. |
|
|
true if the walk was created in updateWalk (instead of assigned externally)
Definition at line 104 of file WalkNode.h. |
|
|
velocity in x direction (positive is forward)
Definition at line 105 of file WalkNode.h. |
|
|
velocity in y direction (positive is dog's left)
Definition at line 106 of file WalkNode.h. |
|
Tekkotsu v1.5 |
Generated Fri Oct 10 15:58:26 2003 by Doxygen 1.3.4 |