Closed sunhan1997 closed 2 years ago
Hi, I didn't meet this before. Does it happen every time if you destroy the docker container and restart?
yes,it happens every time. My docker is 5.19.03 and the code is built successfully in the docker. I use the pycharm to debug the generate_grasp.py
. and find this bug happen when run the from dexnet.grasping.gripper import RobotGripper
. Then I run the gripper.py
in dexnet.grasping
, and when run the from meshpy.sdf_file import SdfFile
, this bug happen again.
what if you create a new test file, e.g. test.py and put these lines and then run?
import open3d as o3d
import os, sys, time,torch,pickle,trimesh,yaml
from scipy.spatial import ConvexHull
from uuid import uuid4
import cv2
from PIL import Image, ImageDraw
import numpy as np
import multiprocessing as mp
import math,glob,re,copy
this code can work
Are you able to run the testing demo?
yes, the testing demo can run, but the bug is not fixed
Can you run git pull -X theirs
and then run generate_grasp.py?
it still does not work. I will try to delete this docker image and run docker pull wenbowen123/catgrasp:latest
again
also make sure your gripper.py
is now the same as the online file in this repo.
(catgrasp) root@zyb-pc:/home/catgrasp# python3 run_grasp_simulation.py
pybullet build time: Dec 1 2021 18:33:04
Traceback (most recent call last):
File "run_grasp_simulation.py", line 30, in
我遇到过这个问题,应该是pytorch 与 open3d import 的顺序问题,我在gripper.py里将import torch 移到import SdfFile后面,解决了,因为SdfFile需要import sdf<--import open3d
@lovesuiyue Did you run build.sh?
The topic issue has been resolved. For other topics, please open a separate issue.
hello,thank you for your work. I clone your code and run the
python generate_grasp.py --class_name nut --debug 0
,but there is a bug. Did you met this problem and how can i fix it.