Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i combine two lcmlog to one lcmlog? #260

Open
DinnerHowe opened this issue Oct 31, 2018 · 3 comments
Open

how can i combine two lcmlog to one lcmlog? #260

DinnerHowe opened this issue Oct 31, 2018 · 3 comments

Comments

@DinnerHowe
Copy link

hi, all
I'm new to lcm, and I deal with ROS, before I come here.
in ROS there is an application which could combine two ros bag into one and also has an application could split a ros bag into two.
thus, i wandering if there an application which could do same work for me

best regard.
howe

@venabled
Copy link
Contributor

Howe,

I'd try cross posting this to the user's group at https://groups.google.com/forum/#!forum/lcm-users , since this isn't necessarily an issue with the codebase.

To not leave you hanging, there's no built in tool with LCM to merge/split logs. What I've done is write a python script that pulls in all the LCM log headers from multiple logs into a pandas dataframe, and from there you can sort by however you want (usually by log timestamp), and then sequentially go through each event and copy them into a new logfile.

@venabled
Copy link
Contributor

Here's a Python module that implements that kind of workflow:

https://github.com/venabled/lcmtools/blob/master/lcmlog.py

@DinnerHowe
Copy link
Author

DinnerHowe commented Oct 31, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants