jwatte / donkey_racing Goto Github PK
View Code? Open in Web Editor NEWTools to help train for the Donkey Car machine learning racing
License: MIT License
Tools to help train for the Donkey Car machine learning racing
License: MIT License
Hi,
I'm trying to run the code in 'calibrate_camera'
When I do so, I am getting the following error on my 'stock' donkey car install:
(dk) pi@d2:~/donkey_racing/calibrate_camera $ python capture_images.py
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvWaitKey, file /home/pi/opencv-3.3.0/modules/highgui/src/window.cpp, line 676
Traceback (most recent call last):
File "capture_images.py", line 9, in <module>
cv2.waitKey(1)
cv2.error: /home/pi/opencv-3.3.0/modules/highgui/src/window.cpp:676: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvWaitKey
I ran the install.sh script on the donkey's raspberry pi, but am still getting the error.
In order to use your calibration code, do I need to recompile OpenCV on the donkeycar pi to fix this error? or am I doing something else wrong/neglected a step?
https://github.com/jwatte/donkey_racing/blob/master/teensy_hat_firmware/teensy_hat_firmware.ino
Your documents and some of the code comments list being able to send commands from the Pi to the Teensy to get feedback, to start driving, or to shut off the hat's power.
I've tried configuring the Pi's Serial port per these instructions and connecting to the /dev/ttyS0 port (Pi 3) with minicom, but I get no output, and no reaction.
If I am reading the code correctly, sending a "Q" should return some status, including battery voltage?
Can you give some examples on how to talk to the Teensy, from the Pi via the Serial or I2C port?
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.