Example #1
0
 def handle_result(msg):
     result = FollowJointTrajectoryResult.from_msg(msg)
     if result.error_code != FollowJointTrajectoryResult.SUCCESSFUL:
         ros_error = RosError(
             'Follow trajectory failed={}'.format(result.error_string),
             int(result.error_code))
         action_result._set_error_result(ros_error)
         if errback:
             errback(ros_error)
     else:
         action_result._set_result(result)
         if callback:
             callback(result)
Example #2
0
 def handle_result(msg, client):
     result = FollowJointTrajectoryResult.from_msg(msg)
     callback(result)