Usage
To run this sprint you can use Gradle or Docker
Gradle
Run the following commands each on their own shell:
-
Run the WEnv and the BasicRobot
docker-compose -f basicrobotVirtual.yaml up
-
Run the indoorarea
gradlew indoorarea:run
-
Run the outdoorarea
gradlew outdoorarea:run
-
Run the parkmanagerservice
gradlew parkmanagerservice:run
Docker
First you have to create a docker image for each subproject:
cd indoorarea
docker build --rm -t indoorarea .
cd outdoorarea
docker build --rm -t outdoorarea .
cd parkmanagerservice
docker build --rm -t parkmanagerservice .
Then you can just run the docker compose file:
docker-compose -f automatedcarparking.yaml up
Indoorarea
To update the weight you have to insert an integer
:
> 10
Weight updated to 10
Outdoorarea
To update the sonar state you have to insert true
or false
:
> true
Sonar engaged: true
REST-API
To send commands throught the REST-API you can use:
-
A simple web browser
-
An API platform like Postman (you can import the postman collection)
-
A command line tool like curl, for example:
curl -X GET http://localhost:8080/client/reqenter {"code":1,"message":"The indoor area or trolley are engaged"}
To learn about the REST-API commands available in this sprint check out the documentation