From 0d5907986e48a83778557f6b267a156e84104d86 Mon Sep 17 00:00:00 2001 From: tpariney Date: Thu, 25 Sep 2025 09:42:47 +0200 Subject: [PATCH] Add driver module --- .gitignore | 1 + driver/pom.xml | 122 ++++++++++++++++++ .../fr/ufrst/m1info/gl/tparineymates/App.java | 24 ++++ pom.xml | 1 + 4 files changed, 148 insertions(+) create mode 100644 driver/pom.xml create mode 100644 driver/src/main/java/fr/ufrst/m1info/gl/tparineymates/App.java diff --git a/.gitignore b/.gitignore index e5bf7e0..105e4a6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ battery/target/ maptools/target/ roadBook/target/ robot/target/ +driver/target/ diff --git a/driver/pom.xml b/driver/pom.xml new file mode 100644 index 0000000..290bcc3 --- /dev/null +++ b/driver/pom.xml @@ -0,0 +1,122 @@ + + + 4.0.0 + + robot-modules + fr.ufrst.m1info.gl.tparineymates + 1.0-SNAPSHOT + + + fr.ufrst.m1info.gl.tparineymates + driver + 1.0-SNAPSHOT + + driver + + http://www.example.com + + + UTF-8 + 1.8 + 1.8 + + + + + junit + junit + 4.11 + test + + + fr.ufrst.m1info.gl.tparineymates + maptools + 1.0-SNAPSHOT + compile + + + fr.ufrst.m1info.gl.tparineymates + robot + 1.0-SNAPSHOT + compile + + + + + + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + maven-site-plugin + 3.7.1 + + + maven-project-info-reports-plugin + 3.0.0 + + + org.apache.maven.plugins + maven-shade-plugin + 3.6.0 + + + package + + shade + + + + + + fr.ufrst.m1info.gl.tparineymates.App + + + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.0 + + + + fr.ufrst.m1info.gl.tparineymates.App + + + + + + + + diff --git a/driver/src/main/java/fr/ufrst/m1info/gl/tparineymates/App.java b/driver/src/main/java/fr/ufrst/m1info/gl/tparineymates/App.java new file mode 100644 index 0000000..7180116 --- /dev/null +++ b/driver/src/main/java/fr/ufrst/m1info/gl/tparineymates/App.java @@ -0,0 +1,24 @@ +package fr.ufrst.m1info.gl.tparineymates; + +import java.util.Random; + +/** + * Hello world! + * + */ +public class App { + public static void main( String[] args ) + { + try { + Robot robot = new Robot(); + robot.land(new Coordinates(3, 0), new LandSensor(new Random())); + System.out.println("position du robot : (" + robot.getXposition() + + ", " + robot.getYposition() + ")"); + robot.moveForward(); + System.out.println("position du robot : (" + robot.getXposition() + + ", " + robot.getYposition() + ")"); + } catch (UnlandedRobotException | InterruptedException e) { + e.printStackTrace(); + } + } +} diff --git a/pom.xml b/pom.xml index bc3b721..9936f82 100644 --- a/pom.xml +++ b/pom.xml @@ -19,5 +19,6 @@ battery maptools roadBook + driver -- GitLab