(With many thanks to Ernesto Casblanca for his help creating the Dockerfile and these instructions!)
These instructions may require sudo access.
If you go the Docker route, you only need to install docker as a dependency.
Then you can build the image and run the container with the following commands:
docker build -t impact .The first time it may take a while.
Then you can run the container with the following command:
docker run --rm -it --name impact impactThis will open a shell inside the container. You can then run the examples with the following commands:
cd /app/examples
cd <specific example>
makeFurthermore, it is possible to mount a volume to the container to add more examples and run them in the container.
For example, if you create a folder my-examples in your home directory, you can mount it to the container with the following command:
docker run --rm -it --name impact -v ~/my-examples:/app/examples impactAnd then you can run the examples with the following commands:
cd /app/examples
cd <specific example>
makeAll files will be shared between the container and your host machine, so you can find the results in the my-examples folder on your host machine.
Caution
Once the container is stopped, all the files created inside the container are lost. If you want to keep the results, you need to copy them to your host machine or mount a volume to the container.
The results are stored in the in the same folder the example is located in.
To copy them to your host machine, you can use use a volume or the docker cp command to copy them to your host machine.
docker cp impact:/app/examples/<specific example>/<result file> .
# e.g.
# docker cp impact:/app/examples/ex_2Drobot-R-U/fig.png .