How do I release the message in the buffer?
I checked the relevant documents and nothing was to be found.
Now I can convert the world coordinates of x, y, and z through the Script Node node.
As for the problem with XLinkOut as follows.
image_manip_script = pipeline.create(dai.node.Script)
image_manip_script.setScript("""
****other codes****
cfg = SpatialLocationCalculatorConfig()
cfg.addROI(config)
node.io['to_manip'].send(cfg)
""")
image_manip_script.outputs['to_manip'].link(spatialLocationCalculator.inputConfig)
xoutSpatialData = pipeline.create(dai.node.XLinkOut)
xoutSpatialData.setStreamName("spatialData")
spatialLocationCalculator.out.link(xoutSpatialData.input)