@ -191,7 +195,8 @@ class MultiPointCommand(hm.HelloNode):
def issue_multipoint_command(self):
def issue_multipoint_command(self):
"""
"""
Function that makes an action call and sends multiple joint trajectory goals.
Function that makes an action call and sends multiple joint trajectory goals
to the joint_lift, wrist_extension, and joint_wrist_yaw.
:param self: The self reference.
:param self: The self reference.
"""
"""
point0 = JointTrajectoryPoint()
point0 = JointTrajectoryPoint()
@ -244,7 +249,7 @@ if __name__ == '__main__':
```
```
### The Code Explained.
### The Code Explained
Seeing that there are similarities between the multipoint and stow command nodes, we will only breakdown the different components of the multipoint_command node.
Seeing that there are similarities between the multipoint and stow command nodes, we will only breakdown the different components of the multipoint_command node.
Set *point0* as a `JointTrajectoryPoint`and provide desired positions. These are the positions of the lift, wrist extension, and yaw of the wrist, respectively. The lift and wrist extension positions are expressed in meters, where as the wrist yaw is in radians.
Set *point0* as a `JointTrajectoryPoint`and provide desired positions. These are the positions of the lift, wrist extension, and yaw of the wrist, respectively. The lift and wrist extension positions are expressed in meters, where as the wrist yaw is in radians.
Set *trajectory_goal* as a `FollowJointTrajectoryGoal` and define the joint names as a list. Then `trajectory_goal.trajectory.points` is defined by a list of the 6 points. Specify the coordinate frame that we want (base_link) and set the time to be now.
Set *trajectory_goal* as a `FollowJointTrajectoryGoal` and define the joint names as a list. Then `trajectory_goal.trajectory.points` is defined by a list of the 6 points. Specify the coordinate frame that we want (base_link) and set the time to be now.
## Single Joint Actuator
```
##########################
### Group: stretch_arm ###
##########################
joint_lift: lower_limit = 0.00, upper_limit = 1.10 # in meters
wrist_extension: lower_limit = 0.00, upper_limit = 0.51 # in meters
joint_wrist_yaw: lower_limit = -1.75, upper_limit = 4.00 # in radians
##############################
### Group: stretch_gripper ###
##############################
joint_gripper_finger_left: lower_limit = -0.60, upper_limit = 0.60 # in radians
joint_gripper_finger_right: lower_limit = -0.60, upper_limit = 0.60 # in radians
###########################
### Group: stretch_head ###
###########################
joint_head_pan: lower_limit = -3.90, upper_limit = 1.50 # in radians
joint_head_tilt: lower_limit = -1.53, upper_limit = 0.79 # in radians