From 04472d9f5ddf98b8abea4b602f703fd2175cc8ca Mon Sep 17 00:00:00 2001 From: Gustavo Date: Sun, 16 Oct 2022 11:56:57 +0200 Subject: [PATCH] Add description attribute minimum_position --- robot_skills/src/robot_skills/arm/gripper_position_detector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robot_skills/src/robot_skills/arm/gripper_position_detector.py b/robot_skills/src/robot_skills/arm/gripper_position_detector.py index c8c805dc8..b243bfc3a 100644 --- a/robot_skills/src/robot_skills/arm/gripper_position_detector.py +++ b/robot_skills/src/robot_skills/arm/gripper_position_detector.py @@ -15,7 +15,7 @@ def __init__(self, robot_name: str, tf_buffer: str, joint_topic: str, minimum_po :param robot_name: Name of the robot :param tf_buffer: tf2_ros.Buffer for use in RobotPart :param joint_topic: Topic to use for measurement - :param min_position: Range value from -1.0 (gripper fully opened) to 1.0 (closed fully closed) + :param minimum_position: Value currently set in -0.75 in hero.py """ super(GripperPositionDetector, self).__init__(robot_name=robot_name, tf_buffer=tf_buffer) @@ -27,6 +27,7 @@ def __init__(self, robot_name: str, tf_buffer: str, joint_topic: str, minimum_po self.start_time = None self.minimum_position = minimum_position + def _joint_callback(self, msg: JointState) -> None: """ Will be executed every time a new message is received.