Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Ran Cheng rancheng

🏠
Working from home
View GitHub Profile
@rancheng
rancheng / pose_upsample_interpolation.py
Created Feb 12, 2022
SE3 Pose Interpolation given timestamp
View pose_upsample_interpolation.py
'''
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 Feb 10, 2022
bag file to image files in tum dataset and realsense dataset
View bag2imdataset.py
#!/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
"""