ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Pass the location of the image as a param in a launch file like:

<param name="image" value="$(find your_pkg)/src/bucher.jpg">

Or use find package in the source as in http://wiki.ros.org/Packages#C.2B-.2B-

std::string image = ros::package::getPath("your_pkg") + "/src/bucher.jpg";