How do you launch image_proc?

asked 2019-03-20 07:39:26 -0500

steakoverflow gravatar image

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.

edit retag flag offensive close merge delete

Comments

First, did you source?

$ source /opt/ros/melodic/devel/setup.bash

Second, try to set the NAMESPACE. For example, if your image topic is /my_camera/image_raw,

$ ROS_NAMESPACE=my_camera rosrun image_proc image_proc
yoshiros gravatar image yoshiros  ( 2019-03-20 10:34:22 -0500 )edit

@yoshirossource /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.

steakoverflow gravatar image steakoverflow  ( 2019-03-22 10:19:17 -0500 )edit