初始化时清空行人

This commit is contained in:
Netceor 2023-11-17 13:18:09 +08:00
parent 1e5a05f48f
commit e71b1c217f
1 changed files with 2 additions and 1 deletions

View File

@ -180,9 +180,10 @@ class Scene:
def reset_sim(self):
# reset world
stub.CleanWalkers(GrabSim_pb2.SceneID(value=self.sceneID))
init_world()
stub.Reset(GrabSim_pb2.ResetParams(scene=self.sceneID))
stub.CleanWalkers(GrabSim_pb2.SceneID(value=self.sceneID))
def _reset(self):
# 场景自定义的reset