How to use the rosbag.parseMessageDefinition function in rosbag

To help you get started, we’ve selected a few rosbag examples, based on popular ways it is used in public projects.

github cruise-automation / webviz / packages / webviz-core / src / util / bagConnectionsHelper.js View on Github external
connections.forEach((connection) => {
    const connectionTypes = parseMessageDefinition(connection.messageDefinition);
    connectionTypes.forEach(({ name, definitions }, index) => {
      // The first definition usually doesn't have an explicit name,
      // so we get the name from the connection.
      if (index === 0) {
        datatypes[connection.type] = definitions;
      } else if (name) {
        datatypes[name] = definitions;
      }
    });
  });
  return datatypes;

rosbag

`rosbag` is a node.js & browser compatible module for reading [rosbag](http://wiki.ros.org/rosbag) binary data files.

Apache-2.0
Latest version published 3 months ago

Package Health Score

79 / 100
Full package analysis

Similar packages