Skip to content

Commit

Permalink
reroute arm_action_server
Browse files Browse the repository at this point in the history
  • Loading branch information
PetervDooren committed Mar 9, 2021
1 parent 21cb8ac commit 248d214
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/plan_node/manipulation_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,12 @@ def __init__(self):
self.whole_body = self.robot.try_get('whole_body')

# server
self.srv_manipulation_left = actionlib.SimpleActionServer('arm_left/grasp_precompute',
self.srv_manipulation_left = actionlib.SimpleActionServer('arm_center/grasp_precompute',
GraspPrecomputeAction,
execute_cb=self.manipulation_srv_left,
execute_cb=self.manipulation_srv,
auto_start=False)
self.srv_manipulation_left.start()

def manipulation_srv_left(self, action):
success = self.manipulation_srv(action)
if success:
rospy.loginfo('Manipulation bridge: Succeeded')
self.srv_manipulation_left.set_succeeded()

def manipulation_srv(self, action):
"""
Expand Down

0 comments on commit 248d214

Please sign in to comment.