28 #ifndef ROSLIB_PACKAGE_H 29 #define ROSLIB_PACKAGE_H 37 # define ROS_DEPRECATED __attribute__((deprecated)) 38 # define ROS_FORCE_INLINE __attribute__((always_inline)) 39 #elif defined(_MSC_VER) 40 # define ROS_DEPRECATED 41 # define ROS_FORCE_INLINE __forceinline 43 # define ROS_DEPRECATED 44 # define ROS_FORCE_INLINE inline 53 # define ROS_HELPER_IMPORT __declspec(dllimport) 54 # define ROS_HELPER_EXPORT __declspec(dllexport) 56 # define ROS_HELPER_IMPORT __attribute__ ((visibility("default"))) 57 # define ROS_HELPER_EXPORT __attribute__ ((visibility("default"))) 59 # define ROS_HELPER_IMPORT 60 # define ROS_HELPER_EXPORT 65 # pragma warning(disable: 4251) 66 # pragma warning(disable: 4275) 69 #ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries 70 # ifdef roslib_EXPORTS // we are building a shared lib/dll 71 # define ROSLIB_DECL ROS_HELPER_EXPORT 72 # else // we are using shared lib/dll 73 # define ROSLIB_DECL ROS_HELPER_IMPORT 75 #else // ros is being built around static libraries 85 typedef std::map<std::string, std::string>
M_string;
109 ROSLIB_DECL void getPlugins(
const std::string& package,
const std::string& attribute, V_string& plugins,
bool force_recrawl=
false);
133 const std::string& name,
134 const std::string& attribute,
135 std::vector<std::pair<std::string, std::string> >& exports,
136 bool force_recrawl=
false std::map< std::string, std::string > M_string
ROSLIB_DECL bool getAll(V_string &packages)
Gets a list of all packages. Returns false if it could not run the command.
std::vector< std::string > V_string
ROSLIB_DECL std::string command(const std::string &cmd)
Runs a rospack command of the form 'rospack <cmd>', returning the output as a single string...
ROSLIB_DECL std::string getPath(const std::string &package_name)
Returns the fully-qualified path to a package, or an empty string if the package is not found...
ROSLIB_DECL void getPlugins(const std::string &package, const std::string &attribute, V_string &plugins, bool force_recrawl=false)
Call the "rospack plugins" command, eg. "rospack plugins --attrib=<attribute> <package>". Returns a vector of strings which are export values.