ROS topics are stored in log files called rosbags
. You can access and
filter information from these rosbags
in MATLAB®. For an example of working with rosbags, see
Work with rosbag Logfiles.
You can access transformations between coordinate systems as ROS topics and use them to transform data in MATLAB. For more information see, Access the tf Transformation Tree in ROS.
rosbag | Open and parse rosbag log file |
readMessages | Read messages from rosbag |
select | Select subset of messages in rosbag |
timeseries | Creates a time series object for selected message properties |
rostime | Access ROS time functionality |
rosduration | Create a ROS duration object |
seconds | Returns seconds of a time or duration |
rostf | Receive, send, and apply ROS transformations |
apply | Transform message entities into target frame |
canTransform | Verify if transformation is available |
transform | Transform message entities into target coordinate frame |
waitForTransform | Wait until a transformation is available |
getTransform | Retrieve transformation between two coordinate frames |
sendTransform | Send transformation to ROS network |
BagSelection | Object for storing rosbag selection |
TransformStamped | Create transformation message |
Read Data | Play back data from log file |
Summary of the structure of rosbags and the workflow for selecting subsets of messages in a rosbag.
A rosbag or bag is a file format in ROS for storing message data.
Access the tf Transformation Tree in ROS
The tf system in ROS keeps track of multiple coordinate frames and maintains the relationship between them in a tree structure.