首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >错误: In /vtk/IO/Import/vtkOBJImporter.cxx

错误: In /vtk/IO/Import/vtkOBJImporter.cxx
EN

Stack Overflow用户
提问于 2021-08-27 11:02:46
回答 1查看 113关注 0票数 0

我试着从https://drake.guzhaoyuan.com/网站上运行kuka机器人的教程示例,但是它在读取.obj文件时失败了。

命令:./bazel-bin/manipulation/util/geometry_inspector ./manipulation/models/iiwa_description/sdf/iiwa14_no_collision.sdf

错误:ERROR: In /vtk/IO/Import/vtkOBJImporter.cxx, line 495 vtkOBJPolyDataProcessor (0x5620bd39e440): Error reading 'v' at line 3

到目前为止我尝试过的事情:

  • 用Mashlab打开.obj文件,并使用字符"v“保存(3个浮点数/6个浮点数)
  • 使用Mashlab打开.obj文件,并使用字符"vn“保存(3个浮点数)

软件:

  • Ubuntu 18.04.4 LTS
  • VTK版本7.1.1
EN

回答 1

Stack Overflow用户

发布于 2021-08-27 13:28:33

"VTK版本7.1.1“对我来说是一个危险的标志。德雷克显式使用8.2版.因此,错误可能简单地归结为您正在连接到一个过时的vtk。

尝试:

代码语言:javascript
运行
复制
strace -o trace_output.txt python ./bazel-bin/manipulation/util/geometry_inspector  ./manipulation/models/iiwa_description/sdf/iiwa14_no_collision.sdf

然后在te文件trace_output.txt中搜索libvtkIOGeometry。我的研究结果包括:

代码语言:javascript
运行
复制
stat("/home/seancurtis/code/drake/bazel-bin/manipulation/util/geometry_inspector.runfiles/drake/bindings/pydrake/../../_solib_k8/_U@vtk_S_S_CvtkIOGeometry___Ulib/haswell", 0x7ffd1a5cb790) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/seancurtis/code/drake/bazel-bin/manipulation/util/geometry_inspector.runfiles/drake/bindings/pydrake/../../_solib_k8/_U@vtk_S_S_CvtkIOGeometry___Ulib/x86_64/libvtkIOGeometry-8.2.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/seancurtis/code/drake/bazel-bin/manipulation/util/geometry_inspector.runfiles/drake/bindings/pydrake/../../_solib_k8/_U@vtk_S_S_CvtkIOGeometry___Ulib/x86_64", 0x7ffd1a5cb790) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/seancurtis/code/drake/bazel-bin/manipulation/util/geometry_inspector.runfiles/drake/bindings/pydrake/../../_solib_k8/_U@vtk_S_S_CvtkIOGeometry___Ulib/libvtkIOGeometry-8.2.so.1", O_RDONLY|O_CLOEXEC) = 3

我只包含了两行: THere是以= -1 ENOENT (No such file or directory)结束的多个实例,一个以= 3结尾。在所有情况下,它寻找的库都是:libvtkIOGeometry-8.2.so.1

你的节目是什么?我怀疑是错的。如果是这样的话,我们将不得不把一位构建专家拖进来,找出你为什么选错了vtk。但是,我们可以通过以下问题的答案来确定这一点:

你的机器上怎么会有德雷克?安装?从源头建造?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68952327

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档