services:

    test_node:
        image: rapidposetriangulation_ros2d
        network_mode: "host"
        ipc: "host"
        runtime: nvidia
        privileged: true
        volumes:
            - ../../:/RapidPoseTriangulation/
            - ../../skelda/:/skelda/
            - /tmp/.X11-unix:/tmp/.X11-unix
            - /dev/shm:/dev/shm
        environment:
            - CAMID
            - DISPLAY
            - QT_X11_NO_MITSHM=1
            - "PYTHONUNBUFFERED=1"
        command: /bin/bash -i -c 'sleep infinity'

    estimator:
        image: rapidposetriangulation_ros2d
        network_mode: "host"
        ipc: "host"
        runtime: nvidia
        privileged: true
        volumes:
            - ../../:/RapidPoseTriangulation/
            - ../../skelda/:/skelda/
            - /tmp/.X11-unix:/tmp/.X11-unix
            - /dev/shm:/dev/shm
        environment:
            - CAMID
            - DISPLAY
            - QT_X11_NO_MITSHM=1
            - "PYTHONUNBUFFERED=1"
        command: /bin/bash -i -c 'export ROS_DOMAIN_ID=18 && ros2 run rpt2d_wrapper_cpp rpt2d_wrapper'
