Hymwgk / PointNetGPD

PointNetGPD实验复现与注释
MIT License
79 stars 22 forks source link

Question about autolab-core and autolab-preception #10

Closed littlefiveRobot closed 1 year ago

littlefiveRobot commented 2 years ago

When I ran the code in python3 ,I encountered this error:

(pointnetgpd) klxue@dell-XPS:~/code/PointNetGPD/apps$ python generate-dataset-canny.py WARNING:root:autolab_core not installed as catkin package, RigidTransform ros methods will be unavailable Traceback (most recent call last): File "generate-dataset-canny.py", line 13, in from dexnet.grasping.quality import PointGraspMetrics3D File "/home/klxue/code/dex-net/src/dexnet/init.py", line 24, in from dexnet.api import DexNet File "/home/klxue/code/dex-net/src/dexnet/api.py", line 42, in import dexnet.database.database as db File "/home/klxue/code/dex-net/src/dexnet/database/init.py", line 22, in from dexnet.database.hdf5_factory import Hdf5ObjectFactory File "/home/klxue/code/dex-net/src/dexnet/database/hdf5_factory.py", line 39, in from perception import RenderMode ImportError: cannot import name 'RenderMode' from 'perception' (/home/klxue/anaconda3/envs/pointnetgpd/lib/python3.7/site-packages/perception/init.py)

I changed from perception import RenderMode into from autolab_core import RenderMode ,but encountered this error:

(pointnetgpd) klxue@dell-XPS:~/code/PointNetGPD/apps$ python generate-dataset-canny.py WARNING:root:autolab_core not installed as catkin package, RigidTransform ros methods will be unavailable WARNING:root:Failed to import gqcnn! Grasp2D functions will not be available. WARNING:root:Failed to import mayavi WARNING:root:Failed to import mayavi WARNING:root:Failed to import mayavi WARNING:root:Failed to import mayavi WARNING:root:Failed to import mayavi WARNING:root:Failed to import OpenRAVE WARNING:root:Failed to import mayavi WARNING:dexnet.grasping.grasp_sampler:Failed to import rospy, you can't grasp now. WARNING:dexnet.grasping.grasp_sampler:Do not have mayavi installed, please set the vis to False Traceback (most recent call last): File "generate-dataset-canny.py", line 13, in from dexnet.grasping.quality import PointGraspMetrics3D File "/home/klxue/code/dex-net/src/dexnet/init.py", line 24, in from dexnet.api import DexNet File "/home/klxue/code/dex-net/src/dexnet/api.py", line 42, in import dexnet.database.database as db File "/home/klxue/code/dex-net/src/dexnet/database/init.py", line 22, in from dexnet.database.hdf5_factory import Hdf5ObjectFactory File "/home/klxue/code/dex-net/src/dexnet/database/hdf5_factory.py", line 46, in class Hdf5ObjectFactory(object): File "/home/klxue/code/dex-net/src/dexnet/database/hdf5_factory.py", line 226, in Hdf5ObjectFactory def rendered_images(data, render_mode=RenderMode.SEGMASK): NameError: name 'RenderMode' is not defined

Could someone help me? Thanks very much!

CaptainWuDaoKou commented 2 years ago

from meshpy import RenderMode