ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You could also pipe data with a filter using rostopic like so (one line):

rostopic echo --filter "int(m.header.stamp.secs) % 3 == 0" /imu_data/orientation/x | rostopic pub bar std_msgs/Float64

This example just publishes messages with a timestamp divisible by 3 to bar, but you can put any python expression there (such as to filter by your joint index) and then use:

rxplot bar/data

to plot it. However the rostopic wiki article warns that filtering give a performance hit, not sure how that would impact your current system.

For more info: link text

You could also pipe data with a filter using rostopic like so (one line):

rostopic echo --filter "int(m.header.stamp.secs) % 3 == 0" /imu_data/orientation/x | rostopic pub bar std_msgs/Float64

This example just publishes messages with a timestamp divisible by 3 to bar, but you can put any python expression there (such as to filter by your joint index) and then use:

rxplot bar/data

to plot it. However the rostopic wiki article warns that filtering give a performance hit, not sure how that would impact your current system.

For more info: link textrostopic