Last active
April 25, 2019 03:29
-
-
Save tawnkramer/11a8aef4d4820a08841a22c57e7ae603 to your computer and use it in GitHub Desktop.
Intel RealSense T265 Path follower on Donkey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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