| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
ArmMC Class Reference
Inheritance diagram for ArmMC:
![]() Detailed DescriptionDefinition at line 12 of file ArmMC.h.
Constructor & Destructor Documentation
Constructor, defaults to all joints to current value in state (i.e. calls takeSnapshot() automatically). 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 133 of file ArmMC.h. Referenced by setJointValue().
marks this as dirty each time it is added Reimplemented from MotionCommand.
Makes sure i is in the range (0,NumArmJoints). If it is instead in the range (ArmOffset,ArmOffset+NumArmJoints), output a warning and reset i to the obviously intended value.
Definition at line 242 of file ArmMC.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.
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.
Alive while target is not reached. Implements MotionCommand.
true if a change has been made since the last updateJointCmds() and we're active Implements MotionCommand. Definition at line 115 of file ArmMC.h. Referenced by updateOutputs().
if completionReported, copies armCmds from MotionManager::getOutputCmd(), then sets dirty to true and completionReported to false should be called each time a joint value gets modified in case the arm 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 233 of file ArmMC.cc. Referenced by doStart(), setJointValue(), and setWeight().
Sets the weight values for all the arm joints. Definition at line 116 of file ArmMC.cc. Referenced by moveToPoint().
puts x in the range (-pi,pi) Definition at line 130 of file ArmMC.h. Referenced by clipAngularRange().
Sets the weight values for all the arm joints. Definition at line 73 of file ArmMC.h. Referenced by setJoints(), and setWrist().
Sets maxSpeed for all joints in rad/sec. Definition at line 51 of file ArmMC.h. Referenced by setJoints(), setMaxSpeed(), and setWrist().
Sets the weight values for all the arm joints. Definition at line 101 of file ArmMC.h. Referenced by moveOffsetToPoint(), and moveOffsetToPointWithOrientation().
Sets the weight values for all the arm joints. Definition at line 61 of file ArmMC.cc. Referenced by ArmMC(), and setJointValue().
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 37 of file ArmMC.cc. Referenced by ArmMC().
Updates where the arm is looking. Implements MotionCommand. Member Data Documentation
stores the last values we sent from updateOutputs Definition at line 172 of file ArmMC.h. Referenced by freezeMotion(), markDirty(), setOutputCmd(), setWeight(), takeSnapshot(), and updateOutputs().
stores the target value of each joint Definition at line 171 of file ArmMC.h. Referenced by armJointValue(), freezeMotion(), getJointValue(), isAlive(), setJointValue(), setOutputCmd(), takeSnapshot(), and updateOutputs().
true if the most recent movement request has completed Definition at line 168 of file ArmMC.h. Referenced by isAlive(), isDirty(), markDirty(), setOutputCmd(), and updateOutputs().
true if a change has been made since last call to updateJointCmds() Definition at line 165 of file ArmMC.h. Referenced by freezeMotion(), isAlive(), isDirty(), markDirty(), setOutputCmd(), takeSnapshot(), and updateOutputs().
initialized from Config::motion_config, but can be overridden by setMaxSpeed(); rad per frame Definition at line 173 of file ArmMC.h. Referenced by defaultMaxSpeed(), getMaxSpeed(), noMaxSpeed(), setMaxSpeed(), and updateOutputs().
time at which the completionReported flag was set Definition at line 169 of file ArmMC.h. Referenced by isAlive(), and updateOutputs().
number of milliseconds to wait before giving up on a target that should have already been reached, a value of -1U will try forever Definition at line 170 of file ArmMC.h. Referenced by getTimeout(), isAlive(), and setTimeout().
when autopruning, if the maxdiff() of this posture and the robot's current position is below this value, isAlive() will be false, defaults to 0.01 (5.7 degree error) Definition at line 167 of file ArmMC.h. Referenced by getTolerance(), isAlive(), and setTolerance(). The documentation for this class was generated from the following files: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v5.1CVS |
Generated Tue Jan 31 04:32:15 2012 by Doxygen 1.6.3 |