This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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 |