Setup the system - philipdexter/robopet GitHub Wiki
Installing Java and Eclipse
- Download and install JDK 8 for Java SE if you don't have it already. You can download it from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Choose the jdk-8u151-windows-x64.exe.
- Open the site https://sourceforge.net/p/lejos/wiki/Home/.
- Go to the Windows installation page and do everything until you reach the part with the SD card, that is leJos installation on the Robot and it has been done.
- Download and unpack Eclipse. You can fetch it from this link. http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/1a/eclipse-jee-oxygen-1a-win32-x86_64.zip
- Install leJos Eclipse plugin by opening Help-> Eclipse marketplace. In the pop up window write Lejos and then install the one called Lejos for EV3.
- That's it!
Configuring the Git Repo
- Our repo is remotely stored on GitHub. You need to create an account on GitHub first, if you already do not have it. Our repo can be found here: https://github.com/philipdexter/robopet
- To be able to push to the repo, you need to send your Github username to Philip.
- To fetch the repo you have 2 options:
- Open the repo page in the browser, there press button "Clone or download" and then copy the provided URL (
https://github.com/philipdexter/robopet.git
). Open Eclipse, go to File->Import and in the new window choose Git -> Projects from Git -> Clone URI. In the next screen paste the copied URL into the URI field. Then press four times Next button and in the last screen press Finish. - Download and install GIT together with the GIT shell, open the GIT shell, position yourself in the directory where you want to have the repo stored and run the following command:
git clone https://github.com/philipdexter/robopet.git
Next step is to open Eclipse, go to File->Import and in the new window choose General -> Existing projects into workspace, press Next, in the new window press Browse next to the Select root directory option, locate the folder where you unpacked the ZIP, select it and press OK. If you see the himom project and its checkbox is checked then simply press Finish.
- Open the repo page in the browser, there press button "Clone or download" and then copy the provided URL (
Doing GIT actions from Eclipse
Eclipse comes with EGIT plugin for this purpose, to see all the available actions press the right click mouse button on the project and go to Team. If you would like to do commit, push and pull via keyboard shortcuts instead of mouse clicks, follow this guide for setting up the shortcuts: https://stackoverflow.com/questions/9674585/eclipse-git-keyboard-shortcut-how-to-use
Useful links
*Link to the API webpage: http://www.lejos.org/ev3/docs/
- Lego Mindstorms EV3 help: https://ev3-help-online.api.education.lego.com/Retail/en-us/page.html?Path=editor%2findex.html Click on General and then read about the sensors!
- API documentation for Java: http://www.lejos.org/ev3/docs/lejos/hardware/sensor/EV3IRSensor.html