Drone Delivery and Mission Handling with Python

  Рет қаралды 30,403

Tiziano Fiorenzani

Tiziano Fiorenzani

Күн бұрын

Пікірлер: 74
@calebbergquist2066
@calebbergquist2066 6 жыл бұрын
Dronekit's abstraction away from the flight code is so powerful! It seems equivalent to what Operating Systems did to computers! Where is the line though for dronekit's potential- has it be used to integrate new sensors to dynamically affect the drone's movement (obstacle avoidance, precision landing), essentially bypassing the need to modify the flight controller's source code (which can be lengthy and difficult to understand completely)? This just blows me away. Thanks again for sharing your knowledge.
@MrJawwadzahed
@MrJawwadzahed 7 жыл бұрын
Well I was about to 'hard-code' all my way-points. I didn't know this was even possible. Great stuff... Thank you sir :)
@prandtlmayer
@prandtlmayer 7 жыл бұрын
Jay , I am glad I was helpful, but please don't call me sir. You make me feel old.
@maoharn
@maoharn 2 жыл бұрын
@@prandtlmayer 😂
@prandtlmayer
@prandtlmayer 7 жыл бұрын
Don't give up. When it comes to that is usually something easy that is hard to spot. I'll try and give you an answer soon
@arpitsrivastava8431
@arpitsrivastava8431 7 жыл бұрын
Tiziano Fiorenzani Well its good.But my one problem is not solved that what to do with raspberry pi and apm ,I want to use 3G dongal for far mission.Please help me what to do with raspberry pi and apm
@prandtlmayer
@prandtlmayer 7 жыл бұрын
Open a terminal and open Python (just write python). You should now be in python 2.7 (check the version please). Then write help('module') and you should have all the modules currently installed. If you don't see dronekit, just uninstall it and try and reinstall
@kaanucar22
@kaanucar22 3 жыл бұрын
Can I just show to mission route on Mission Planner map? I have to show the mission route. Please, please help me?
@miloudsefiani6340
@miloudsefiani6340 5 жыл бұрын
thanks our teacher, i want know why when i click in Write WPS Fast. i get an error " there was an expected error " when i see details of error i see " Timeout on read -setWPTotal ..."
@prandtlmayer
@prandtlmayer 5 жыл бұрын
I haven't used that feature yet. You might want to check on the forum
@enesyurt7864
@enesyurt7864 2 жыл бұрын
Hello Tiziano, I really like your works and I have a question, I want to create a system like: While my drone flying on a rectangle path, when it detects something with image processing I want to take its location, put a waypoint in there and I want to know when I reached that point in the next tour (to do some missions e.g opening servo and dropping a ball, etc.) How can I add a waypoint autonomously while proceeding with the mission Is there a way to do this? Thanks in advance.
@erayilgazi4825
@erayilgazi4825 2 жыл бұрын
Hello, your videos are very useful, but ı have a question. İ want to make a ground control station on the fixed wing, ı want to hybridize manually and autonomously. Is it possible to do this? What kind of resource do you have?
@johntan6854
@johntan6854 3 жыл бұрын
hi sir, your video is very useful and interesting, but i have a question, i mean i have met a error when i click on writeWP after pointing the WP, which the error is ( there was an expected error " Timeout on read -setWPTotal " ) and something, may i know why and how to solve this issue? thanks in advanced and hope to receive your reply soon!
@nadhmiamara6718
@nadhmiamara6718 4 жыл бұрын
hy Tiziano ! im trying to run the drone_delivery.py on server , is it possible to run the js code with your own access token and mapid ? everytime the map does'nt display! i need help please
@rootready
@rootready 5 жыл бұрын
Nice useful video. Thank you for this! But, the most interesting, challenging, exciting task is INDOOR positioning and automation.. What's about this? Thank you.
@prandtlmayer
@prandtlmayer 5 жыл бұрын
This is really an interesting subject and I am working on it
@masoodabbasi2527
@masoodabbasi2527 3 жыл бұрын
Hi Tiziano , nice work. Would you tell me when current location is set as last way point and drone has reached that position then where the drone would go with return to home?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
RTL moves to the location the drone armed
@sudharsansubramani1685
@sudharsansubramani1685 3 жыл бұрын
Is it possible to create a python script to interface with the mission planner such that the python script input the coordinates and the mission planner plots the course?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
You can also import python scripts.in mission planner too. Check on the forum
@aadilhusain1215
@aadilhusain1215 3 жыл бұрын
When I'm adding the script through sudo python .py file it says no module named drone kit ... I checked and install it twice how I'm suppose to remove this error
@prandtlmayer
@prandtlmayer 3 жыл бұрын
That is a problem when installing with sudo privileges. Uninstall drinking and install it from source again
@franciscourena5636
@franciscourena5636 4 жыл бұрын
Great job Question Can you program the FPV plane to fly further than the range of the ground station and have the FPV plane to return to Its location via waypoints? For example, the ground station is 25 mile range, but the destination is 100 miles. Can you set up the FPV plane to travel fro. Point A to Point B to Point A 100 miles each way?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Not legally
@franciscourena5636
@franciscourena5636 4 жыл бұрын
@@prandtlmayer So it can be done! Let's say you have an automated flight path from point A to Point B but your ground station failed, can the FPV plane accomplish its mission A-B-A viewpoints using the GPS??
@CodeBroRob
@CodeBroRob 5 жыл бұрын
how can i see camera output tho? would love to play with this and see what it sees as it flies around.
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Check this out: discuss.ardupilot.org/t/gsoc-2019-airsim-simulator-support-for-ardupilot-sitl/42890
@nevzatbugrahanturk3809
@nevzatbugrahanturk3809 4 жыл бұрын
Is it possible to adding a new waypoint during the flight in AUTO mode?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Adding a waypoint changes the mission, so you need to upload the new mission. Mind that the vehicle will keep going to the current old waypoint and will update to the new mission only when heading for the next one. What you could do is pause the mission by setting the vehicle in Guided, upload the new mission and then change mode to Mission again
@pavniparghi8253
@pavniparghi8253 3 жыл бұрын
if i am trying from the other terminal it shows that no heartbeat found
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Have you installed from source? Check connections and make sure the baudrate match
@shahrukhansari1942
@shahrukhansari1942 5 жыл бұрын
It is working fine on SITL but not on real drone....cmds.wait_ready() is giving timeout error. Why dronekit script takes time to connect with drone while mission planner not?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
I've been using dronekit on my drones for 4 years. Check your connections, speed up the serial to 921600, change the sr2 for the parameters to 10Hz
@shahrukhansari1942
@shahrukhansari1942 5 жыл бұрын
I'm not using any companion computer(like : Raspberry pi or any other) on my quadcopter .I am uploading the script directly on pixhawk via 433 hz telemetry module from the Ubuntu PC. Is that the reason it is taking time to upload the mission?
@shahrukhansari1942
@shahrukhansari1942 5 жыл бұрын
I set serial_baud to 921600 and sr2_params to 10 hz but it didn't work.
@prandtlmayer
@prandtlmayer 5 жыл бұрын
It doesn't work that way. Pixhawk runs on a microprocessor and you need to upload Ardupilot firmware. The python script runs on a companion or on the computer. I suggest you have a good reading of the documentation on the Ardupilot website
@yusufyigitbas1125
@yusufyigitbas1125 6 жыл бұрын
I wonder that how to code the script for changing flight modes by using transmitter, while the script is running.Is it possible to check the modes in loops or commands in auto mode?If it is not possible,Should i add multitasking threads?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
You can change the flight mode while the script is running with the ground station or the transmitter no problem. And you always know the flight mode in the script. I recommend you dedicate a switch on the tx to enable and disable the script as well
@yusufyigitbas1125
@yusufyigitbas1125 6 жыл бұрын
Thank you sir!
@dronepilot1333
@dronepilot1333 5 жыл бұрын
I have Arducopter running on my tarot ironman and intend to make an experiment as a delivery drone. What firmware would you recommend? Ideally, it will deliver to a designated GPS location and return to launch once mission is completed.
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Arducopter has that implemented already. One of the mission item can be a delivery with a string also
@dronepilot1333
@dronepilot1333 5 жыл бұрын
Tiziano Fiorenzani cool. I will check it out.
@gozeenpinjar
@gozeenpinjar 5 жыл бұрын
What should I do if I wanted to land the drone at the last way point and return it
@prandtlmayer
@prandtlmayer 5 жыл бұрын
You can either program a landing in the mission or you can set the mode to landing. Consider that in Landing mode you won't be able to send commands to correct the position. You will need the RC or to override the first 4 channels
@gozeenpinjar
@gozeenpinjar 5 жыл бұрын
@@prandtlmayer I didn't get one thing, if the script runs on a pi and the pi is on the drone then how should I connect the pc in which mission planner runs cous that's how it should work right? And can I Connect the pi and pc over the internet? If yes then how?
@ns3lover779
@ns3lover779 6 жыл бұрын
Thank you sir ,what is the name of the simulator ?
@noahorosw
@noahorosw 7 жыл бұрын
I'm having trouble starting dronekit sitl command not found . So I pip install dronekit-sitl , installs ! Try to start , and command not found ???
@prandtlmayer
@prandtlmayer 7 жыл бұрын
Noah Wheeler which os?
@noahorosw
@noahorosw 7 жыл бұрын
Windows 10 , and Ubuntu 17.10 for virtualbox
@prandtlmayer
@prandtlmayer 7 жыл бұрын
That sounds like a problem with the path. Check your parh and verify dronekit has been installed in one of those folder
@noahorosw
@noahorosw 7 жыл бұрын
Can you leave a description of the path ? /home/xyz/ardupilot/Tools/etc... ??? This must be where I'm making my mistake ?
@noahorosw
@noahorosw 7 жыл бұрын
export PATH=$PATH:$HOME/ardupilot/Tools/autotest ???export PATH=/usr/lib/ccache:$PATH ??? Confused .
@angelleal3005
@angelleal3005 3 жыл бұрын
Could you do one tutorial on collision avoidance while running a mission ?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Collision avoidance is pretty recent addition in Arducopter. Let me think of that
@angelleal3005
@angelleal3005 3 жыл бұрын
@@prandtlmayer Consider doing it. It's worth the time.
@liamcummings6673
@liamcummings6673 3 жыл бұрын
Where can I download a copy of these scripts?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
there is a link to my github in the description
@emrekaanozkan1705
@emrekaanozkan1705 6 жыл бұрын
hi i m using dronekit on raspberry pi bu i want to use your autopilot script and mission planner same time but i cant it. How can ı can it ?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
You have two choices. Either you connect the pi to telemetry 2 and use telemetry 1 for a datalink or you run a proxy on the pi, either mavproxy or mavlunk-router to proxy the connection to both a TCp port to localhost and a udp port to your computer running mission planner (or broadcast)
@emrekaanozkan1705
@emrekaanozkan1705 6 жыл бұрын
Tiziano Fiorenzani ı m using uart raspi on tele2 port but tele1 not connect on udp how can ı solve this problem
@prandtlmayer
@prandtlmayer 6 жыл бұрын
As I said, you can either connect a datalink to telem1 and use a ground datalink to mission planner or you set a mavproxy in the pi and proxy the connection to udp 14550, where you connect with mission planner
@emrekaanozkan1705
@emrekaanozkan1705 6 жыл бұрын
thanks:) but ı dont know what to add to the script
@prandtlmayer
@prandtlmayer 6 жыл бұрын
I'm sorry Kaan, but I really don't understand what you're asking. Have you looked at any of my other videos? Maybe you can find you answer. Help me understand better
@ser7ser7i
@ser7ser7i 6 жыл бұрын
Thank you.
@joemama.556
@joemama.556 5 жыл бұрын
hi! I d like to ask you a few questions. Im currently briefing the construction of an fpv fixed wing platform. The issue is that i need to keep it as low cost as possible, but one of the main goals is implementing image tracking for the on board gimbal. The system would have a 2 or 3 axis self stabilized gimbal and connected to the servo inputs. The video feed would pass through a capture card an directly to the mission planner. My idea was writing some code that could talk to the servo inputs of the gimbal and follow a certain colour/shape. I'd trigger the code at a certain moment to lock on whichever color is on the center of the screen(video feed). Also this software is intended to run on some sort of windows 10 tablet. So not very high specs should be required. My question is: Is this achievable with python? Or would I need another type of code? Thanks a lot!
@prandtlmayer
@prandtlmayer 5 жыл бұрын
You can use Python and dronekit. You can control the gimbal's angles, no problem.
@joemama.556
@joemama.556 5 жыл бұрын
@@prandtlmayer thank you so much! I will be following all your videos, as I think they will be very helpful, great videos too👍👍
@mayakano2183
@mayakano2183 6 жыл бұрын
does this work for any drone?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Running ardupilot
@abdelz1617
@abdelz1617 4 жыл бұрын
useful
Drone Trajectory Tracking with Python
9:59
Tiziano Fiorenzani
Рет қаралды 32 М.
DroneKit SITL Bench Testing With Raspberry Pi, Pixhawk, and Tower
8:12
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 44 МЛН
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 127 МЛН
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 62 МЛН
Drone Programming Libraries 2021
9:32
Intelligent Quads
Рет қаралды 21 М.
Mission Planner SITL for Dummies
9:04
Yuri's Homebrew & DIY
Рет қаралды 13 М.
How Amazon Drone Delivery Will Work
6:29
Tech Vision
Рет қаралды 840 М.
Open Source Motion Capture for Autonomous Drones
10:34
Joshua Bird
Рет қаралды 639 М.
Python and Dronekit Intro | Drone Programming (2020)
7:20
The Drone Dojo
Рет қаралды 50 М.
Dronekit setup, simulation and visualization on Mission Planner
8:31
Tiziano Fiorenzani
Рет қаралды 124 М.
Training a Neural Network to operate drones using Genetic Algorithm
8:54
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 44 МЛН