Coder Social home page Coder Social logo

ecce's Introduction

ECCE: Extrinsic camera calibration example

Quickstart

To run this code, install the following dependencies:

Then follow a typical CMake workflow:

mkdir build && cd build
cmake ..
make

This builds any .cpp files in examples/ with static linkage to the library code in ecce/. They can then be run with no arguments. camera_to_vehicle_calibration saves several text files that can be used for analysis and visualization.

Plotting and graphics

Various python scripts are included in the python/ directory. Package dependencies can be installed (preferably into a dedicated environment) via pip install -r requirements.txt.

Note: file names written from camera_to_vehicle_calibration are hard-coded in scripts (TODO)

ecce's People

Contributors

andrewadare avatar

Watchers

 avatar

ecce's Issues

Refactoring plan

If I were to refactor this project, I'd ditch the *Collection classes and instead define a CameraToVehicleGraph as the central data structure:

  • Use int (or, I guess unsigned int) identifiers to key on objects instead of strings.
  • Define a Pose3Node struct with id, pose, name.
  • unordered_map<int, Pose3Node>: one for tags, one for cams. Key on node.id.
  • Store intrinsics (or possibly a list of them) as members for camera construction.
  • CameraToVehicleGraph would have getCameraNode(i), getTagNode(j)
  • Define Side and TagZone enums.
  • Define a CameraType enum for cameras, onboard vs external.
  • Need a way to do something like getCameraId(CameraType, Side, index=-1).
    • Try lookup by defining a composite object as the key. This could be a struct or a tuple called CameraAttributes. Then do map<CameraAttributes, int> cameraLookup. Could also specialize a hash for CameraAttributes and use an unordered map. The latter would be a small internal optimization that could be implemented later without affecting the interfaces.
  • Same story for getTagId(Side, TagZone).
  • Define convenient interfaces to get camera/tag poses, names, etc. using the get id functions internally.
  • pointMap would key on a pair<int, int>
  • To iterate through graph:
    • Implement graph.edges(), which could be overloaded to query one side or all edges.
    • Make enums above iterable by defining a final NONE entry and checking for it.
  • Don't use gtsam::Symbol class anywhere on the frontend. Just use the int keys.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.