Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Paths correctly #1

Open
NoNoid opened this issue Apr 2, 2019 · 8 comments
Open

Setting Paths correctly #1

NoNoid opened this issue Apr 2, 2019 · 8 comments

Comments

@NoNoid
Copy link

NoNoid commented Apr 2, 2019

Hello,

I changed the following paths according to the instructions, but im still getting file not found errors.
It looks like some paths are appended the wrong way.

Changes in the GPD2 library:

user@Workstation:~/gpd2-src/gpd2$ git diff
diff --git a/cfg/ros_eigen_params.cfg b/cfg/ros_eigen_params.cfg
index 5b07554..a86a2af 100644
--- a/cfg/ros_eigen_params.cfg
+++ b/cfg/ros_eigen_params.cfg
@@ -29,7 +29,7 @@ image_size = 60
 image_num_channels = 15
 
 # (OpenVINO) Path to directory that contains neural network parameters
-weights_file = /home/andreas/projects/gpd/lenet/15channels/params/
+weights_file = /home/user/gpd2-src/gpd2/models/lenet/15channels/params/
 
 # Preprocessing of point cloud
 #   voxelize: if the cloud gets voxelized/downsampled
diff --git a/cfg/ros_vino_params.cfg b/cfg/ros_vino_params.cfg
index bd7e8a1..ed587d8 100644
--- a/cfg/ros_vino_params.cfg
+++ b/cfg/ros_vino_params.cfg
@@ -29,8 +29,8 @@ image_size = 60
 image_num_channels = 12
 
 # (OpenVINO) Path to directory that contains neural network parameters
-model_file = /home/ur5/projects/gpd/models/openvino/two_views_12_channels_curv_axis.xml
-weights_file = /home/ur5/projects/gpd/models/openvino/two_views_12_channels_curv_axis.bin
+model_file = /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.xml
+weights_file = /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.bin
 device = 0
 
 # Preprocessing of point cloud

Changes in the ROS Wrapper:

user@Workstation:~/catkin_ws/src/gpd2_ros$ git diff
diff --git a/launch/ur5.launch b/launch/ur5.launch
index 285c6cb..1a1bf62 100644
--- a/launch/ur5.launch
+++ b/launch/ur5.launch
@@ -15,8 +15,8 @@
     <param name="samples_topic" value="" />
 
     <!-- Filepath to the configuration file for GPD -->
-    <!-- <param name="config_file" value="/home/ur5/projects/gpd/cfg/ros_eigen_params.cfg" /> -->
-               <param name="config_file" value="/home/ur5/projects/gpd/cfg/ros_vino_params.cfg" />
+    <!-- <param name="config_file" value="/home/user/gpd2-src/gpd2/cfg/ros_eigen_params.cfg" /> -->
+               <param name="config_file" value="/home/user/gpd2-src/gpd2/cfg/ros_vino_params.cfg" />
 
        </node>

Output of ur5.launch, including erros:

user@Workstation:~/catkin_ws/src/gpd2_ros$ roslaunch gpd_ros ur5.launch 

SUMMARY
========

PARAMETERS
 * /detect_grasps/cloud_topic: /cloud_stitched
 * /detect_grasps/cloud_type: 2
 * /detect_grasps/config_file: /home/user/gp...
 * /detect_grasps/samples_topic: 
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

NODES
  /
    detect_grasps (gpd_ros/detect_grasps)

auto-starting new master
process[master]: started with pid [29759]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to ...
process[rosout-1]: started with pid [29772]
started core service [/rosout]
process[detect_grasps-2]: started with pid [29775]
Init ....
============ HAND GEOMETRY ======================
finger_width: 0.01
hand_outer_diameter: 0.1
hand_depth: 0.06
hand_height: 0.02
init_bite: 0.01
=================================================
============ PLOTTING ========================
plot_normals: 0
plot_samples: 0
plot_candidates: 0
plot_filtered_candidates: 0
plot_volumes_: 0
plot_valid_grasps: 0
plot_clustered_grasps: 0
plot_selected_grasps: 0
==============================================
============ CLOUD PREPROCESSING =============
voxelize: 1
remove_outliers: 0
workspace: -1.00 1.00 -1.00 1.00 -1.00 1.00 
============ CANDIDATE GENERATION ============
num_samples: 500
num_threads: 6
nn_radius: 0.01
hand axes: 2 
num_orientations: 8
num_finger_placements: 10
deepen_hand: 1
==============================================
============ GRASP IMAGE GEOMETRY ===============
volume width: 0.1
volume depth: 0.06
volume height: 0.02
image_size: 60
image_num_channels: 12
=================================================
ERROR: Cannot open file: /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.binconv1_weights.bin!
ERROR: Cannot open file: /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.binconv1_biases.bin!
ERROR: Cannot open file: /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.binconv2_weights.bin!
ERROR: Cannot open file: /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.binconv2_biases.bin!
ERROR: Cannot open file: /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.binip1_weights.bin!
ERROR: Cannot open file: /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.binip1_biases.bin!
ERROR: Cannot open file: /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.binip2_weights.bin!
ERROR: Cannot open file: /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.binip2_biases.bin!
NET SETUP runtime: 0.000965038
============ CLASSIFIER ======================
model_file: /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.xml
weights_file: /home/user/gpd2-src/gpd2/models/openvino/two_views_12_channels_curv_axis.bin
batch_size: 1
==============================================
============ CANDIDATE FILTERING =============
candidate_workspace: -1.00 1.00 -1.00 1.00 -1.00 1.00 
min_aperture: 0
max_aperture: 0.85
==============================================
============ CLUSTERING ======================
min_inliers: 1
==============================================

