def get_active_mission(req):
""" Service to update mission information with current active mission.
Args:
req: Request of type Trigger.
Returns:
TriggerResponse with true, false for success, failure.
"""
with lock:
global msgs
try:
msgs = client.get_active_mission(frame)
except (ConnectionError, Timeout) as e:
rospy.logwarn(e)
return False, str(e)
except (ValueError, HTTPError) as e:
rospy.logerr(e)
return False, str(e)
rospy.loginfo("Using active mission")
return True, "Success"
评论列表
文章目录