Comments (8)
Thank for your answer, I am using master branch of dex-net and trimesh==2.30.11.
By debugging, I found the error is caused by 460th line of visualizer3d.py in visualization modules (from https://github.com/BerkeleyAutomation/visualization.git).
Trimesh calls meshpy.triangle moudle to create visualization,but in meshpy (from https://github.com/BerkeleyAutomation/meshpy.git) do not contain triangle moudle. I installed dex-net by run install.sh script, which install meshpy and visualizaiton automaticlly. Should I uninstall meshpy and install it with "pip install meshpy"?
from dex-net.
I think you have found an incompatibility between trimesh and meshpy that will be nontrivial to fix. Trimesh wants a publicly available meshpy package on PyPI but this has a name conflict with the BerkeleyAutomation version. We will fix in the next release as we are deprecating BerkeleyAutomation/meshpy. Until then, you may have to avoid using this function.
from dex-net.
I couldn't find any import for a module named triangle. Are you using the master branch of dex-net? Also, what version of trimesh do you have installed?
from dex-net.
Yes, I agree with you and I expect to see next version. Thanks for your helping.
from dex-net.
@zy871125746 @jeffmahler , I found a way to work around it temporarily. After installing the meshpy package on PyPI, move the installed folder (/meshpy and /MeshPy-2018.1.dist-info) under your installation path (mine is /usr/local/lib/python2.7/dist-packages/) to your trimesh folder (/usr/local/lib/python2.7/dist-packages/trimesh). Next, move triangle.py under /mesh to ../ and change "import meshpy.triangle as triangle" to "import triangle as triangle". So that trimesh can found triangle module directly.
from dex-net.
@as-wanfang @zy871125746 @jeffmahler an easier solution would be to just add the PyPI package triangle
as a temporary dependency to dex-net, as the "real" meshpy is currently only imported once in the codebase of trimesh, and only if the PyPI package triangle
is not found.
It is not obvious from the error message, but a few lines of code above the meshpy
import in the trimesh library, the triangle
module is tried to be imported and the method returns before meshpy
is touched on success.
For me, this solved the issue elegantly.
from dex-net.
@simlei Great find. This is the correct solution. Added to requirements.txt in 02a199a
from dex-net.
Even though requirements.txt
mentioned triangle
, the error still persisted when running python apps/dexnet_cli.py
and then steps 0-1-3:
INFO:dexnet.api:Displaying stable poses for
Stable pose pose_0 with p=0.116
Display object failed: cannot import name triangle
Solved simply with:
python2 -m pip install --user triangle
from dex-net.
Related Issues (20)
- Display object failed: HOT 2
- Failed to render the depth map of the mesh model!
- Exact setup for installation HOT 6
- Dex-Net on Ubuntu 20.04 + Noetic test fails HOT 15
- sklearn
- Unable to import meshrender shared library! HOT 1
- Conflicts in getting collision detection implemented (Openrave Installation problem) HOT 1
- Suction grasp database generation from DexNet 3.0 HOT 6
- Ideal environment for dex-net
- CMake Issue HOT 2
- ImportError: cannot import name 'Visualizer' from 'gqcnn' HOT 1
- cannot import name 'CameraIntrinsics' from 'perception' HOT 1
- How is 6.7 million dataset generated from 1500 objects - the provided database generate around 1 million only HOT 1
- TypeError: sample_grasps() got an unexpected keyword argument 'stable_pose'
- How to generate Database data HOT 3
- ObjectRender Missing HOT 1
- Object Mesh Dataset v1.1 dataset is offline HOT 4
- mistake
- Implementation of the grasp matrix function
- Missing three modules, when trying to run setup.py test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dex-net.