Skip to content

MukilSaravanan/rosbag_plotter_matlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

rosbag_plotter_matlab

A MATLAB script to plot graph from ROSbag easily.

Download

From a command line:

git clone https://github.com/MukilSaravanan/rosbag_plotter_matlab.git

Installation

  1. Go the directory where you have cloned the repository
cd <absolute_path_to_the_respository>

go_to_the_directory

  1. To open the Set Path dialog box, on the Home tab, in the Environment section, click Set Path set_path

  2. Click on Add Folder and select the directory you have cloned the repository add_folder_to_path

If the above are performed correctly, you see the path as shown the below image. Click on Save set_path_save

Usage

  1. Run the command in the command window
plot_rosbag()

run_code

  1. In the pop-up window, select the ROS bag that you want to visualize select_rosbag

  2. From the rostopics displayed in the command window, select a rostopic that you want to visualize. For eg., For /odom, enter 2 in the command window. select_rostopic

  3. Now, you will see all the variables in the selected rostopic. For eg., to plot twist/twist/linear/x in /odom rostopic, enter Twist.Twist.Linear.X in the command window select_ros_variable

  4. Enter the name of the quantity and its unit, enclosed with quotes. For eg., 'velocity,m/s'; This will appear as velocity (in m/s) in the graph enter_ylabel

The graph will be displayed as show in the below image. displaying_graph

Graph

graph

About

A MATLAB script to plot graph from ROS bag easily

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages