Skip to content

Instantly share code, notes, and snippets.

View vinaykumarhegde's full-sized avatar

Vinaykumar Hegde vinaykumarhegde

  • University of Southern California
  • Palo Alto, California
View GitHub Profile
@vinaykumarhegde
vinaykumarhegde / export_pose_graph.py
Created September 3, 2020 21:23 — forked from yfyf/export_pose_graph.py
Cartographer Pose Graph
#!/usr/bin/env python3
# Adapted from:
#
# https://gist.github.com/mjcarroll/f620ef8d88efc3a03711259d6fc9a578
#
# Original gist fixed to work with latest version of cartographer:
#
# [~/sensmetry/slam/cartographer:master]λ git describe --always
# bcd5486
@vinaykumarhegde
vinaykumarhegde / export_pose_graph.py
Created September 3, 2020 21:22 — forked from mjcarroll/export_pose_graph.py
Cartographer Pose Graph
#!/usr/bin/env python3
# sudo apt-get install protobuf-compiler
# roscd cartographer && mkdir py_export
# protoc --python_out ./py_export -I . `find . -iname '*.proto'`
import struct
import gzip
import cartographer.mapping
#!/usr/bin/env python
import cv2
from sys import argv, exit
import subprocess
def set_exposure(device,exposure):
'''
Sets the exposure values for Logitech C250 camera
@vinaykumarhegde
vinaykumarhegde / # opencv3 - 2016-07-05_21-22-56.txt
Created July 6, 2016 04:42
opencv3 (homebrew/science/opencv3) on Mac OS X 10.11.4 - Homebrew build logs
Homebrew build logs for homebrew/science/opencv3 on Mac OS X 10.11.4
Build date: 2016-07-05 21:22:56