Skip to content

Instantly share code, notes, and snippets.

@tawnkramer
Last active April 25, 2019 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tawnkramer/11a8aef4d4820a08841a22c57e7ae603 to your computer and use it in GitHub Desktop.
Save tawnkramer/11a8aef4d4820a08841a22c57e7ae603 to your computer and use it in GitHub Desktop.
Intel RealSense T265 Path follower on Donkey
Setup on the pi:
git clone https://github.com/tawnkramer/donkey donkey_tkramer
cd donkey_tkramer
git checkout dev
pip3 uninstall donkeycar
pip3 install .[pi]
donkey createcar --path ~/follow --template path_follower
cd ~/follow
python3 manage.py drive
I had to build the librealsense library from source.
Check this repo for instructions: https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_raspbian.md
This assumes joystick controls. Launch a browser and point it at http://<your pi>:8887. when you drive, this will draw a red line for the path, a greed circle for the robot location. Mark a nice starting spot for your robot. Be sure to put it right back there each time you start. Drive the car in some kind of loop. You see the red line show the path. Hit X on the PS3 controls to save the path. Shutdown and make sure it wrote the path file. Now each restart it will auto load that file. Put the bot back at the start spot. Then hit select twice to go to pilot mode. This will start driving on the path.
check the bottom of config.py for some settings to tweak. PID values, map offsets and scale. things like that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment