Open ZoltanV-V opened 6 years ago
Hi,
Did you clone this repo with recursive flag? See the readme for more information. If yes, try to clean the workspace with “catkin clean” and do “catkin build darknet_ros” again.
Best, Marko
On 17 Apr 2018, at 23:35, Francesca Victoria notifications@github.com wrote:
Hi, everyone. So I am successfully able to use YOLO with Jetson TX2 but would like to switch over to darknet-ros because I need more than one process to access the camera. I tried building this using catkin_make but I keep getting this error:
/home/nvidia/catkin_ws/src/darknet_ros/darknet_ros/include/darknet_ros/YoloObjectDetector.hpp:49:21: fatal error: network.h: No such file or directory compilation terminated.
Has anyone faced this error before? Any advice would be appreciated.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
No I couldn't clone it with the recursive flag because it kept saying permission denied. So I used the clone link on the page. The only issue was that the darknet @ ... folder was empty. So I had to download those and put inside the darknet folder manually.
I am no longer seeing the initial errors I was seeing but now this is the error I have:
/home/nvidia/catkin_ws/src/darknet_ros/darknet_ros/src/YoloObjectDetector.cpp:312:64: error: ‘get_detection_boxes’ was not declared in this scope get_detectionboxes(l, 1, 1, demoThresh, probs, boxes, 0); ^ /home/nvidia/catkin_ws/src/darknet_ros/darknet_ros/src/YoloObjectDetector.cpp:315:34: error: ‘get_regionboxes’ was not declared in this scope demoHier, 1); ^ /home/nvidia/catkin_ws/src/darknet_ros/darknet_ros/src/YoloObjectDetector.cpp:320:63: error: cannot convert ‘box’ to ‘detection’ for argument ‘1’ to ‘void do_nms_obj(detection, int, int, float)’ do_nmsobj(boxes, probs_, l.w l.h l.n, l.classes, nms); ^ /home/nvidia/catkin_ws/src/darknet_ros/darknet_ros/src/YoloObjectDetector.cpp:327:28: error: invalid conversion from ‘int’ to ‘detection’ [-fpermissive] drawdetections(display, demoDetections, demoThresh, boxes, probs_, 0, dem ^
But I am not exactly sure where these functions are initially created?
You should clone it properly like in the readme. Otherwise it is hard to judge what is going on. Set up your ssh keys to solve the permission problem:
https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html
On 18 Apr 2018, at 00:37, Francesca Victoria notifications@github.com wrote:
No I couldn't clone it with the recursive flag because it kept saying permission denied. So I used the clone link on the page. The only issue was that the darknet @ ... folder was empty. So I had to download those and put inside the darknet folder manually.
I am no longer seeing the initial errors I was seeing but now this is the error I have:
/home/nvidia/catkin_ws/src/darknet_ros/darknet_ros/src/YoloObjectDetector.cpp:312:64: error: ‘get_detection_boxes’ was not declared in this scope get_detectionboxes(l, 1, 1, demoThresh, probs, boxes, 0); ^ /home/nvidia/catkin_ws/src/darknet_ros/darknet_ros/src/YoloObjectDetector.cpp:315:34: error: ‘get_regionboxes’ was not declared in this scope demoHier, 1); ^ /home/nvidia/catkin_ws/src/darknet_ros/darknet_ros/src/YoloObjectDetector.cpp:320:63: error: cannot convert ‘box’ to ‘detection’ for argument ‘1’ to ‘void do_nms_obj(detection, int, int, float)’ do_nmsobj(boxes, probs_, l.w l.h l.n, l.classes, nms); ^ /home/nvidia/catkin_ws/src/darknet_ros/darknet_ros/src/YoloObjectDetector.cpp:327:28: error: invalid conversion from ‘int’ to ‘detection’ [-fpermissive] drawdetections(display, demoDetections, demoThresh, boxes, probs_, 0, dem ^
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Hi all,
I had a similar issue, but that seems to have been resolved by reinstalling boost. However, I'm still having issue regarding boost, so I can't say for sure if the issues are properly solved.
Maybe you can try git clone --recursive https://github.com/leggedrobotics/darknet_ros.git rather than git clone --recursive git@github.com:leggedrobotics/darknet_ros.git that I got "permission denied" as well.
Had the same error. You definitely need to clone the repo with the --recursive flag!
Hi, everyone. So I am successfully able to use YOLO with Jetson TX2 but would like to switch over to darknet-ros because I need more than one process to access the camera. I tried building this using catkin_make but I keep getting this error:
/home/nvidia/catkin_ws/src/darknet_ros/darknet_ros/include/darknet_ros/YoloObjectDetector.hpp:49:21: fatal error: network.h: No such file or directory compilation terminated.
Has anyone faced this error before? Any advice would be appreciated.