From 0b33eeeba823ac136936c41316f0e1b58bf23bfd Mon Sep 17 00:00:00 2001 From: Wiktor Bajor Date: Sun, 4 Feb 2024 21:09:23 +0000 Subject: [PATCH] Remove _ prefix from action_client member --- ros2_grasp_service/ros2_grasp_service/grasp_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ros2_grasp_service/ros2_grasp_service/grasp_service.py b/ros2_grasp_service/ros2_grasp_service/grasp_service.py index 962c630..42b0e93 100644 --- a/ros2_grasp_service/ros2_grasp_service/grasp_service.py +++ b/ros2_grasp_service/ros2_grasp_service/grasp_service.py @@ -13,15 +13,15 @@ class FollowJointTrajectoryActionClient(Node): def __init__(self, joints_controller_name): super().__init__("send_trajectory_action") - self._action_client = ActionClient( + self.action_client = ActionClient( self, FollowJointTrajectory, f"/{joints_controller_name}/follow_joint_trajectory" ) self.status = GoalStatus.STATUS_EXECUTING def send_goal(self, goal_msg): self.status = GoalStatus.STATUS_EXECUTING - self._action_client.wait_for_server() - self._send_goal_future = self._action_client.send_goal_async(goal_msg) + self.action_client.wait_for_server() + self._send_goal_future = self.action_client.send_goal_async(goal_msg) self._send_goal_future.add_done_callback(self.goal_response_callback) def goal_response_callback(self, future):