Difference between revisions of "Self Driving RC Car/2020"
Jump to navigation
Jump to search
Line 166: | Line 166: | ||
the results to your PI. | the results to your PI. | ||
− | You need to configure your | + | == Compile == |
+ | <source lang='bash'> | ||
+ | scripts/install.sh | ||
+ | </source> | ||
+ | There is a usage for this script if you call it with <nowiki>scripts/install.sh -h</nowiki>. | ||
+ | Essentially this is doing a <nowiki>mvn clean install</nowiki>. The clean part is important to get the platform specific native openCV Library integrated into the server code. | ||
+ | |||
+ | You need to configure your PI's host address and user in a file ~/dukes/dukes.ini in the remotecar section. | ||
+ | Also you need to check your GPIO pins and the servo settings for your car for LED,Engine and Wheels. You might want to try these things out before using the software the first time. | ||
== Example Configuration == | == Example Configuration == | ||
<source lang='bash'> | <source lang='bash'> | ||
Line 216: | Line 224: | ||
* <nowiki>deploy -s</nowiki> will send the jar to your PI using rsync and start it | * <nowiki>deploy -s</nowiki> will send the jar to your PI using rsync and start it | ||
* <nowiki>deploy -a</nowiki> will create an autostart configuration that restarts the client on reboot see https://github.com/rc-dukes/dukes/issues/26 | * <nowiki>deploy -a</nowiki> will create an autostart configuration that restarts the client on reboot see https://github.com/rc-dukes/dukes/issues/26 | ||
+ | |||
+ | == Running the server == | ||
+ | - start 'CarServer' in module 'rc-server' in IDE | ||
+ | - point your browser to http://localhost:8080 | ||
= First Experiments = | = First Experiments = |