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

Question on how to analyze data using ros2 bag [.db3](3 methods) #703

Closed
ghdrb9138 opened this issue Mar 31, 2021 · 6 comments
Closed

Question on how to analyze data using ros2 bag [.db3](3 methods) #703

ghdrb9138 opened this issue Mar 31, 2021 · 6 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@ghdrb9138
Copy link

## Description

I want to visualize end-to-end data at once using the bag file (db3) of ros2. So far, I have found three ways.

  1. To use various visualization codes used in ros, use SQLite.Switch db3 file to .bag file and apply
  2. Visualization method using Python code using .db3 file
  3. Convert the .db3 file to csv or txt and plot it => I have limit with UTF-8 convert, what should I do?
  4. Is there any additional way? [-s {--storage} way did not work for me. I just want exact way]

## Related Issues

#561

## Completion Criteria

Python code or method for visualizing a ros2 bag file

## Implementation Notes / Suggestions

I want to see the corresponding end-to-end data as a plot when entering the desired topic (node) in the ros2 bag file. In particular, it would be better if the x and y axis limit were also specified as the maximum minimum. In addition, I would like to see various visualizations through various plots, not just one plot.

## Testing Notes / Suggestions

MANUAL01.zip

## SYSTEM STATUS

  • Linux : ubuntu 20.04 [Foxy]
  • ROS2 [ROS1 is also available on other computers, so anything is only available.]
@ghdrb9138 ghdrb9138 added the enhancement New feature or request label Mar 31, 2021
@emersonknapp emersonknapp added the question Further information is requested label Apr 9, 2021
@emersonknapp
Copy link
Collaborator

emersonknapp commented Apr 9, 2021

Note to self: This is asking for a Python interface that can read a topic from a bag and produce a 2D plot of the data.

I think we'll want to translate this into a feature request for a Python interface to the Reader, plus a tutorial doc showing how to use it. Plotting will probably use an external program (rqt_plot?) but we can show that integration in the tutorial.

@facontidavide
Copy link

facontidavide commented May 20, 2021

@ghdrb9138 , Have you tried to used PlotJuggler? You can visualize data directly and (recently), export it to CSV.
The latter feature is new, but can be improved if the community express interest in it.

@GRINGOLOCO7
Copy link

Hi,
I find myself in the same position,
How do I convert my bag (.db3) to a .csv file to see visually the data?
@ghdrb9138 how did you sole this issue?
Thank you

@nayak2358
Copy link

@facontidavide PlotJuggler works well, thank you! With a lot of recorded topics, it will be great if there is a script to read the ros2 bags and output the csv file in the same format as PlotJuggler does it.

@facontidavide
Copy link

facontidavide commented May 25, 2024

Using my other package, rox_introspection, it can be done relatively easily.

Someone should implement that... You maybe?

@nayak2358
Copy link

I don't know enough C++ yet to implement it using your package. So, I found a python API and added some lines to the proposed deserialization script here : #473 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants