https://github.com/vrano714/ros2-bag-topic-selector
ros2 bag record command generator using Python-flask
https://github.com/vrano714/ros2-bag-topic-selector
flask python ros2 rosbag
Last synced: about 2 months ago
JSON representation
ros2 bag record command generator using Python-flask
- Host: GitHub
- URL: https://github.com/vrano714/ros2-bag-topic-selector
- Owner: vrano714
- Created: 2023-11-15T05:52:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-15T06:07:27.000Z (over 2 years ago)
- Last Synced: 2023-11-15T07:23:51.452Z (over 2 years ago)
- Topics: flask, python, ros2, rosbag
- Language: HTML
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
This is a tiny toy for `ros2 bag record`.
If you have troubles making `ros2 bag record` with limited topics from many topics, try this.

## Requirements
- flask
- ROS2
My test environment is:
- Ubuntu 22.04 (on x64 Hardware)
- ROS2 Humble
- flask installed by `apt install python3-flask`
- Firefox
## How to Use
1. `git clone` or just download this repository.
1. launch a terminal, **source ROS2 setup.bash** and navigate to the cloned directory
1. run `python app.py`
1. open `localhost:5000` with a browser
## Behind the scenes
Inside `app.py`, environmental variables of the terminal are taken over and `ros2 topic list` is called.
Then the topics are categorized by their top-level namespace (we assume Autoware.universe), like...
- control
- /control/command/control_cmd
- /control/command/emergency_cmd
- /control/command/gear_cmd
- /control/command/hazard_lights_cmd
- ...
- perception
- /perception/object_recognition/detection/centerpoint/objects
- /perception/object_recognition/detection/centerpoint/validation/objects
- /perception/object_recognition/detection/clustering/clusters
- /perception/object_recognition/detection/clustering/concat_downsampled_pcl/input/twist
- ...
- ...