move_base_success.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 
3 import rospy
4 
5 from scenario_test_tools.scriptable_move_base import ScriptableMoveBase
6 from move_base_msgs.msg import MoveBaseAction, MoveBaseResult
7 
8 if __name__ == "__main__":
9  rospy.init_node('always_succeeding_move_base')
10 
11  # By default, wait 5 secs for the robot to arrive
12  result_delay = rospy.get_param("result_delay", 5)
13 
14  succeeded = MoveBaseResult()
15  move_base = ScriptableMoveBase('~move_base',
16  MoveBaseAction,
17  default_result_delay=result_delay,
18  default_result=succeeded)
19 
20  move_base.start()
21  rospy.loginfo("always_succeeding_move_base running")
22 
23  rospy.spin()


scenario_test_tools
Author(s): Loy van Beek
autogenerated on Wed Apr 7 2021 03:03:18