Rosbag Analyser is a tool that allows users to visualize the topics of a rosbag file as an interactive timeline.
This application has a post-mortem and live visualization mode. Users can interact with the timeline by selecting/filtering topics at ease and see their corresponding messages and time stamps
This shows the filtering of rostopics in the graph
Software needed to run this repository:
- Ubuntu 16.04
- Python 2.7 / 3.6
Note 1: If you have a default Anaconda environment sourced when opening a terminal, you must deactivate it by doing conda deactivate
in terminal.
Note 2: To use this application you must install ROS in your system.
Follow the steps from 1 to 1.7 in this tutorial to install ROS Kinetic in Ubuntu 16.04.
Open terminal to install pip and virtual environment
python3 -m pip install --user --upgrade pip
sudo apt-get install python3-venv
Clone this repository in your computer
git clone https://github.com/agrija9/Rosbag-Analyser.git
Create a python environment in main folder
cd Rosbag-Analyser/
python3 -m venv env
This will create a folder called env
where all the packages required to run this software will be stored.
Now activate python environment
source env/bin/activate
Install requirements in python environment
pip install -r requirements.txt
Open a terminal and do
ros (in case ros is not sourced when opening the terminal)
roscore
In another terminal do
cd Rosbag-Analyser/
source env/bin/activate
cd src/
python3 app.py
After this, you should see a message in terminal saying Failed to load Python extension for LZ4 support. LZ4 compression will not be available.
. This means that the application is running properly.
A local host has been created at http://127.0.0.1:5000/
. Go to that page in your browser and start using the application.
For unit testing open a terminal and do
cd Rosbag-Analyser/
source env/bin/activate
cd src/
python3 test_app.py
- PEP 8