tizianofiorenzani / how_do_drones_work Goto Github PK
View Code? Open in Web Editor NEWA collection of scripts from my totorials
License: BSD 3-Clause "New" or "Revised" License
A collection of scripts from my totorials
License: BSD 3-Clause "New" or "Revised" License
Hi,
I have seen your videos and could connect RPi 3 with pixhawk. I could code with dronekit python. I want know how to get angle rates/speed (p,q,r)(euler angle rates) from dronekit python.
Hello,
Are you still using dronekit? If so, that is good. I am interested in your ideas. I would like to try to duplicate your ideas for my system. Do you ever use a BBB for telemetry and dronekit?
The BBB is another target board from BeagleBoard.org.
...
Anyway...I could not make the software, plane.py, work correctly. Is there a specific command that needs to run while trying to make the software work?
Seth
P.S. I am using 4.14.x Debian Stretch on my BBB via BASH/PuTTY on Win 10 (if this helps out at all). I have been trying to solve many issues w/ this software to try examples online and I have failed so far.
in aruco_pose_estimation.py file a think there is a typo
on line 144
roll_marker, pitch_marker, yaw_marker = rotationMatrixToEulerAngles(R_flipR_tc)
i think must be (flipped last 2 chars)
roll_marker, pitch_marker, yaw_marker = rotationMatrixToEulerAngles(R_flipR_ct)
otherwise i have this errore
NameError: name 'R_tc' is not defined
In the plane.py file,
How can we land the plane
I had taken the flight on 10m of altitude.
As it started the detection of code it violates and takes yaw angle of 149 deg.
It didn't land on aruco marker so I had to take its control on RC.
Can you just help me about how can I run complete code on my drone ??
Hello !
I followed the instructions of the tutorial, came out successful. But when I run save_snapshots.py I notice a delay of 6-7 seconds between the moment I do any action in front of the camera and its display on my laptop screen. Also the refresh rate between two images is super long at least 2 seconds, it makes everything super stuttery and a real pain for only taking the snapshots used for calibrating.
I really don't know what could cause this.
Thanks in advance for your response !
Good evening Tiziano, I'm an italian student.
I'm your follower, and you are a great teacher.
I have a question for you.
I'm working on a project, and I'm building a drone with px4 in offboard mode and external position estimation( UWB).
I want to simulate this setup I gazebo, with ros.
Can you help me to understand in which way I can develop this simulation?
I follow the tutorial posted by px4, and I have configured a simulation for offboard mode, with a small script to set some point for the drone, with Ubuntu 18.04 and ros melodic.
The next step is simulate the uwb(ranging) inside the simulation and use it to feed the pose message.
Thank you very much for your time.
Continue with your great work!
OpenCV Error: Assertion failed (ni > 0 && ni == ni1) in collectCalibrationData, file /build/opencv-VF5Hiu/opencv-2.4.9.1+dfsg/modules/calib3d/src/calibration.cpp, line 3193
Traceback (most recent call last):
File "cameracalib.py", line 120, in
ret, mtx, dist, rvecs, tvecs = cv2.calibrateCamera(objpoints, imgpoints, gray.shape[::-1],None,None)
I have chessboard of 9 *7, hence gave those arguments in command line
I got this error.
I'm using python 3.5.0
Here, I am not able to convert time to an integer.
Please help me with the same.
Error:-
return MAVLink_message.pack(self, mav, 200, struct.pack('<QfffffBB', self.time_usec, self.angle_x, self.angle_y, self.distance, self.size_x, self.size_y, self.target_num, self.frame), force_mavlink1=force_mavlink1)
struct.error: required argument is not an integer
I was thinking we both can combine EEG( BCI) for this one ...
In aruco_pose_estimation.py:
Line 144
Line 159
The equation to calculate marker attitude and camera attitude is exactly the same which gives all three angles in camera frame and marker frame to be exactly same. I understand this could be possible for flipped axes. But in this case, only two axes are flipped. The x axis is of both frames is parallel to each other. That's why at least one angle should be different when computing attitude for camera frame and marker frame.
If this is indeed correct and not a typo, please can you explain how can all angles be the same in both reference frames.
Sir,
Which is the final code to run from below ?
06_precise_landing.py or
test_precise_landing_mavlink.py ?
Hi,
Trying to run your test_connect.py code using dronekit on a Raspberry Pi 3B+ connected to a Pixhawk 4 from USB to TELEM2 port. I configured the TELEM2 port for serial as described at the end of this page
I’m using a FTDI cable linked here
I’m using the connection string = “/dev/ttyUSB0” with a baud rate of
57600 and I get the following output on terminal: WARNING: dronekit: Link timeout, no heartbeat for last 5 seconds. The connection string with ACM0 or AMA0 doesn’t work either.
Tried a separate serial check code here but gives gibberish with each baud rate.
Not sure where I’m going wrong. Whether it’s the connection string, baud rate or the hardware connection?
please i can not find the dronekit_test_03.py file could you please provide it
I've been following your youtube tutorial and I'm having problem in running the script. It said "No handlers could be found for logger 'dronekit'" and the script terminated. Any suggestion to avoid this error please?
File "aruco_pose_estimation.py", line 119, in
if ids != None:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Solution:
replace 'ids != None:' with 'if ids is not None:'
Hi @tizianofiorenzani, just checking whether OpenCV installed on Python3 and dronekits as we know is supported by only Python 2.x, will that be an issue while running the code, if so, could you please tell which version of OpenCV works well for this code as well as becomes compatible with dronekits? Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.