Dronekit script to precision land Aruco


#1

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
fn(self)
File “/home/lorenzo/.local/lib/python2.7/site-packages/dronekit/init.py”, line 1371, in listener
self._heartbeat_error)
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:127.0.0.1:14451’,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.


#2

Try 14551, not 14451.


closed #3

#4

@jax200 10 points