ros::package::getPath() Problem
Hey there,
i've a problem using the getPath() function from roslib package. I need the package path to read out some images for a gui. In ROS Electric the code snippet below works, but since the import to ROS Fuerte I get following error while linking the package:
...RoombaDashboard.cpp:43: undefined reference to `ros::package::getPath(std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&)'
#include <ros/package.h>
...
/* Load PNGs */
wxString imgPath = wxString::FromAscii((
ros::package::getPath("roomba_dashboard") + "/gui/").c_str());
Does anyone have an idea why this error occurs!? The source code seems to be right...
Thank you und best regards Stefan