How to use the rosbag.TimeUtil.compare 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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cruise-automation / webviz / packages / webviz-core / src / players / UserNodePlayer / index.js View on Github external
      return [...messages, ...nodeMessages].sort((a, b) => TimeUtil.compare(a.receiveTime, b.receiveTime));
    }
github cruise-automation / webviz / packages / webviz-core / src / util / time.js View on Github external
export function clampTime(time: Time, start: Time, end: Time): Time {
  if (TimeUtil.compare(start, time) > 0) {
    return start;
  }
  if (TimeUtil.compare(end, time) < 0) {
    return end;
  }
  return time;
}
github cruise-automation / webviz / packages / webviz-core / src / dataProviders / ReadAheadDataProvider.js View on Github external
      (msg) => TimeUtil.compare(start, msg.receiveTime) < 1 && TimeUtil.compare(end, msg.receiveTime) > -1
    );
github cruise-automation / webviz / packages / webviz-core / src / dataProviders / MemoryCacheDataProvider.js View on Github external
      resolve(messages.sort((a, b) => TimeUtil.compare(a.receiveTime, b.receiveTime)));
      this._lastResolvedCallbackEnd = blockRange.end;
github cruise-automation / webviz / packages / webviz-core / src / util / time.js View on Github external
export function clampTime(time: Time, start: Time, end: Time): Time {
  if (TimeUtil.compare(start, time) > 0) {
    return start;
  }
  if (TimeUtil.compare(end, time) < 0) {
    return end;
  }
  return time;
}

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 1 year ago

Package Health Score

63 / 100
Full package analysis

Similar packages