Exports lcm log files to Matlab .mat and Python pickle .pkl files.
Project description
LCM Log Export Tool
lcm-export
is a tool for converting log files generated by lcm-logger
to .mat or
.pkl files importable to Matlab and Python scripts.
lcm-export
is an updated version of the lcm-log2smat
module by G. Troni.
This module reuses some code and is heavily based on the approach taken in that module.
Usage
The installation process below will install a script named lcm-export
to your binaries folder.
To use, run lcm-export [options] file
.
file
is the relative path to your lcm log file, and accepts glob references (e.g. use lcmlog_* to generate .mat files for all files beginning lcmlog_)
LCM-Types
This utility requires the python versions of your lcm types to read the log (those generated by lcm-gen
).
Direct it to the directory containing those files with the --lcmtypes PATH
option (it will also search all subdirectories).
Other options:
-p
to generate Python .pkl files-m
to generate Matlab .mat files (default)
Installation
Requirements
Requires Python 3.6+ and lcm to run, and pip for installation.
Installation
- Clone this repo
- cd into the root directory
- Run
pip3 install .
Uninstallation
Uninstall with pip3 uninstall lcm-export
License
LCM Log Export Tool is based on code written by G. Troni in their lcm-log2smat
module,
which itself is based on a script in libbot2.
(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.
(LCM Log Export Tool)
LCM Log Export Tool 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 Log Export Tool 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 Log Export Tool. If not, see http://www.gnu.org/licenses/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file lcm-export-1.0.1.tar.gz
.
File metadata
- Download URL: lcm-export-1.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9b2b3cccb22777fbf671c161bece586d0ffbd89ec6b128072f6575d9ab0c53b5
|
|
MD5 |
9aa2c82babf58ae58d6139ad4253c6ad
|
|
BLAKE2b-256 |
0ab07a3a5ed6f067cd7a50bb7145c1208d32aafd09803f48fbb3801d30ddaae9
|