Browse Source

Fix pluggable ee errors

pull/53/head
Binit Shah 2 years ago
parent
commit
99b0de1f2d
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      stretch_core/nodes/command_groups.py
  2. +2
    -0
      stretch_core/nodes/joint_trajectory_server.py

+ 1
- 1
stretch_core/nodes/command_groups.py View File

@ -140,9 +140,9 @@ class WristYawCommandGroup(SimpleCommandGroup):
class GripperCommandGroup(SimpleCommandGroup): class GripperCommandGroup(SimpleCommandGroup):
def __init__(self, range_robotis=None, node=None): def __init__(self, range_robotis=None, node=None):
self.gripper_conversion = GripperConversion()
SimpleCommandGroup.__init__(self, 'joint_gripper_finger_left', range_robotis, acceptable_joint_error=1.0, node=node) SimpleCommandGroup.__init__(self, 'joint_gripper_finger_left', range_robotis, acceptable_joint_error=1.0, node=node)
self.gripper_joint_names = ['joint_gripper_finger_left', 'joint_gripper_finger_right', 'gripper_aperture'] self.gripper_joint_names = ['joint_gripper_finger_left', 'joint_gripper_finger_right', 'gripper_aperture']
self.gripper_conversion = GripperConversion()
self.update_joint_range(range_robotis) self.update_joint_range(range_robotis)
def update_joint_range(self, joint_range, node=None): def update_joint_range(self, joint_range, node=None):

+ 2
- 0
stretch_core/nodes/joint_trajectory_server.py View File

@ -1,6 +1,8 @@
#! /usr/bin/env python #! /usr/bin/env python
from __future__ import print_function from __future__ import print_function
import importlib
import rospy import rospy
import actionlib import actionlib
from control_msgs.msg import FollowJointTrajectoryAction from control_msgs.msg import FollowJointTrajectoryAction

Loading…
Cancel
Save