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

Couldn't find executable named find_object_2d #115

Open
apat20 opened this issue Jun 17, 2021 · 1 comment
Open

Couldn't find executable named find_object_2d #115

apat20 opened this issue Jun 17, 2021 · 1 comment

Comments

@apat20
Copy link

apat20 commented Jun 17, 2021

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
Copy link
Member

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

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

2 participants