首页 > 其他分享 >TypeError: add_triangle_mesh(): incompatible function arguments. The following argument types are su

TypeError: add_triangle_mesh(): incompatible function arguments. The following argument types are su

时间:2024-10-12 14:49:54浏览次数:1  
标签:function TypeError triangle gym supported add mesh np

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最让人高兴的地方就在于,总是可以从意想不到的地方发现解决问题的关键
我这次的报错内容是:
image
就一直提示参数不匹配
后来发现:
image
我在这里修改过参数的类别。
因为在之前的跑的过程中,我遇到这个问题:
image
我当时就把np.float np.float32和float64全都改了
但是不对!!!
因为错的仅仅是np.float没有了,新版本是float了,但np.float32和np.float64还是有的!!
就这样我花了两天时间,一遍遍排查问题,后来都想到是不是pytorch和cuda版本不匹配的问题,区更新了cuda和nvidia dirver的版本。从中也学到了很多很多的知识,这两天解决这样一个小问题,却收获巨大!!

标签:function,TypeError,triangle,gym,supported,add,mesh,np
From: https://www.cnblogs.com/myleaf/p/18460526

相关文章

  • UE4.26 Emissive Decal(发光贴花)模拟Light Function
    【USparkle专栏】如果你深怀绝技,爱“搞点研究”,乐于分享也博采众长,我们期待你的加入,让智慧的火花碰撞交织,让知识的传递生生不息!主要是想用EmissiveDecal(发光贴花)来模拟出SpotLight的LightFunction效果。原因是SpotLight的LightFunction依赖于阴影,而SpotLight开阴影比较费,且U......
  • std::binary_function 未定义问题
    使用高版本C++编译器编译旧的SDK的时候,SDK代码中会含有一些已经废弃的函数;如std::binary_function修改方式:原始代码:namespace{structNameCompare:std::binary_function<constchar*,constchar*,bool>{booloperator()(constchar*x,constchar*y)c......
  • 深度学习No module named ‘torchvision.transforms.functional_tensor‘问题解决
    问题在进行深度学习训练过程中出现ModuleNotFoundError:Nomodulenamed'torchvision.transforms.functional_tensor'报错,多方查阅资料后得到了解决方案。关于我的环境:CUDA==12.1torch==2.4.1GPU==4090D原先进行深度学习用的CUDA11.3,torch1.2.1,但是在训练时出现nvrtc......
  • [Javascript] Check whether a function is call with new
    The new.target meta-propertyletsyoudetectwhetherafunctionorconstructorwascalledusingthe new operator.Inconstructorsandfunctionsinvokedusingthe new operator, new.target returnsareferencetotheconstructororfunctionthat new wa......
  • 前端模块化进化史:从全局 function 到 ES Modules
    目前,前端开发已经离不开由CommonJS、ESModules和Webpack构建的模块化开发环境。无论是JavaScript、CSS、图片还是其他资源,都可以作为一个模块来处理。那么,模块化究竟是如何发展到今天的呢?全局函数模式最初的前端模块化尝试是通过全局函数来实现的。例如,在一个util.js文......
  • Jupyter - Magic Function Usage
     %%writefiledata_preparation/v0.pydevice='cuda'iftorch.cuda.is_available()else'cpu'#OurdatawasinNumpyarrays,butweneedtotransformthem#intoPyTorch'sTensorsandthenwesendthemtothechosendevicex_tr......
  • 本地环境PHP帝国备份王备份报错mysql_escape_string(): This function is
    在使用帝国备份王进行备份和恢复时,如果遇到PHP5.5环境下的报错,通常是因为一些旧的MySQL函数已经被弃用或移除。具体来说,mysql_escape_string 函数在PHP5.5中已经被废弃,应该使用 mysql_real_escape_string 替代。解决方案定位问题文件:找到 function.php 文件的位置。......
  • C4996 'scanf': This function or variable may be unsafe. Consider using scanf_s i
    错误原因VS平台认为scanf函数不安全,要求换成scanf_s函数解决方案方案一:将scanf换成scanf_s[不建议]将scanf换成scanf_s但是,scanf_s函数只能在vs上使用,其他平台无法使用,故修改后代码无法移植,不建议方案二:#define_CRT_SECURE_NO_WARNINGS在头文件之前增加预处理器指令#defin......
  • OpenAi FunctionCalling 案例详解
    源码详细讲解pdf及教学视频下载链接:点击这里下载FunctionCalling的单一函数调用天气预报查询(今天长沙的天气如何?)1importjson2importrequests3fromopenaiimportOpenAI45client=OpenAI()67location="长沙"89defget_current_weather(c......
  • C++ Data Member Pointers 和 Member Function Pointers
    https://itanium-cxx-abi.github.io/cxx-abi/abi.html#member-pointers2.3MemberPointers2.3.1DataMemberPointersThebasicABIpropertiesofdatamemberpointertypesarethoseofptrdiff_t.Adatamemberpointerisrepresentedasthedatamember's......