Skip to content

Instantly share code, notes, and snippets.

View hdamron17's full-sized avatar

Hunter Damron hdamron17

  • Epic Systems
  • Madison, WI
View GitHub Profile
@hdamron17
hdamron17 / argo_model_align.py
Last active July 13, 2020 20:27
Argoverse-Colmap alignment
DB = "datasets/colmap/argoverse/sample/abbrev30-c6911883-1843-3727-8eaa-41dc8cda8993/database.db"
ARGO_ROOT = "datasets/argoverse/argoverse-tracking/sample/c6911883-1843-3727-8eaa-41dc8cda8993"
LIDAR_STAMP = 315978421520424000 # This lidar location is the model origin (must match lidar PLY to compare against)
from argoverse.data_loading.pose_loader import get_city_SE3_egovehicle_at_sensor_t
import re
from pathlib import Path
import sqlite3
db = sqlite3.connect(DB)
@hdamron17
hdamron17 / startvnc-client.sh
Last active March 31, 2020 01:35
VNC Remote Desktop
#! /bin/sh -e
# Located anywhere on client
# Replace "user@server" appropriately
ssh -L 5900:127.0.0.1:5900 -C -t user@server ./startvnc-server.sh
@hdamron17
hdamron17 / camchain_to_opencv.py
Created July 17, 2019 17:18
Convert kalibr to opencv calibration format
#!/usr/bin/python
import cv2
import numpy as np
import yaml
from os.path import join
from collections import OrderedDict
def load_cam(cam_dict):
intrinsics = cam_dict["intrinsics"]
@hdamron17
hdamron17 / LectureNotes.md
Created March 21, 2019 00:48
Lecture Notes on CSCE 212: Intro to System Architecture

CSCE 212H: Introduction to Computer Architecture

2018-01-18

  • Number representation
    • Unsigned: represented in traditional binary
      • On n-bit architecture, (2^n) total
      • (Umax=2^n-1) (minus one because of zero)
      • All operations are technically modulo (2^n)
  • Ints are not integers!
@hdamron17
hdamron17 / afrl-uboat-setup.md
Last active August 29, 2019 19:05
Instructions for setting up Raspberry Pi uboats for AFRL research project

Uboat Software Installation Guide

Goal

This guide is meant to aid in installation of Ubuntu and ROS for the Raspberry Pi Uboats

Instructions

  • Clone image of Ubuntu Mate 16.04; uncompress with gz and copy to disk using dd