GithubHelp home page GithubHelp logo

asiron / extract-and-sync Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 9 KB

Tool for extracting images from a ROSBAG and synchronizing them with a TF transform between two frames

Python 75.49% Shell 24.51%

extract-and-sync's Introduction

extract_and_sync.py

Copyright (C) 2017 - Maciej Żurad, University of Luxembourg

Tool for extracting images from a ROSBAG and syncing them with a given TF transform

Usage

If you want to specify both source and targe frame ids, run:

./sync_position_with_image.sh \
  -f source-frame-id \
  -t target-frame-id \
  -i ros-image-topic \
  -b /path/to/a/rosbag.bag \
  -o /path/to/output-dir

By default, the source frame id is /map and the target frame is DJI/gimbal_base/camera. If you want to have the gimbal transformation included in your TF tree, check out my dji_gimbal repository.

You can also output the transformation's orientation in Euler angles. If you wish to do so, pass in -e flag.

The output directory will have the following structure:

/path/to/output-dir
|   image_00000.png
|   image_00001.png
|   ...
|   pos_00000.txt
|   pos_00001.txt
|   ...
└───numpy
    |   poses.npy

To print help, run:

./sync_position_with_image.sh -h

Required Python packages

numpy
tqdm
tf2_ros
cv2
tf_conversions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.