Skip to content

Python tool for plotting arbitrary fields of ROS messages in real time

Notifications You must be signed in to change notification settings

huiyi1990/rosplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rosplot

Python tool for plotting arbitrary fields of ROS messages in real time

Usage:

rostopic echo [topic] | rosplot [x fields] [y fields] [options]

options:
        
[number]    -i --update_interval : milliseconds between plot updates
[number]    -c --point_count : max points to plot in sliding window
[number]    --size : the size of the points
[0-255]     -a : alpha, the transparency of the points

hint: pass multiple y fields separated by commas to plot multiple fields

Examples:

--- gps positions ---
rostopic echo /android/fix | ./rosplot latitude longitude

gps screenshot

--- simple time series ---
rostopic echo /android/barometric_pressure | ./rosplot time fluid_pressure

pressure screenshot

--- fast update, rolling window ---
rostopic echo /android/illuminance | ./rosplot time illuminance -i 50 -c 200

illuminance screenshot

--- multiple y fields plotted against one x field ---
rostopic echo /android/imu | ./rosplot time linear_acceleration.x,linear_acceleration.y,linear_acceleration.z

3v1 imu screenshot

--- three pairs of fields ---
rostopic echo /android/imu | ./rosplot linear_acceleration.x,linear_acceleration.z,linear_acceleration.y linear_acceleration.z,linear_acceleration.y,linear_acceleration.x

paired imu screenshot

About

Python tool for plotting arbitrary fields of ROS messages in real time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages