Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Have you tried using rosrun? That is, you should be able to start the node from the command line using "rosrun image_listener_test image_listener_test_node". If you can't do that, it won't work from roslaunch. If the rosrun command doesn't work, you probably have not installed the node correctly from CMakeLists.txt. Following the pattern in the ROS tutorials, I use something like this:

catkin_install_python(
    PROGRAMS
        nodes/image_listener_node
    DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

(There may be another way to do it by installing the whole nodes/ directory, but I haven't found it yet.) You'll need to run "catkin_make", of course. (Once you run it once, I think rosrun will find it from the package directory, so you don't have to run "catkin_make" after every edit while you're developing.)