Skip to content

Instantly share code, notes, and snippets.

View rancheng's full-sized avatar
🏠
Working from home

Ran Cheng rancheng

🏠
Working from home
View GitHub Profile
@rancheng
rancheng / pose_upsample_interpolation.py
Created February 12, 2022 07:49
SE3 Pose Interpolation given timestamp
'''
Created: 2022/02/11
Maintainer: Ran Cheng <ran.cheng2@mail.mcgill.ca>
LICENSE: MIT
'''
import transformations as tfs
import numpy as np
import argparse
import bisect
@rancheng
rancheng / bag2imdataset.py
Created February 10, 2022 03:54
bag file to image files in tum dataset and realsense dataset
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2021 ran.cheng2@mail.mcgill.ca
"""Extract images from a rosbag and synchronize the sequences
Please run this script with /usr/bin/python2.7 instead of python3
and don't forget to source the ros environment: source /opt/ros/melodic/setup.bash
"""