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. 【简单菊花图】Codeforce 1583Problem - B.md

    1583Problem - B - Codeforces 题目大意:n个点的无根树 给出m个限制条件 (a,c,b)在a到b路径上不能存在c点,求任意一种可能的树的所有边 注意数据范围:1<m& ...

  2. CryptoHouse:由 ClickHouse 和 Goldsky 支持的免费区块链分析服务(ClickHouse 博客)

    我们很高兴地宣布 CryptoHouse,在 crypto.clickhouse.com 上可访问,这是一个由 ClickHouse 提供支持的免费区块链分析服务. https://crypto.cl ...

  3. [nRF24L01+] 1. 硬件设计

    nRF24L01pluss_REFERENCE_MODULES.pdf nrf24l01p_product_specification_1_0.pdf 1. 硬件设计 1.1. 实物图 [左边是PCB ...

  4. Linux程序之可变参数&&选项那些事!

    一.linux应用程序如何接收参数? 1. argc.argv Linux应用程序执行时,我们往往通过命令行带入参数给程序,比如 ls /dev/ -l 其中参数 /dev/ .-l都是作为参数传递给 ...

  5. keepalived编译安装-麒麟v10Arm64

    环境信息 操作系统: Kylin Linux Advanced Server V10 (Lance) 架构:Arm keepalived版本:2.3.1 编译 wget https://www.kee ...

  6. python模块xlsxwriter使用

    1.安装 pip install XlsxWriter 2.使用 # -*- coding: utf-8 -*- from io import BytesIO import qrcode # impo ...

  7. 解决 Rust WebAssembly 启动 Web 程序报错

    当你艰难入门 Rust ,并满怀斗志准备投身 WebAssembly,第一课也许会先给你泼盆凉水. 跟随 <Rust 和 WebAssembly> 文档的指引,一路 install.cod ...

  8. R 语言使用

    安装 brew install r --formulae 使用 CLI /opt/homebrew/bin/r # 进入 R 交互式编程界面 GUI GUI 有官方的 R Studio,不过界面我不是 ...

  9. Centos7.9安装Docker和Docker compose

    什么是docker环境 Docker环境是指在计算机中安装和配置了Docker引擎的运行环境.Docker是一种容器化平台,它提供了一种轻量级的虚拟化技术,能够将应用程序及其依赖项打包成一个独立的容器 ...

  10. git 相关操作

        git diff 已经缓存的文件和刚刚修改过的没有缓存的文件的对比 git diff --stage   git status 查看本地文件的修改,是否进入缓存 git add 把刚刚修改过的 ...