Closed xiaofeiso closed 2 years ago
I know what happen, it is my error, I used another dexnet.
Hi,I encountered the same problem, how did you solve it?
did you use dexnet in this repo?
Thank you for your prompt reply. This issue has been resolved,I used another dex-net.But when I run python ycb_cloud_generate.py,I got new error. How can i solve it? multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/home/xmk/.conda/envs/py3/lib/python3.10/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, *kwds)) File "/home/xmk/.conda/envs/py3/lib/python3.10/multiprocessing/pool.py", line 48, in mapstar return list(map(args)) File "/home/xmk/code/PointNetGPD/PointNetGPD/ycb_cloud_generate.py", line 318, in generate viewpointangle = path[2].split("")[1].split(".")[0] # Relative angle of the object w.r.t the camera IndexError: list index out of range """
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/xmk/code/PointNetGPD/PointNetGPD/ycb_cloud_generate.py", line 394, in
This seems to be the reason why, I changed the file path, and after I changed back, I can read the pictures but all the pictures are failed like this‘data 037_scissors NP4 69 failed’.And directory clouds has nothing.
My goodness, you updated this part of the code before, haha,
when i run python generate-dataset-canny.py I have this problem: WARNING:root:Failed to import gqcnn! Grasp2D functions will not be available. WARNING:root:Failed to import OpenRAVE WARNING:dexnet.grasping.grasp_sampler:Failed to import rospy, you can't grasp now. a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 a worker of task start Log: do job 0 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Log: opened object 1 INFO:dexnet.grasping.grasp_sampler:Num surface: 36266 Process Process-1:37: Traceback (most recent call last): File "/home/xiaofeisong/anaconda3/envs/pointnetgpd/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/home/xiaofeisong/anaconda3/envs/pointnetgpd/lib/python3.7/multiprocessing/process.py", line 99, in run self._target(*self._args, *self._kwargs) File "generate-dataset-canny.py", line 111, in worker vis=False, random_approach_angle=True) File "/home/xiaofeisong/code/dex-net/src/dexnet/grasping/grasp_sampler.py", line 215, in generate_grasps dist = ParallelJawPtGrasp3D.distance(cur_grasp, grasp) File "/home/xiaofeisong/code/dex-net/src/dexnet/grasping/grasp.py", line 229, in distance center_dist = np.linalg.norm(g1.center - g2.center) AttributeError: 'tuple' object has no attribute 'center' Process Process-1:49: Traceback (most recent call last): File "/home/xiaofeisong/anaconda3/envs/pointnetgpd/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/home/xiaofeisong/anaconda3/envs/pointnetgpd/lib/python3.7/multiprocessing/process.py", line 99, in run self._target(self._args, **self._kwargs) File "generate-dataset-canny.py", line 111, in worker vis=False, random_approach_angle=True) File "/home/xiaofeisong/code/dex-net/src/dexnet/grasping/grasp_sampler.py", line 215, in generate_grasps dist = ParallelJawPtGrasp3D.distance(cur_grasp, grasp) File "/home/xiaofeisong/code/dex-net/src/dexnet/grasping/grasp.py", line 229, in distance center_dist = np.linalg.norm(g1.center - g2.center) AttributeError: 'tuple' object has no attribute 'center'