1 2024.10.12 14:52

Traceback (most recent call last):
File "terrain_creation.py", line 119, in <module>
gym.add_triangle_mesh(sim, vertices.flatten(), triangles.flatten(), tm_params)
TypeError: add_triangle_mesh(): incompatible function arguments. The following argument types are supported:
1. (self: isaacgym._bindings.linux-x86_64.gym_38.Gym, arg0: isaacgym._bindings.linux-x86_64.gym_38.Sim, arg1: numpy.ndarray[float32], arg2: numpy.ndarray[uint32], arg3: isaacgym._bindings.linux-x86_64.gym_38.TriangleMeshParams) -> None Invoked with: <isaacgym._bindings.linux-x86_64.gym_38.Gym object at 0x7f7a25110770>, <isaacgym._bindings.linux-x86_64.gym_38.Sim object at 0x7f7a25144d70>, array([ 0. , 0. , 0. , ..., 95.75, 11.75, -10. ]), array([ 0, 49, 1, ..., 18382, 18430, 18431], dtype=uint32), <isaacgym._bindings.linux-x86_64.gym_38.TriangleMeshParams object at 0x7f7a250feef0>

Linux最让人高兴的地方就在于,总是可以从意想不到的地方发现解决问题的关键

我这次的报错内容是:



就一直提示参数不匹配

后来发现:



我在这里修改过参数的类别。

因为在之前的跑的过程中,我遇到这个问题:



我当时就把np.float np.float32和float64全都改了

但是不对!!!

因为错的仅仅是np.float没有了,新版本是float了,但np.float32和np.float64还是有的!!

就这样我花了两天时间,一遍遍排查问题,后来都想到是不是pytorch和cuda版本不匹配的问题,区更新了cuda和nvidia dirver的版本。从中也学到了很多很多的知识,这两天解决这样一个小问题,却收获巨大!!

TypeError: add_triangle_mesh(): incompatible function arguments. The following argument types are supported: 问题终于解决了!!!!的更多相关文章

  1. Python Threading问题:TypeError in Threading. function takes 1 positional argument but 100 were given

    在使用python多线程module Threading时: import threading t = threading.Thread(target=getTemperature, args = ( ...

  2. Function.caller、arguments.caller、argument.callee

    caller.callee是与javascript函数相关的两个属性,今天来总结下. Function.caller caller是javascript函数的一个属性,它指向调用当前函数的函数,如果函 ...

  3. how to tell a function arguments length in js

    how to tell a function arguments length in js JavaScript函数不对参数值(参数)执行任何检查 https://www.w3schools.com/ ...

  4. spring 构造注入 异常 Ambiguous constructor argument types - did you specify the correct bean references as constructor arguments

    你可能在做项目的时候,需要在项目启动时初始化一个自定义的类,这个类中包含着一个有参的构造方法,这个构造方法中需要传入一些参数. spring提供的这个功能叫“构造注入”, applicationCon ...

  5. JS Function Arguments

    Function arguments在ECMAScript中的行为并不像其他大多数语言中的函数参数. 在ECMAScript中,function 并不关心有多少个参数传入函数中,也不关心传入参数的数据 ...

  6. [Javascript] Required function arguments in Javascript

    In Javascript, all function arguments are optional by default. That means if you ever forget to pass ...

  7. Django2.0——django-filter: TypeError at *** __init__() got an unexpected keyword argument 'name'

    在使用 Django2.0 版本的 Django Rest Framwork 时,Django DeBug 报错 django-filter: TypeError at *** __init__() ...

  8. js function arguments types

    js function arguments types https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functi ...

  9. TypeError: Restaurant() takes no arguments

    1. 错误描述 TypeError: Restaurant() takes no arguments 2. 原因:在编写__init__时,pycharm会自动添加关键字,有时会直接写称整型int, ...

  10. Supported method argument types Spring MVC

    Supported method argument types The following are the supported method arguments: Request or respons ...

随机推荐

  1. 关于vue按需引入ElMessage和ElMessageBox未被自动引入到auto-important的问题

    相信关于按需引入大家应该都会了,不论是官网还是百度一大堆教程 我这边也是参照https://github.com/youlaitech/vue3-element-admin的写法去写的-----需要的 ...

  2. SpringBoot优雅开发REST API最佳实践

    写在前面 博主最近在做一个数据服务的项目,而这个数据服务的核心就是对外暴露的API,值得高兴的这是一个从0开始的项目,所以终于不用受制于"某些历史"因素去续写各种风格的Contro ...

  3. win32 对话框模板添加加速键

    今天想在菜单中添加加速键的时候,因是用的对话框模板,不能接受WM_KEYDOWN消息, 在网上收了半天,都不理想,最后在看WM_COMMAND的时候发现有个 wparam的低位有个加速键标识 最后把这 ...

  4. 异常处理,内置方法(__new__,__init__,__del__析构方法,单例模式,item系列)

    __new__ 创建一个对象 class A: def __init__(self): print('in init') def __new__(cls): print('in new') self= ...

  5. ubuntu中sshd_config配置文件不存在

    sshd_config配置文件不存在 导致外部无法连接ssh 解决方案: 1.完全卸载 sudo apt-get remove openssh-server openssh-client --purg ...

  6. Apache HTTP Server 使用

    安装 macOS: brew install apache2 Ubuntu: sudo apt install apache2 使用 配置文件路径: macOS: /opt/homebrew/etc/ ...

  7. Java并发编程之验证volatile的可见性

    Java并发编程之验证volatile的可见性 通过系列文章的学习,凯哥已经介绍了volatile的三大特性.1:保证可见性 2:不保证原子性 3:保证顺序.那么怎么来验证可见性呢?本文凯哥将通过代码 ...

  8. NumPy从入门到放弃

    看前建议: 本文以jupyter notebook为编辑器进行示例,建议有一定python基础后再进行学习. python的安装:https://www.cnblogs.com/scfssq/p/17 ...

  9. 所见即所得,赋能RAG:PDF解析里的段落识别

    前几天,有一位用户使用OCR产品识别多栏论文后向我们询问:要怎么解决不合适的断句.分段以及错误阅读顺序的问题? 我们用一个相似案例为大家直观展示这位用户遇到的情况. 如图中的多栏期刊,如果用OCR识别 ...

  10. react-pdf预览在线PDF的使用

    1.在react项目中安装react-pdf依赖包 建议安装8.0.2版本的react-pdf,如果安装更高版本的可能出现一些浏览器的兼容性问题: npm install react-pdf@8.0. ...