Coder Social home page Coder Social logo

1219883141 / lcm-log2smat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gtroni/lcm-log2smat

0.0 0.0 0.0 23 KB

lcm-log2smat is a python utility to convert LCM log files to Matlab (.mat) or Python Pickle (.pkl) files.

License: GNU Lesser General Public License v3.0

Makefile 5.18% Python 44.09% CMake 50.74%

lcm-log2smat's Introduction

##lcm-log2smat

lcm-log2smat is a python utility to convert Lightweight Communications and Marshalling (LCM) logfiles to Matlab (.mat) or Python Pickle (.pkl) files.

The script converts a LCM logfile to a "structured" format that is easier to work with external tools such as Matlab or Python. The set of messages on a given channel is saved as a structure preserving the original LCM message structure. It works with nested messages, it is flexible and independent to the LCM message type definitions and it can be used as a script or imported as a Python module.

###Requirements

lcm-log2smat has been tested only on the GNU/Linux operating systems. But it should work in other operating systems running Python.

The requirements are:

###Install

lcm-log2smat adheres to the Pods core policy, and makes use of the Pods build tools. For more information about Pods, see: https://sourceforge.net/p/pods/

You can install lcm-log2smat to your system by running:

$ sudo make BUILD_PREFIX=/usr/local

For a local installation, you can build lcm-log2smat inside the source directory. To do this, run:

$ make

In this case, the executables, headers, libraries, etc. will be installed according to the Pods core policy. If no other "build" directory is found, it will default to: lcm-log2smat/build/

###Uninstall

If compiled and installed to your system, run:

$ sudo make clean

Note: this can only be done from the lcm-log2smat source that was used for installation

###Examples

To convert a LCM log file (data.lcm) to a Matlab file (data.mat)

$ lcm-log2smat data.lcm -o data.mat

To convert a LCM log file (data.lcm) to Python Pickle file (data.pkd)

$ lcm-log2smat data.lcm -k  -o data.pkd

###Author

lcm-log2smat is based on libbot2 script bot-log2mat.

Modified and extended by Giancarlo.Troni "at" GMail

###Licenses

(libbot2)

libbot2 is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

libbot2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

(lcm-log2smat)

lcm-log2smat is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

lcm-log2smat is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with lcm-log2smat. If not, see http://www.gnu.org/licenses/.

lcm-log2smat's People

Contributors

gtroni 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.