| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
OldHeadPointerMC Class Reference#include <OldHeadPointerMC.h>
Inheritance diagram for OldHeadPointerMC: ![]() Detailed DescriptionThis class gives some quick and easy functions to point the head at things.
Definition at line 10 of file OldHeadPointerMC.h.
Member Enumeration DocumentationVarious modes the head can be in. In the future may want to add ability to explicitly track an object or point in the world model.
Definition at line 19 of file OldHeadPointerMC.h.
Constructor & Destructor Documentation
constructor, defaults to active, BodyRelative, all joints at 0
Definition at line 8 of file OldHeadPointerMC.cc.
Member Function Documentation
if x is outside of the range of joint i, it is set to either the min or the max, whichever is closer
Definition at line 91 of file OldHeadPointerMC.h. Referenced by setJointValue(), and setJointValueAndMode().
converts a value v in srcmode to a value in tgtmode that would leave the joint angle for joint i constant (you probably won't need to call this directly)
Definition at line 42 of file OldHeadPointerMC.h. Referenced by setJointMode(), and setJointValueFromMode().
converts from a body relative measurement for joint i
Definition at line 140 of file OldHeadPointerMC.cc. Referenced by convert().
converts to a body relative measurement for joint i
Definition at line 106 of file OldHeadPointerMC.cc. Referenced by convert(), and updateOutputs().
restores maxSpeed to default settings from Config::Motion_Config
Definition at line 31 of file OldHeadPointerMC.cc. Referenced by OldHeadPointerMC().
Updates where the head is looking.
Reimplemented from MotionCommand. Definition at line 83 of file OldHeadPointerMC.h.
returns active flag, see isDirty()
Definition at line 31 of file OldHeadPointerMC.h. Referenced by getOutputCmd().
returns the current mode for joint i (use RobotInfo::TPROffset_t, not global offset)
Definition at line 71 of file OldHeadPointerMC.h.
returns the target value (relative to the current mode) of joint i. Use getOutputCmd() if you want to know the current commanded joint value; To get the current joint position, look in WorldState
Definition at line 74 of file OldHeadPointerMC.h.
returns one of the headCmds entries or unusedJoint if not a head joint
Definition at line 97 of file OldHeadPointerMC.cc.
Updates where the head is looking.
Implements MotionCommand. Definition at line 82 of file OldHeadPointerMC.h.
true if a change has been made since the last updateJointCmds() and we're active
Implements MotionCommand. Definition at line 81 of file OldHeadPointerMC.h. Referenced by updateOutputs().
puts x in the range (-pi,pi) Definition at line 89 of file OldHeadPointerMC.h. Referenced by clipAngularRange().
sets a specific head joint's mode; will convert from previous mode's value to next mode's value if convert is true. Pass one of RobotInfo::TPROffset_t, not a full offset!
Definition at line 42 of file OldHeadPointerMC.cc. Referenced by setMode().
Directly sets the neck values (radians), uses current mode.
Definition at line 19 of file OldHeadPointerMC.cc.
set a specific head joint's value (in radians, for whatever mode it's in), pass one of RobotInfo::TPROffset_t, not a full offset!
Definition at line 59 of file OldHeadPointerMC.h. Referenced by setJoints().
set a specific head joint (in radians), pass one of RobotInfo::TPROffset_t, not a full offset!
Definition at line 63 of file OldHeadPointerMC.h.
set a specific head joint (in radians) auto converting value from mode m to the current mode, pass one of RobotInfo::TPROffset_t, not a full offset!
Definition at line 67 of file OldHeadPointerMC.h.
sets all the joints to the given mode, will convert the values to the new mode if convert is true
Definition at line 37 of file OldHeadPointerMC.cc.
set a specific head joint weight, pass one of RobotInfo::TPROffset_t, not a full offset!
Definition at line 27 of file OldHeadPointerMC.h.
sets the weight values for all the neck joints
Definition at line 25 of file OldHeadPointerMC.cc. Referenced by OldHeadPointerMC().
Updates where the head is looking.
Implements MotionCommand. Definition at line 49 of file OldHeadPointerMC.cc.
Member Data Documentation
set by accessor functions, defaults to true
Definition at line 106 of file OldHeadPointerMC.h. Referenced by getActive(), isDirty(), and setActive().
true if a change has been made since last call to updateJointCmds()
Definition at line 105 of file OldHeadPointerMC.h. Referenced by DoStart(), isDirty(), setJointMode(), setJointValue(), setJointValueAndMode(), setJointValueFromMode(), setWeight(), and updateOutputs().
stores the last values we sent from updateOutputs
Definition at line 108 of file OldHeadPointerMC.h. Referenced by getOutputCmd(), OldHeadPointerMC(), setWeight(), and updateOutputs().
stores the current mode of each joint, for instance so tilt can be GravityRelative while pan is static
Definition at line 110 of file OldHeadPointerMC.h. Referenced by getJointMode(), OldHeadPointerMC(), setJointMode(), setJointValue(), setJointValueAndMode(), setJointValueFromMode(), and updateOutputs().
stores the target value of each joint, relative to headModes
Definition at line 109 of file OldHeadPointerMC.h. Referenced by getJointValue(), OldHeadPointerMC(), setJointMode(), setJointValue(), setJointValueAndMode(), setJointValueFromMode(), and updateOutputs().
initialized from Config::motion_config, but can be overridden by setMaxSpeed(); rad per frame
Definition at line 111 of file OldHeadPointerMC.h. Referenced by defaultMaxSpeed(), getMaxSpeed(), noMaxSpeed(), setMaxSpeed(), and updateOutputs().
false if the head is still moving towards its target
Definition at line 107 of file OldHeadPointerMC.h. Referenced by DoStart(), isDirty(), setJointMode(), setJointValue(), setJointValueAndMode(), setJointValueFromMode(), setWeight(), and updateOutputs().
The documentation for this class was generated from the following files: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Wed Oct 4 00:05:09 2006 by Doxygen 1.4.7 |