Giter Club home page Giter Club logo

bag_to_image's Introduction

bag_to_image

Extract images and timestamps from a rosbag file.

Author: David Zuñiga-Noël

License: GPLv3

1. Dependencies

  • CMake (3.5.1-1ubuntu1)

    sudo apt install cmake
    
  • ROS (Kinetic Kame)

    See ROS installation.

  • Gflags (2.1.2-3)

    sudo apt install libgflags-dev
    
  • libpng (1.2.54-1ubuntu1.1)

    sudo apt install libpng-dev
    

2. Build

Once all dependencies are installed, proceed to build the source code with the automated build script provided. Simply run the following commands:

git clone https://github.com/dzunigan/bag_to_image.git
cd bag_to_image
bash build.sh

The compiled executable should be inside the bin directory.

3. Data Format

The input is a rosbag file and the topic where the images were published. The output is the sequence of images, compressed in PNG format and a CSV file with correspoinding timestamps in nanoseconds.

4. Usage

The bag_to_image tool can invoked as follows:

bag_to_image [options] <rosbag> <topic>

where the available options are:

  • --output_path=desired_path: to set the output root directory

  • --images_dir=desired_dir: to set the images directory name (inside output directory)

  • --timestamps_file=desired_file: to set the output timestamps filename (inside output directory)

  • --compression_level=compression_level: to set the PNG compression level (between 0-9)

  • --show_images: to preview the images during extraction

bag_to_image's People

Contributors

dzunigan avatar

Watchers

 avatar

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.