ApproximateChunkRate¶
Approximate a particular rate of chunks per second in the output.
This node can be used to reduce the effective update rate of a streaming pipeline, for example to 5 Hz. As a result, the node will only output new data 5 times a second. However, since the input to this node comes in at a certain update rate, if the two rates are not divisors of each other, the output will not be exactly 5 Hz (e.g., every 3 cycles, the data may be empty). To get a more regular chunk rate, the node Regulate Chunk Sizes can be used after this node. Version 1.0.0
Ports/Properties¶
data¶
Data to process.
desired_rate¶
Number of chunks per second. This node will output approximately this many chunks per second.
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.