Unuty3D开发ai2thor

一、Edit

用Uinity3D打开ai2thor/unity项目进行编辑

二、Build

方法一:

1.修改ai2thor目录下的task.py文件,注释86-89行,并添加一行Unity3D软件的路径

#if os.path.exists(standalone_path):
#    unity_path = standalone_path
#else:
#    unity_path = unity_hub_path    
unity_path = "/home/xw/Unity-2018.3.0f2/Editor/Unity".format(UNITY_VERSION)

2.ai2-thor目录下执行 invoke local-build --arch Linux64, 在ai2-thor/unity/builds 下生成编译好的环境

方法二

在Unity3D软件中File -> Build, 在自定义的目录下生成编译好的环境

三、Run

修改ai2thor库中的Controller.py, local_executable_path='/3rdparty/thor-local-Linux64/thor-local-Linux64.x86_64', 

from ai2thor.controller import Controller
controller = Controller(scene='FloorPlan0', gridSize=0.25)
controller.start()
 

 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值