Minor changes to examples

This commit is contained in:
Oleg Kalachev
2021-08-12 21:09:43 +03:00
parent a1b3efe67d
commit 8cb911854d
2 changed files with 10 additions and 10 deletions

View File

@@ -18,14 +18,14 @@ land = rospy.ServiceProxy('land', Trigger)
# Take off and hover 1 m above the ground
navigate(x=0, y=0, z=1, frame_id='body', auto_arm=True)
# Wait for 3 seconds
rospy.sleep(3)
# Wait for 5 seconds
rospy.sleep(5)
# Fly forward 1 m
navigate(x=1, y=0, z=0, frame_id='body')
# Wait for 3 seconds
rospy.sleep(3)
# Wait for 5 seconds
rospy.sleep(5)
# Perform landing
land()

View File

@@ -18,20 +18,20 @@ land = rospy.ServiceProxy('land', Trigger)
# Take off and hover 1 m above the ground
navigate(x=0, y=0, z=1, frame_id='body', auto_arm=True)
# Wait for 3 seconds
rospy.sleep(3)
# Wait for 5 seconds
rospy.sleep(5)
# Fly 1 meter above ArUco marker 0
navigate(x=0, y=0, z=1, frame_id='aruco_0')
# Wait for 3 seconds
rospy.sleep(3)
# Wait for 5 seconds
rospy.sleep(5)
# Fly to x=1 y=1 z=1 relative to ArUco markers map
navigate(x=1, y=1, z=1, frame_id='aruco_map')
# Wait for 3 seconds
rospy.sleep(3)
# Wait for 5 seconds
rospy.sleep(5)
# Perform landing
land()