mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
ROS mission_test.py send mission before starting
- update to latest sitl_gazebo
This commit is contained in:
committed by
Lorenz Meier
parent
63deb40a76
commit
3f67ddbdba
@@ -460,9 +460,6 @@ class MavrosMissionTest(unittest.TestCase):
|
|||||||
else:
|
else:
|
||||||
raise IOError('unknown mission file extension', mission_ext)
|
raise IOError('unknown mission file extension', mission_ext)
|
||||||
|
|
||||||
# delay starting the mission
|
|
||||||
self.wait_for_topics(30)
|
|
||||||
|
|
||||||
rospy.loginfo("send mission")
|
rospy.loginfo("send mission")
|
||||||
result = False
|
result = False
|
||||||
try:
|
try:
|
||||||
@@ -474,6 +471,9 @@ class MavrosMissionTest(unittest.TestCase):
|
|||||||
result,
|
result,
|
||||||
"({0}) mission could not be transfered".format(self.mission_name))
|
"({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
|
# make sure the simulation is ready to start the mission
|
||||||
self.wait_on_landed_state(ExtendedState.LANDED_STATE_ON_GROUND, 10, -1)
|
self.wait_on_landed_state(ExtendedState.LANDED_STATE_ON_GROUND, 10, -1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user