感谢您的答复。不幸的是,试图让宇宙与我目前的设置一起工作有点痛苦。我也处于相当紧迫的期限,所以我只需要一些可以直接使用的东西。
我确实找到了一种有点DIY的解决方案,对于使用泡菜模块的情况非常有效。我真的不知道如何将此方法为适当的伪转换,因此,这里的大致轮廓:
Process 1 - TensorFlow:
load up TF graph
wait until pickled state arrives
while not terminated:
Process 2 - Blender:
run simulation until next action required
pickle state
wait until pickled action arrives
Process 1 - TensorFlow:
unpickle state
feedforward state through neural net, find action
pickle action
wait until next pickled state arrives
Process 2 - Blender:
unpickle action
take action
这种方式为我工作很好,但我想有更优雅的较低级的解决方案。我很好奇听到任何其他可能的方法来实现相同的目标。