GitXplorerGitXplorer
k

pySLAM-D

public
5 stars
0 forks
1 issues

Commits

List of commits on branch main.
Verified
ae52eb5dc1c99fb38a958aeaac2965802b3a3804

Update README.md

kkylesayrs committed 8 months ago
Verified
c398202fd0b120ce889eaa57b8b01a1027306cb2

Update README.md

kkylesayrs committed 8 months ago
Verified
9f8f95e9994851aff5521608cd0afa417c6a9d0a

Update README.md

kkylesayrs committed 8 months ago
Verified
54e9a04b0e56d72373073356abfc38abd1fe7624

Update README.md

kkylesayrs committed 8 months ago
Unverified
209a0729a66d49c23e83beed5303462446fb7f6b

decrease size of example image

kkylesayrs committed 8 months ago
Unverified
75b020c135ef7e429bf6eb5ee695125cc045b89b

better explaination of attitude factors

kkylesayrs committed 8 months ago

README

The README file for this repository.

PySLAM-D

PySLAM-D is a UAV-tailored SLAM stitching inspired by pySLAM-D which was developed in partnership with GreenSight Agronomics. This implementation significantly increases the robustness and usability of the initial design, includes functional documentation, and implements additional matching options and parameters.

Example Stitching

Technical explaination

The Pyslam-D live stitching algorithm works by generating a factor graph whose nodes are each camera’s pose in georeferenced 3D space and whose edges (factors) are the relative pose transformations from one node to another. During the optimization step, the nodes of the factor graph are optimized for spatial consistency, meaning that even noisy sensor measurements can still reinforce one another to produce a consistent estimation of camera poses.

The first factor type, odometry factors, are determined by performing visual odometry between neighboring images and using point cloud registration to estimate the pose transformation between the two images. These factors can be computationally expensive, but help neighboring images “mesh” with each other independently of instrument noise.

The second factor type, gps factors, help to determine the camera's absolute position. These factors are often noisy, but are valuable for compensating for bad odometry estimates. The error produced by GPS, unlike relative odometry error, is independent of flight duration, meaning that these factors prevent images from drifting away from their true, georeferenced positions over time.

The third factor type, attitude factors, incorporate attitude measurements from the drone when the picture was taken. These factors improve estimates of image rotation and can be used as a prior for the odometry area of overlap, making odometry matching faster and increasing robustness to low overlap and high attitude datasets.

One known bug is that this implementation projects images directly downwards from the camera position. Future work will project the image with respect to the orientation of the camera, therefore better supporting non-gimbaled payloads.

Example Stitching

Installation

  1. Install pyslamd
git clone https://github.com/kylesayrs/pySLAM-D
python3 -m pip install -e .
  1. Install GTSAM
  2. Install TEASER-plusplus

Use cmake .. -DENABLE_DIAGNOSTIC_PRINT=OFF to turn off debug messages for teaser

Usage

Edit src/pyslamd/Settings.py to adjust stitching settings. In the future these settings will be documented as script arguments

pyslamd.stitch path/to/image/directory

Images must be geotagged with gps coordinates in order to georeference frame poses within a real world coordinate frame.