I have looked at many different forums and even seen some of you suggestions on other posts. It seems this issue is persistent.
I tried uninstalling and installing the course suggested version, and also tried installing other versions, and still come up empty.
------------------ Virtual Environment Output for pip freeze | grep -i drone & mav --------------
(dksitl) gustavo@thinkpad-t430:~/courseRoot/dk$ pip freeze | grep -i mav
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
MAVProxy==1.6.2
pymavlink==2.0.6
(dksitl) gustavo@thinkpad-t430:~/courseRoot/dk$ pip freeze | grep -i drone
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
dronekit==2.9.1
dronekit-sitl==3.3.0
(dksitl) gustavo@thinkpad-t430:~/courseRoot/dk$
---------------------- Bare Metal Linux 18.04 pip freeze | grep -i drone & mav outputs -------
gustavo@thinkpad-t430:~/courseRoot/dk$ pip freeze | grep -i drone
dronekit==2.9.2
dronekit-sitl==3.3.0
gustavo@thinkpad-t430:~/courseRoot/dk$ pip freeze | grep -i mav
MAVProxy==1.8.17
pymavlink==2.4.29
gustavo@thinkpad-t430:~/courseRoot/dk$
Yes, I can communicate with the sim_vehicle using MAVProxy OK, although I did noticed something unusually different from the course video.
In the video, the MAVProxy Commands being typed on the terminal provided an output response being echoed into the same terminal. However in my case the MAVProxy Commands in the actual MAVProxy terminal did not echoed anything, the responses where echoed directly to the automatically opened terminal that pops up when executing the sim_vehicle command
So far tested several combinations of Ardupilot and Dronekit without success.
It seems the dronekit program is a few tacos short of a combination platter…
I tried executing the course’s python examples:
python attributes_fetcher.py and get…
gustavo@thinkpad-t430:~/courseRoot/dk$ python connection_template.py
Starting copter simulator (SITL)
SITL already Downloaded and Extracted.
Ready to boot.
CRITICAL:autopilot:APM:Copter V3.3 (d6053245)
CRITICAL:autopilot:Frame: QUAD
CRITICAL:autopilot:Calibrating barometer
CRITICAL:autopilot:Initialising APM…
CRITICAL:autopilot:barometer calibration complete
CRITICAL:autopilot:GROUND START
gustavo@thinkpad-t430:~/courseRoot/dk$
However when I tried running python basic_template.py, it never sets the mode to GUIDED. Dronekit doesn’t seem to be communicating consistently with the Sitl or sim_vehicle???
gustavo@thinkpad-t430:~/courseRoot/dk$ python basic_template.py
Starting copter simulator (SITL)
SITL already Downloaded and Extracted.
Ready to boot.
CRITICAL:autopilot:APM:Copter V3.3 (d6053245)
CRITICAL:autopilot:Frame: QUAD
CRITICAL:autopilot:Calibrating barometer
CRITICAL:autopilot:Initialising APM…
CRITICAL:autopilot:barometer calibration complete
CRITICAL:autopilot:GROUND START
Waiting for vehicle to become armable.
Waiting for vehicle to become armable.
Waiting for vehicle to become armable.
Waiting for vehicle to become armable.
Waiting for vehicle to become armable.
Vehicle is now armable
Waiting for drone to enter GUIDED flight mode
Waiting for drone to enter GUIDED flight mode
Waiting for drone to enter GUIDED flight mode
Waiting for drone to enter GUIDED flight mode
Waiting for drone to enter GUIDED flight mode
Waiting for drone to enter GUIDED flight mode
Waiting for drone to enter GUIDED flight mode
Waiting for drone to enter GUIDED flight mode
At this point, I am wondering, if I should get my money back for these courses, I am not sure where the problem lies, but it is definitely over my head…