Skip to content

Instantly share code, notes, and snippets.

@vim5818
vim5818 / bag_to_images.py
Created June 8, 2020 06:53 — forked from wngreene/bag_to_images.py
Extract images from a rosbag.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2016 Massachusetts Institute of Technology
"""Extract images from a rosbag.
"""
import os
import argparse
@vim5818
vim5818 / angle_type_conversion.cpp
Created July 10, 2020 07:44 — forked from LimHyungTae/angle_type_conversion.cpp
ROS quaternion to rotation matrix OR rotation matrix to roll-pitch-yaw OR roll-pitch-yaw to quaternion
#include <iostream>
#include <tf/tf.h>
int main(){
/**< Declaration of quaternion */
tf::Quaternion q;
q.setW(1);
q.setX(0);
q.setY(0);