cruise-automation / webviz

web-based visualization libraries
https://webviz.io/
Apache License 2.0
2.03k stars 412 forks source link

how to control the playing process #144

Closed yokyj closed 5 years ago

yokyj commented 5 years ago

Hi I see that the webviz uses rosbag.js to read a ros bag file which is also maintained by cruise. But I can't find the code that how you control the process like pause. The way to get the result is to call bag.readMessages(options, callback),how I can pause a callback?Or is there a graph showing the webviz's data flow?

sincerely Keyj

janpaul123 commented 5 years ago

Currently there is no diagram, that's a good idea though. If you want a concept of play/pause you can just make lots of calls to bag.readMessages that span short time ranges. That's what we do in Webviz. Hope that makes sense?

yokyj commented 5 years ago

That helps.Thank you