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 46d3c29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plan_node/manipulation_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ 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 = actionlib.SimpleActionServer('arm_center/grasp_precompute',
GraspPrecomputeAction,
execute_cb=self.manipulation_srv_left,
execute_cb=self.manipulation_srv_inst,
auto_start=False)
self.srv_manipulation_left.start()
self.srv_manipulation.start()

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

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

0 comments on commit 46d3c29

Please sign in to comment.