Skip to content

Commit

Permalink
Remove _ prefix from action_client member
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiktor-99 committed Feb 4, 2024
1 parent b7f4cba commit 0b33eee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ros2_grasp_service/ros2_grasp_service/grasp_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0b33eee

Please sign in to comment.