FollowHeadBehavior Class Reference#include <FollowHeadBehavior.h>
Inheritance diagram for FollowHeadBehavior:
[legend]List of all members.
Detailed Description
Will walk where the head is pointing.
Press the chin button to loosen the head to point it, release the button to lock it again
Tilt of head determines x axis (forward/backward)
Roll of head determines y axis (sideways strafing)
Pan of head determines z axis (rotational)
The zero point of joint position is zero motion. Since the tilt is asymmetric (can tilt down farther than it can tilt up), the full range of the down tilt isn't used - if you tilt down farther than you could tilt it back, it'll just clip the speed. Besides, if the head is all the way down, it screws up the walk because the center of balance is changed.
Definition at line 23 of file FollowHeadBehavior.h.
Constructor & Destructor Documentation
FollowHeadBehavior::FollowHeadBehavior |
( |
|
) |
|
|
Member Function Documentation
void FollowHeadBehavior::DoStart |
( |
|
) |
[virtual] |
|
|
Register for events and creates and adds two motion commands - a walker and a head pointer.
Reimplemented from BehaviorBase.
Definition at line 23 of file FollowHeadBehavior.cc. |
void FollowHeadBehavior::DoStop |
( |
|
) |
[virtual] |
|
std::string FollowHeadBehavior::getClassDescription |
( |
|
) |
[inline, static] |
|
|
Gives a short description of what this class of behaviors does... you should override this (but don't have to).
Reimplemented from BehaviorBase.
Definition at line 43 of file FollowHeadBehavior.h. |
virtual std::string FollowHeadBehavior::getName |
( |
|
) |
const [inline, virtual] |
|
void FollowHeadBehavior::processEvent |
( |
const EventBase & |
e |
) |
[virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|