How do you launch image_proc?
I am using ROS melodic and trying to launch image_roc as documented here to convert bayer images to color images. However I am not able to launch it as specified:
$ rosrun image_proc image_proc
[rosrun] Couldn't find executable named image_proc below /opt/ros/melodic/share/image_proc
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun] /opt/ros/melodic/share/image_proc
$ ls /opt/ros/melodic/share/image_proc
cmake launch nodelet_plugins.xml package.xml
As you can see, the path that rosrun is looking at is indeed not an executable file, but a directory.
First, did you source?
Second, try to set the NAMESPACE. For example, if your image topic is /my_camera/image_raw,
@yoshiros
source /opt/ros/melodic/setup.bash
did the trick. It's in my .bashrc and I can execute other stuff, so I didn't notice it. Thanks.