| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
HeadPointerMC Class Reference#include <HeadPointerMC.h>
Inheritance diagram for HeadPointerMC: ![]() Detailed DescriptionThis class gives some quick and easy functions to point the head at things.
Definition at line 11 of file HeadPointerMC.h.
Member Function Documentation
Restores maxSpeed to default settings from Config::Motion_Config.
Definition at line 33 of file HeadPointerMC.cc. Referenced by HeadPointerMC().
Makes sure i is in the range (0,NumHeadJoints). If it is instead in the range (HeadOffset,HeadOffset+NumHeadJoints), output a warning and reset i to the obviously intended value.
Definition at line 177 of file HeadPointerMC.cc. Referenced by getJointValue(), and setJointValue().
sets the target to last sent commands, and dirty to false; essentially freezes motion in place This is very similar to takeSnapshot(), but will do the "right thing" (retain current position) when motion blending is involved. A status event will be generated if/when the joints reach the currently commanded position. Probably should use freezeMotion() if you want to stop a motion underway, but takeSnapshot() if you want to reset/intialize to the current joint positions. Definition at line 21 of file HeadPointerMC.cc.
Returns the target value of joint i. Use this if you want to know the current commanded joint value; To get the current joint position, look in WorldState::outputs.
Definition at line 83 of file HeadPointerMC.h.
Returns maxSpeed in rad/sec.
Definition at line 56 of file HeadPointerMC.h.
Centers the camera on a point in space, attempting to move the camera d millimeters away from the point. Point should be relative to the body reference frame (see BaseFrameOffset). Returns true if the target is reachable.
Definition at line 91 of file HeadPointerMC.cc.
Centers the camera on a point in space, attempting to keep the camera as far away from the point as possible. Point should be relative to the body reference frame (see BaseFrameOffset). Returns true if the target is reachable.
Definition at line 58 of file HeadPointerMC.cc.
Points the camera in a given direction. Vector should be relative to the body reference frame (see BaseFrameOffset). Returns true if the target is reachable.
Definition at line 103 of file HeadPointerMC.cc.
if targetReached, reassigns headCmds from MotionManager::getOutputCmd(), then sets dirty to true and targetReached to false should be called each time a joint value gets modified in case the head isn't where it's supposed to be, it won't jerk around MotionManager::getOutputCmd() is called instead of WorldState::outputs[] because if this is being called rapidly (i.e. after every sensor reading) using the sensor values will cause problems with very slow acceleration due to sensor lag continually resetting the current position. Using the last value sent by the MotionManager fixes this. Definition at line 170 of file HeadPointerMC.cc. Referenced by DoStart(), setJoints(), setJointValue(), and setWeight().
Directly sets the neck values (all values in radians).
Definition at line 48 of file HeadPointerMC.cc.
Directly set a single neck joint value.
Definition at line 74 of file HeadPointerMC.h. Referenced by lookAtPoint(), and lookInDirection().
Sets maxSpeed in rad/sec.
Definition at line 51 of file HeadPointerMC.h.
sets the target joint positions to current sensor values Similar to freezeMotion() when a motion is underway, but only if no other MotionCommands are using neck joints. A status event will not be generated unless a motion was already underway. Probably should use freezeMotion() if you want to stop a motion underway, but takeSnapshot() if you want to reset/intialize to the current joint positions. Definition at line 27 of file HeadPointerMC.cc. Referenced by HeadPointerMC().
The documentation for this class was generated from the following files: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Fri May 11 20:08:12 2007 by Doxygen 1.4.7 |