ROS mission_test.py send mission before starting

- update to latest sitl_gazebo
This commit is contained in:
Daniel Agar
2017-12-31 16:20:07 -05:00
committed by Lorenz Meier
parent 63deb40a76
commit 3f67ddbdba

View File

@@ -460,9 +460,6 @@ class MavrosMissionTest(unittest.TestCase):
else:
raise IOError('unknown mission file extension', mission_ext)
# delay starting the mission
self.wait_for_topics(30)
rospy.loginfo("send mission")
result = False
try:
@@ -474,6 +471,9 @@ class MavrosMissionTest(unittest.TestCase):
result,
"({0}) mission could not be transfered".format(self.mission_name))
# delay starting the mission
self.wait_for_topics(30)
# make sure the simulation is ready to start the mission
self.wait_on_landed_state(ExtendedState.LANDED_STATE_ON_GROUND, 10, -1)