-
Notifications
You must be signed in to change notification settings - Fork 4
API
mika edited this page Mar 31, 2022
·
5 revisions
There's only few public methods in the Velodyne.VelodyneViewer currently (see "PUBLIC METHODS" area at the bottom of viewer script), see also FeedCustomData.cs for example on how to draw your own point data using Viewer.
- Starts loading/streaming from file (normally its called automatically in the viewer is public bool loadAtStart = true)
- Initializes compute buffers for streamed data (this gets called from InitPCAPBuffers() already, so not needed normally)
- Initializes buffers for point and color data
- Opens UDP listener and ports
- Same as UpdatePointDataFromStream() but for displaying loaded data (one frame of it)
- Actually draws single frame points (for mesh it sets vertices, or for DX11 buffer it sets buffer data)
- Toggles live recording on/off (isRecording bool is flipped on each call), only for live device recording
- returns "recordfile" string, its time stamped filename, ("yyyy-MM-dd_HH-mm-ss_" + detectedModelID + ".pcap"), inside streaming assets
- Invokes when loading (of pcap file is completed, not for streaming data), returns filename