Created GPD ....
[ INFO] [1554212801.206714333]: Waiting for point cloud to arrive ...
@atenpas
Copy link
Owner

atenpas commented Apr 2, 2019

Which deep learning framework are you trying to use? OpenVINO?

@NoNoid
Copy link
Author

NoNoid commented Apr 4, 2019

Ah ok, preferably we would want to use Caffee.
Would this be the correct config file?:
<param name="config_file" value="/home/user/gpd2-src/gpd2/cfg/caffee_params.cfg" />

@atenpas
Copy link
Owner

atenpas commented Apr 4, 2019

Yes, that's the correct file. Just a small remark: there is one 'e' too much in your filename (caffee).

@yangyufeng-6666
Copy link

I used the caffe while the errors still occur:
yangyufeng@yangyufeng-Inspiron-5577:~$ roslaunch gpd_ros ur5.launch
... logging to /home/yangyufeng/.ros/log/2202bce2-7ca0-11eb-a067-ef87a62c496b/roslaunch-yangyufeng-Inspiron-5577-6546.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://yangyufeng-Inspiron-5577:39835/
SUMMARY

PARAMETERS

/detect_grasps/cloud_topic: /cloud_stitched
/detect_grasps/cloud_type: 2
/detect_grasps/config_file: /home/yangyufeng/...
/detect_grasps/rviz_topic: plot_grasps
/detect_grasps/samples_topic:
/rosdistro: noetic
/rosversion: 1.15.9

NODES
/
detect_grasps (gpd_ros/detect_grasps)

auto-starting new master
process[master]: started with pid [6554]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 2202bce2-7ca0-11eb-a067-ef87a62c496b
process[rosout-1]: started with pid [6564]
started core service [/rosout]
process[detect_grasps-2]: started with pid [6571]
Init ....
============ HAND GEOMETRY ======================
finger_width: 0.01
hand_outer_diameter: 0.12
hand_depth: 0.06
hand_height: 0.02
init_bite: 0.01
============ PLOTTING ========================
plot_normals: false
plot_samples false
plot_candidates: false
plot_filtered_candidates: false
plot_valid_grasps: false
plot_clustered_grasps: false
plot_selected_grasps: true
============ CLOUD PREPROCESSING =============
voxelize: true
voxel_size: 0.003
remove_outliers: false
workspace: -1.00 1.00 -1.00 1.00 -1.00 1.00
sample_above_plane: false
normals_radius: 0.030
refine_normals_k: 0
============ CANDIDATE GENERATION ============
num_samples: 30
num_threads: 4
nn_radius: 0.01
hand axes: 2
num_orientations: 8
num_finger_placements: 10
deepen_hand: true
friction_coeff: 20.00
min_viable: 6
============ GRASP IMAGE GEOMETRY ===============
volume width: 0.1
volume depth: 0.06
volume height: 0.02
image_size: 60
image_num_channels: 15
ERROR: Cannot open file: /home/yangyufeng/gpd/models/caffe/15channels/two_views_15_channels_53_deg.caffemodelconv1_weights.bin!
ERROR: Cannot open file: /home/yangyufeng/gpd/models/caffe/15channels/two_views_15_channels_53_deg.caffemodelconv1_biases.bin!
ERROR: Cannot open file: /home/yangyufeng/gpd/models/caffe/15channels/two_views_15_channels_53_deg.caffemodelconv2_weights.bin!
ERROR: Cannot open file: /home/yangyufeng/gpd/models/caffe/15channels/two_views_15_channels_53_deg.caffemodelconv2_biases.bin!
ERROR: Cannot open file: /home/yangyufeng/gpd/models/caffe/15channels/two_views_15_channels_53_deg.caffemodelip1_weights.bin!
ERROR: Cannot open file: /home/yangyufeng/gpd/models/caffe/15channels/two_views_15_channels_53_deg.caffemodelip1_biases.bin!
ERROR: Cannot open file: /home/yangyufeng/gpd/models/caffe/15channels/two_views_15_channels_53_deg.caffemodelip2_weights.bin!
ERROR: Cannot open file: /home/yangyufeng/gpd/models/caffe/15channels/two_views_15_channels_53_deg.caffemodelip2_biases.bin!
NET SETUP runtime: 0.000125894
============ CLASSIFIER ======================
model_file: /home/yangyufeng/gpd/models/caffe/15channels/lenet_15_channels.prototxt
weights_file: /home/yangyufeng/gpd/models/caffe/15channels/two_views_15_channels_53_deg.caffemodel
batch_size: 64
============ CANDIDATE FILTERING =============
candidate_workspace: -1.00 1.00 -1.00 1.00 -1.00 1.00
min_aperture: 0.0000
max_aperture: 0.8500
============ CLUSTERING ======================
min_inliers: 0

Created GPD ....
[ INFO] [1614831277.794813879]: Waiting for point cloud to arrive ...
Is there something wrong with my caffe framework?

@lsattf
Copy link

lsattf commented Oct 5, 2021

Hi.
Did you solve the problem? I have the same issue.

@pibaopi
Copy link

pibaopi commented Dec 15, 2021

@yangyufeng-6666 hello,Have you solved this problem? I also encountered the same problem.

@pibaopi
Copy link

pibaopi commented Dec 15, 2021

@lsattf Hello, have you solved this problem?

@qyp-robot
Copy link

ERROR: Cannot open file:
The file path is incorrect, or permission is required to access the folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants