`cmake g++ libboost-all-dev gnat gprbuild libaunit19-dev`
`cmake g++ libboost-all-dev gnat gprbuild libaunit18-dev`
`cmake boost-libs`
Unfortunately, Ubuntu 18.10 (Bionic Beaver) is not supported due
to outdated boost packages. Compiling boost is an alternative, but not covered in this README.
For the following make
calls, feel free to add -jX
(where X is the amount of CPU cores + 1)
for using multiple cores for compiling.
Also the Boost library is used in the backend and the webots controller.
`mkdir build`
`cd build`
`cmake ..`
`cd build`
`make`
`cd external`
`make`
`cd webots/controllers/controller`
`make`
Alternatively compile in webots directly.
`./backend.bin --help`
To add a new request write to the console:
`P<x> P<y> <k>`
where P<x>
is the source and P<y>
the destination pickup location and <k>
the amount of passengers.
<k>
is limited to 4.
For each cab run
`./main {webots_address} {webots_port} {backend_address} ({backend_port})`
Backend port is optional. If not set the default port is used.
For each robot node specify the port in controllerArgs.
Th simulation will only start if every robot has a connection with an external controller. If a robot is not needed for a test just leave the controllerArgs field empty.