|
1 | 1 | # ev3dev-lang-java /examples |
2 | 2 |
|
3 | | -This repository store a set of examples ready to use with the |
| 3 | +This repository store a set of examples ready to use with the |
4 | 4 | ev3dev-lang-java libraries. |
5 | 5 |
|
| 6 | +## Checking it out |
| 7 | + |
| 8 | +Before proceeding further, you need to change the brick connection parameters |
| 9 | +in the `config.gradle` file in the main directory. |
| 10 | + |
| 11 | +You can build the project and upload all programs with their dependencies with these commands: |
| 12 | +```sh |
| 13 | +./gradlew uploadGradleLibraries |
| 14 | +./gradlew deploy |
| 15 | +``` |
| 16 | + |
| 17 | +You can then run them from the ev3dev menu in the `examples` subdirectory. |
| 18 | + |
| 19 | +Alternatively, you can also work only with one project at a time: |
| 20 | +```sh |
| 21 | +./gradlew :opencv:deploy # only upload 'opencv' project |
| 22 | +./gradlew :opencv:run # only run already uploaded build of 'opencv' project |
| 23 | +./gradlew :opencv:deployRun # only upload and run 'opencv' project |
| 24 | +``` |
| 25 | + |
| 26 | +To change the class to be run in some example project, modify its `config.gradle` file. |
| 27 | +If you run want to run the program from ev3dev menu, you will have to reupload it. |
| 28 | + |
| 29 | +To remove all samples from the brick, just run: |
| 30 | +```sh |
| 31 | +./gradlew undeploy |
| 32 | +``` |
| 33 | + |
| 34 | +## Contents |
| 35 | + |
6 | 36 | Take a look the following examples to discover some features included with this Java project. |
7 | 37 |
|
8 | 38 | **EV3Dev-lang-Java:** |
@@ -68,19 +98,19 @@ Take a look the following examples to discover some features included with this |
68 | 98 |
|
69 | 99 | - lejos.robotics.navigation |
70 | 100 | - [PilotConfig](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/pilot/PilotConfig.java) |
71 | | -- [PilotConfig2](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/pilot/PilotConfig2.java) |
72 | | -- [DifferentialPilotStopTest](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/pilot/DifferentialPilotStopTest.java) |
73 | | -- [DifferentialPilotTest1](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/pilot/DifferentialPilotTest1.java) |
74 | | -- [DifferentialPilotTest9](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/pilot/DifferentialPilotTest9.java) |
75 | | -- [MoveControllerTest1](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/MoveControllerTest1.java) |
76 | | -- [MoveControllerTest2](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/MoveControllerTest2.java) |
77 | | -- [NavigatorTest1](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/NavigatorTest1.java) |
78 | | -- [NavigatorTest2](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/NavigatorTest2.java) |
79 | | -- [NavigatorTest3](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/NavigatorTest3.java) |
80 | | -- [NavigatorTest4](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/NavigatorTest4.java) |
| 101 | +- [PilotConfig2](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/pilot/PilotConfig2.java) |
| 102 | +- [DifferentialPilotStopTest](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/pilot/DifferentialPilotStopTest.java) |
| 103 | +- [DifferentialPilotTest1](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/pilot/DifferentialPilotTest1.java) |
| 104 | +- [DifferentialPilotTest9](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/pilot/DifferentialPilotTest9.java) |
| 105 | +- [MoveControllerTest1](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/MoveControllerTest1.java) |
| 106 | +- [MoveControllerTest2](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/MoveControllerTest2.java) |
| 107 | +- [NavigatorTest1](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/NavigatorTest1.java) |
| 108 | +- [NavigatorTest2](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/NavigatorTest2.java) |
| 109 | +- [NavigatorTest3](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/NavigatorTest3.java) |
| 110 | +- [NavigatorTest4](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/navigator/NavigatorTest4.java) |
81 | 111 | - lejos.robotics.objectdetection |
82 | | -- [FeatureAvoider](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/feature/FeatureAvoider.java) |
83 | | -- [FeatureAvoider2](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/feature/FeatureAvoider2.java) |
84 | | -- [FeatureAvoider3](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/feature/FeatureAvoider3.java) |
| 112 | +- [FeatureAvoider](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/feature/FeatureAvoider.java) |
| 113 | +- [FeatureAvoider2](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/feature/FeatureAvoider2.java) |
| 114 | +- [FeatureAvoider3](https://github.com/ev3dev-lang-java/examples/blob/develop/ev3dev-lang-java/src/main/java/lejos/navigation/feature/FeatureAvoider3.java) |
85 | 115 |
|
86 | 116 |
|
0 commit comments