Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Outline

GTSAM Docker Images

The official Docker images for GTSAM are maintained in the borglab/docker-images repository.

Available Images

The following images are available on Docker Hub, primarily under the borglab namespace:

Usage

Running GTSAM

To start an interactive shell in a container with GTSAM pre-installed:

docker run -it borglab/gtsam:latest

Using the Python Wrapper

The borglab/gtsam image typically includes Python bindings. To use them:

  1. Start the container:
    docker run -it borglab/gtsam:latest
  2. Launch Python:
    python3
  3. Import GTSAM:
    import gtsam
    print(gtsam.Pose3())

Building Images

To build these images locally or contribute changes, please refer to the borglab/docker-images repository. It contains the Dockerfiles and build scripts for all the images listed above.

Legacy Configuration

The following files in this directory are legacy artifacts and are no longer actively maintained:

  • Containerfile: Build instructions for a standalone GTSAM image (cloning from git and building from source).

  • compose.yaml: A Docker Compose wrapper used for configurable builds (via .env variables like GTSAM_WITH_TBB, GTSAM_BUILD_PYTHON) and standardized image tagging.

  • hub_push.sh: A utility script to iterate through configuration matrices and push multiple image variants to Docker Hub.

For official builds and the most up-to-date configurations, please refer to the borglab/docker-images repository.

TODO: Consider migrating the configurable build and matrix-pushing functionality from these legacy files into the docker-images repository to support more flexible local builds.

VNC Support (gtsam-vnc)

The gtsam-vnc image configuration is available locally in the gtsam-vnc subdirectory. This image extends the official borglab/gtsam image by adding a VNC server, allowing you to view GUI applications (like Matplotlib plots) running inside the container.

Building and Running VNC Image

  1. Navigate to the directory:

    cd gtsam-vnc
    
  2. Build the image:

    You can build it using Docker Compose or directly with Docker.

    # Example using docker build
    
    docker build -t gtsam-vnc .
    
  3. Run with Port Forwarding:

    Map port 5900 to access the VNC server.

    docker run -p 5900:5900 gtsam-vnc
    
  4. Connect:

    Use a VNC client to connect to localhost:5900.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.