此页面由 AI 自动翻译。查看英文原版

本页目录

  • 如何放置
  • 输入和输出
  • 用法
  • 参考

Replay Metadata Only 节点

Supported on:RVC2RVC4
ReplayMetadataOnly 主机节点用于将录制的元数据重放到 Buffer 消息中。

如何放置

Python

Python
1with dai.Pipeline() as pipeline:
2    replay = pipeline.create(dai.node.ReplayMetadataOnly)

C++

C++
1dai::Pipeline pipeline;
2auto replay = pipeline.create<dai::node::ReplayMetadataOnly>();

输入和输出

用法

Python

Python
1with dai.Pipeline() as pipeline:
2    replay = pipeline.create(dai.node.ReplayMetadataOnly)
3    replay.setReplayFile("metadata.mcap")
4    replay.setFps(30)
5    replay.setLoop(False)

C++

C++
1dai::Pipeline pipeline;
2auto replay = pipeline.create<dai::node::ReplayMetadataOnly>();
3replay->setReplayFile("metadata.mcap");
4replay->setFps(30);
5replay->setLoop(False);

参考

class

dai::node::ReplayMetadataOnly

#include Replay.hpp
variable
Output out
Output for any type of messages to be transferred over XLink streamDefault queue is blocking with size 8
function
void run()
function
std::filesystem::path getReplayFile()
function
float getFps()
function
bool getLoop()
function
ReplayMetadataOnly & setReplayFile(const std::filesystem::path & replayFile)
function
ReplayMetadataOnly & setFps(float fps)
function
ReplayMetadataOnly & setLoop(bool loop)

需要帮助?

请前往 Discussion Forum 获取技术支持或提出您可能有的任何其他问题。