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. 大模型时代的程序员:不会用AIGC编程,未来5年将被淘汰?

    作者 | 郭炜 策划 | 凌敏 前言 下面是一段利用 Co-Pilot 辅助开发的小视频,这是 Apache SeaTunnel 开发者日常开发流程中的一小部分.如果你还没有用过 Co-Pilot.C ...

  2. 由浅深入理解java多线程,java并发,synchronized实现原理及线程锁机制

    由浅深入理解java多线程,java并发,synchronized实现原理及线程锁机制 目录 由浅深入理解java多线程,java并发,synchronized实现原理及线程锁机制 一,线程的生命周期 ...

  3. SMU Spring 2023 Contest Round 6

    E. Expenditure Reduction 从左右往右找到包含B字符的最近位置,然后从这个位置有从右到左找回去找到包含完所有B字符的位置,这个区间就是答案 #include <bits/s ...

  4. 在Ubuntu 16.04 LTS服务器上安装FreeRADIUS和Daloradius的方法

    FreeRADIUS 为AAA Radius Linux下开源解决方案,DaloRadius为图形化web管理工具. freeradius一般用来进行账户认证管理,记账管理,常见的电信运营商的宽带账户 ...

  5. Viper:强大的Go配置解析库

    1 介绍 Viper是适用于Go应用程序的完整配置解决方案.它被设计用于在应用程序中工作,并且可以处理所有类型的配置需求和格式.目前Star 26.6k, 它支持以下特性: 设置默认值 从JSON.T ...

  6. PCIe简介

    PCIe简介 Peripheral Component Interconnect Express (PCI),高速串行计算机扩展总线标准,PCIe对外围设备的组织方式是树形结构. 拓扑结构 根: 树的 ...

  7. 【YashanDB知识库】同时设置默认值和非空约束时报错YAS-02070

    [问题分类]功能使用 [关键字]YAS-02070 [问题描述] SQL create table test01(id int,name varchar(10)); insert into test0 ...

  8. JavaScript之Blob对象基本用法及分片上传示例

    Blob基本用法 创建 通过Blob的构造函数创建Blob对象: new Blob(blobParts[, options]) blobParts: 数组类型, 数组中的每一项连接起来构成Blob对象 ...

  9. Tabby,一款老外都在用的 SSH工具,竟然还支持网页操作

    会编程的蜗牛 主要分享java编程,也会涉及其他方向的技术分享. 1篇原创内容 公众号 序言各位好啊,我是会编程的蜗牛,作为java开发者,或者说编程人员,程序员的我们,Linux服务器总是我们一个绕 ...

  10. 林史·CLOI纪事本末

    CLOI正源在JD,JD在初次短期集训结束后带出了一句经典名言: 那如果是在丛林里呢 这句话在短期内在全班范围内流传甚广,因此,\(GreatJungleLord\) 也因其幽默诙谐的形象赢得了大家的 ...