Skip to content

Latest commit

 

History

History
143 lines (95 loc) · 3.55 KB

README.md

File metadata and controls

143 lines (95 loc) · 3.55 KB

License Build Status

Post-mortem/Live Analysis of a ROS Bag File

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

Rosbag Live Visualizer mode




Filtering of rostopics in the timeline




This shows the filtering of rostopics in the graph

Prerequisites

Software needed to run this repository:

Installation

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.

ROS

Follow the steps from 1 to 1.7 in this tutorial to install ROS Kinetic in Ubuntu 16.04.

Python virtual environment

Open terminal to install pip and virtual environment

python3 -m pip install --user --upgrade pip
sudo apt-get install python3-venv

Clone repository and install requirements

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

Run

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.

Test

For unit testing open a terminal and do

cd Rosbag-Analyser/
source env/bin/activate
cd src/
python3 test_app.py

Built With

  • Flask - Web framework
  • visjs - Interactive timeline in browser
  • Pandas
  • Pyrosbag
  • Flask-SocketIO

Authors

License

Contributions

  • PEP 8