Skip to content

Commit

Permalink
Fix attribute name min to minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavoDCC committed Oct 12, 2022
1 parent 4c078d1 commit 9ccd58e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class GripperPositionDetector(RobotPart):
def __init__(self, robot_name: str, tf_buffer: str, joint_topic: str, min_position: float) -> None:
def __init__(self, robot_name: str, tf_buffer: str, joint_topic: str, minimum_position: float) -> None:
"""
Class for getting the position of the hand motor joint (how much the gripper is open or closed)
Values go from 1 (open) to -1 (closed)
Expand All @@ -25,7 +25,7 @@ def __init__(self, robot_name: str, tf_buffer: str, joint_topic: str, min_positi
self.current_position = None
self.store_position = False # Flag to store the position
self.start_time = None
self.min_position = min_position
self.minimum_position = minimum_position

def _joint_callback(self, msg: JointState) -> None:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def execute(self, userdata=None) -> str:
if first_position is None:
rospy.logerr("Cannot retrieve first position")
return 'failed'
elif first_position < arm.gripper_position_detector.min_position:
elif first_position < arm.gripper_position_detector.minimum_position:
rospy.logdebug("First position is {}".format(first_position))
return 'cannot_determine'

Expand Down

0 comments on commit 9ccd58e

Please sign in to comment.