GithubHelp home page GithubHelp logo

alalagong / bag2mat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neufieldrobotics/bag2mat

0.0 1.0 0.0 41 KB

A ros package to extract and convert data from rosbag files to Matlab mat files

License: MIT License

CMake 33.66% Python 66.34%

bag2mat's Introduction

bagconvert

  • Takes a rosbag file and converts it to a matlab mat file based on settings specified in a Dictionary and a yaml config file.

    • Dictonary: The dicionary file specified which variables from each message type should be moved to the matlab array. eg sensor_msgs/NavSatFix: t.to_sec(), m.latitude, m.longitude, m.altitude See config/bag2mat_dic.yaml for full example.
    • Configuration: This file specified which topic names should be transferred to matlab and under which variable name. A list of -[topic name, message type, name for variable in matfile] See config/bag2mat_config.yaml for full example.
  • Currently needs the following packages:

    • rosbag
    • roslib
    • scipy
  • Put this repo in the src folder of ros workspace and run

    catkin_make
    source devel/setup.bash
    usage: bag2matpy [-h] [-c CONFIG_FILE] [-d DICTIONARY] [-i input_bagfile] 
    
    
    Complete List of Arguments:
    
    -h, --help            show this help message and exit
    -i INPUT_BAGFILE, --input_bagfile INPUT_BAGFILE
                          Input rosbag file to input
    -o OUTPUT_DIR, --output_dir OUTPUT_DIR
                          Output dir for matfile
    -c CONFIG_FILE, --config_file CONFIG_FILE
                          Yaml file which specifies topic names to convert
    -d DICTIONARY, --dictionary DICTIONARY
                          Dictionary file which specifies how to read the topic
    -s, --subtract_start_time
                          Boolean flag to specify whether to include offset_time obtained by subtracting bag start_time from all timestamps
    

bag2mat's People

Contributors

mithundiddi avatar vik748 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.