Dronekit script to precision land Aruco


I am on the dronekit script part evrything goes great until i run the rosrun gazebo_drone gazebo_precision_landing.py. I get this error. If anyone can help been stuck on this.

rosrun gazebo_drone gazebo_precision_landing.py
WARNING:dronekit:Link timeout, no heartbeat in last 5 seconds
ERROR:dronekit.mavlink:Exception in MAVLink input loop
Traceback (most recent call last):
File “/home/lorenzo/.local/lib/python2.7/site-packages/dronekit/mavlink.py”, line 211, in mavlink_thread_in
File “/home/lorenzo/.local/lib/python2.7/site-packages/dronekit/init.py”, line 1371, in listener
APIException: No heartbeat in 30 seconds, aborting.
Traceback (most recent call last):
File “/home/lorenzo/courseRoot/catkin_ws/src/gazebo_drone/scripts/gazebo_precision_landing.py”, line 19, in
vehicle = connect(‘udp:’,wait_ready=True)
File “/home/lorenzo/.local/lib/python2.7/site-packages/dronekit/init.py”, line 3166, in connect
vehicle.initialize(rate=rate, heartbeat_timeout=heartbeat_timeout)
File “/home/lorenzo/.local/lib/python2.7/site-packages/dronekit/init.py”, line 2275, in initialize
raise APIException(‘Timeout in initializing connection.’)
dronekit.APIException: Timeout in initializing connection.


Try 14551, not 14451.

closed #3


@jax200 10 points