You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.5 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # dora-kit-car control
  2. ## Introduce
  3. Dora Kit Car is a DORA node for controlling a differential-drive mobile robot to move forward/backward and turn left/right. Developed in Rust with Python API support.
  4. ## Highlights
  5. - Compatible with the ROS geometry_msgs/Twist.msg format, utilizing only:
  6. - linear.x (positive: forward movement, negative: backward movement)
  7. - angular.z (positive: left turn, negative: right turn)
  8. ## Raw Message Definition
  9. Accepts an array of six f64's
  10. - six f64 array [x, y, z, rx, ry, rz] only used x, rz
  11. see [https://docs.ros.org/en/noetic/api/geometry_msgs/html/msg/Twist.html](https://docs.ros.org/en/noetic/api/geometry_msgs/html/msg/Twist.html)
  12. ## Environment
  13. Adds an environment variable `SERIAL_PORT` to specify the serial port for the car device, with `/dev/ttyUSB0` as the default value
  14. ## Demo Video
  15. [![Dora Kit Car Video](https://yt3.ggpht.com/92FGXQL59VsiXim13EJQek4IB7CRI-9SjmW3LhH8PFY16oBXqKUvkKhg5UdzLiGCOmoSuTvdpQxIuw=s640-rw-nd-v1)](https://youtu.be/B7zGHtRUZSo)
  16. ## Getting Started
  17. ```yaml
  18. nodes:
  19. - id: keyboard-listener # Run on car
  20. build: pip install dora-keyboard
  21. path: dora-keyboard
  22. inputs:
  23. tick: dora/timer/millis/10
  24. outputs:
  25. - twist # for example [2.0,0.0,0.0,0.0,0.0,1.0]
  26. - id: car
  27. build: pip install dora-kit-car
  28. path: dora-kit-car
  29. inputs:
  30. keyboard: keyboard-listener/twist
  31. env:
  32. SERIAL_PORT: /dev/ttyUSB0
  33. ```
  34. ## License
  35. The MIT License (MIT)
  36. Copyright (c) 2024-present, Leon