pgigioli / darknet_ros

YOLO integration with ROS for real-time object detection
50 stars 23 forks source link

Can't find bbox_array.h and bbox.h #4

Closed Kn15263ss closed 7 years ago

Kn15263ss commented 7 years ago

Hi~ I am having a bit of a problem~ when i catkin_make, it have a problem about "fatal error: darknet_ros/bbox_array.h: No such file or directory

include <darknet_ros/bbox_array.h>"

It may the darknet_ros folder don't have bbox_array.h and bbox.h file?

Thanks you~

pgigioli commented 7 years ago

ROS will generate those header files automatically when creating the msg files. I just tested it and it should work. Try adding add_dependencies(ROS_interface my_package_generate_messages_cpp) add_dependencies(yolo_object_detector my_package_generate_messages_cpp) at the bottom of your CMakelists.txt and try again.

Kn15263ss commented 7 years ago

sorry~ i have a another problem about use catkin_make. The problem is

screenshot from 2017-08-03 18 02 53

How do i fix this question? Thank you!

pgigioli commented 7 years ago

Your catkin_make is unable to find your cuda libraries. Make sure you have set your LD_LIBRARY_PATH appropriately. It should be: LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH or /usr/local/cuda/lib depending on your cuda version.

Kn15263ss commented 7 years ago

Thanks! I have solved this problem when i use: sudo ln -s /usr/local/cuda/lib64/libcurand.so /usr/lib/libcurand.so

but...when i execute "rosrun darknet_ros yolo_object_detector" Theu have some error like this: image

I don't know what happen about this.. Thanks you!

pgigioli commented 7 years ago

It looks like you are trying to use the weights/cfg file from YOLOv2. Unfortunately, I'm still working on updating this code to v2 but for now you can use the weights and cfg files from v1. Check out the v1 site here: https://pjreddie.com/darknet/yolov1/. You should be able to download the v1 weights from here: http://pjreddie.com/media/files/tiny-yolo.weights