-
Clone this repo and open it in VS Code.
-
Install the extensions
ms-vscode-remote.remote-containersandms-azuretools.vscode-docker. -
Press
F1orCTRL + SHIFT + Pand enterRemote-Containers: Reopen Folder in Container -
This creates a docker container based on ghcr.io/naturerobots/hsos-sep-plant-map-2022:main, installs all necessary VS Code extensions, builds the workspace a first time, sets up Intellisense, installs the pre-commit hooks and opens it in VS Code.
Use
pre-commit run -ain the workspace folder to check the code style before commiting. In the Docker image the pre-commit checks are installed in the git so a commit is just possible if the checks succeed. -
default user:
dockerwith password:docker
Login to the GitHub Container Docker Registry with docker login ghrc.io
If you have enabled 2-factor authentication, create an access token, see https://github.com/settings/tokens
Use your generated token and the ghcr.io container registry as follows:
docker login ghcr.io -u USERNAME --password YOUR_TOKENor
export CR_PAT=YOUR_TOKEN
echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdinTry to pull the docker image manually: docker pull ghcr.io/naturerobots/hsos-sep-plant-map-2022:latest
This repo has a pre-commit check that runs in CI. You can use this locally and set it up to run automatically before you commit something. In the devcontainer it is already pre-installed. To install, use pip:
pip3 install --user pre-commitTo run over all the files in the repo manually:
pre-commit run -aTo run pre-commit automatically before committing in the local repo, install the git hooks (run it in the repo folder):
pre-commit installIn order to provide you spatial, temporal and semantical information about gardens, we host a public SEEREP instance.
This instance is available under https://seerep.naturerobots.de and can be queried using a gRPC interface in
combination with Protobuf messages. All required protofiles (with inline documentation) are located in the the folder
seerep-protos.
If you like to get an overview of the API before using it in your code, we recomment the free tool Kreya.
Just add a Kreya project, import the protos from the seerep-protos directory and add the endpoint https://seerep.naturerobots.de
in the project settings and you are ready to try the API.