thunlp / LEGENT

Open Platform for Embodied Agents
https://docs.legent.ai
Apache License 2.0
250 stars 15 forks source link

An Error while run "Scene Generation" #14

Open Cheung-Z opened 1 month ago

Cheung-Z commented 1 month ago

系统: macOS 14.4.1 python版本: 3.9.16

运行代码: from legent import Environment, ResetInfo env = Environment(env_path="auto") scene = { "instances": [ { "prefab": "LowPolyInterior_Floor_01", "position": [0, 0, 0], "rotation": [0, 0, 0], "scale": [4, 1, 4], "type": "kinematic" }, { "prefab": "LowPolyInterior_Potato", "position": [0,0.1,0], "rotation": [0, 0, 0], "scale": [1, 1, 1], "type": "interactable" }, ], "player": { "position": [0,0.1,1], "rotation": [0, 180, 0] }, "agent": { "position": [0,0.1,-1], "rotation": [0, 0, 0] }, "center": [0, 10, 0], "prompt": "" } try: env.reset(ResetInfo(scene)) while True: env.step() finally: env.close()

development console打印信息: NullReferenceException: Object reference not set to an instance of an object at Legent.AssetsLoader.LateUpdate () [0x0009e] in C:\Users\cheng\UnityProjects\thyplaymate\Assets\LEGENT\Runtime\AssetsLoader.cs:1913

Cheung-Z commented 1 month ago

btw, https://docs.legent.ai/blog/introduction/ 有一处错误"legend launch --scene 0"

chengzl18 commented 1 month ago

The issue has been resolved. Use legent download to update the client and try again. It was caused by a missing grpc file in the most recent Mac version build. In subsequent updates, we will test the correctness of the client on all platforms. Thank you for your timely feedback!

chengzl18 commented 1 month ago

The typo has been corrected.

btw, https://docs.legent.ai/blog/introduction/ 有一处错误"legend launch --scene 0"