introlab / find-object

Find-Object project
http://introlab.github.io/find-object/
BSD 3-Clause "New" or "Revised" License
448 stars 189 forks source link

Couldn't find executable named find_object_2d #115

Open apat20 opened 3 years ago

apat20 commented 3 years ago

I followed the instructions for installing find_object_2d ROS Package found here. To check my installation, I run the following commands:

$ roscore
$ rosrun uvc_camera uvc_camera_node
$ rosrun find_object_2d find_object_2d image:=image_raw

I tried this separately for both the binary installation and installing using catkin. Using rviz I have verified the correct image topic. However, I keep getting the following error (the error below is after I install it using catkin):

[rosrun] Couldn't find executable named find_object_2d below /home/aditya/catkin_ws/src/find_object_2d
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun]   /home/aditya/catkin_ws/src/find_object_2d

I get a similar error with just binary file installation as well:

[rosrun] Couldn't find executable named find_object_2d below /opt/ros/kinetic/share/find_object_2d
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun]   /opt/ros/kinetic/share/find_object_2d

Do I need to make any changes in CMakeLists.txt to add the executables? I am missing something here? Please let me know.

Best, Aditya

matlabbe commented 3 years ago

Make sure you did source /opt/ros/kinetic/setup.bash and source ~/catkin_ws/devel/setup.bash. I don't have a kinetic machine to test with, but the following is working with a Kinetic docker image:

$ xhost +local:docker
$ docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix  --device=/dev/video0:/dev/video0 ros:kinetic-perception
# apt update && apt install -y ros-kinetic-find-object-2d ros-kinetic-uvc-camera
# roscore &
# rosrun uvc_camera uvc_camera_node &
# rosrun find_object_2d find_object_2d image:=image_raw