Code Monkey home page Code Monkey logo

donkey_racing's People

Contributors

jwatte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

donkey_racing's Issues

Talk to teensy hat via Serial or I2C

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?

OpenCV - calibrate_camera functionality

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.