Drone Delivery and Mission Handling with Python

Поделиться
HTML-код
  • Опубликовано: 12 дек 2024

Комментарии • 74

  • @MrJawwadzahed
    @MrJawwadzahed 7 лет назад +5

    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 лет назад +3

      Jay , I am glad I was helpful, but please don't call me sir. You make me feel old.

    • @maoharn
      @maoharn 2 года назад

      @@prandtlmayer 😂

  • @calebbergquist2066
    @calebbergquist2066 6 лет назад +5

    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.

  • @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

  • @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.

  • @miloudsefiani6340
    @miloudsefiani6340 5 лет назад +1

    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 лет назад +1

      I haven't used that feature yet. You might want to check on the forum

  • @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?

  • @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!

  • @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

  • @rootready
    @rootready 5 лет назад +1

    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 лет назад +2

      This is really an interesting subject and I am working on it

  • @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

  • @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.

  • @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 года назад +2

      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??

  • @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

  • @joemama.556
    @joemama.556 5 лет назад +1

    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 лет назад +1

      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👍👍

  • @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

  • @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

  • @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

  • @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

  • @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!

  • @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?

  • @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 4 года назад

    Could you do one tutorial on collision avoidance while running a mission ?

    • @prandtlmayer
      @prandtlmayer  3 года назад +1

      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.

  • @ser7ser7i
    @ser7ser7i 6 лет назад +1

    Thank you.

  • @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

  • @ns3lover779
    @ns3lover779 6 лет назад

    Thank you sir ,what is the name of the simulator ?

  • @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

  • @mayakano2183
    @mayakano2183 6 лет назад

    does this work for any drone?

  • @abdelz1617
    @abdelz1617 4 года назад

    useful