Namespaces | Macros | Typedefs | Functions
package.h File Reference
#include <string>
#include <utility>
#include <vector>
#include <map>
Include dependency graph for package.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ros
 
 ros::package
 

Macros

#define ROS_DEPRECATED
 
#define ROS_FORCE_INLINE   inline
 
#define ROS_HELPER_EXPORT
 
#define ROS_HELPER_IMPORT
 
#define ROSLIB_DECL
 

Typedefs

typedef std::map< std::string, std::string > ros::package::M_string
 
typedef std::vector< std::string > ros::package::V_string
 

Functions

ROSLIB_DECL std::string ros::package::command (const std::string &cmd)
 Runs a rospack command of the form 'rospack <cmd>', returning the output as a single string. More...
 
ROSLIB_DECL void ros::package::command (const std::string &cmd, V_string &output)
 Runs a rospack command of the form 'rospack <cmd>', returning the output as a vector of strings, split by newlines. More...
 
ROSLIB_DECL bool ros::package::getAll (V_string &packages)
 Gets a list of all packages. Returns false if it could not run the command. More...
 
ROSLIB_DECL std::string ros::package::getPath (const std::string &package_name)
 Returns the fully-qualified path to a package, or an empty string if the package is not found. More...
 
ROSLIB_DECL void ros::package::getPlugins (const std::string &name, const std::string &attribute, std::vector< std::pair< std::string, std::string > > &exports, bool force_recrawl=false)
 Call the "rospack plugins" command, eg. "rospack plugins --attrib=<attribute> <name>". Return a vector of string pairs which are package names and exported values respectively. Note that there can be multiple values for any single package. More...
 
ROS_DEPRECATED ROSLIB_DECL void ros::package::getPlugins (const std::string &package, const std::string &attribute, M_string &plugins, bool force_recrawl=false)
 Call the "rospack plugins" command, eg. "rospack plugins --attrib=<attribute> <package>". Return a map of package name to export value. More...
 
ROSLIB_DECL void ros::package::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. More...
 

Macro Definition Documentation

◆ ROS_DEPRECATED

#define ROS_DEPRECATED

Definition at line 43 of file package.h.

◆ ROS_FORCE_INLINE

#define ROS_FORCE_INLINE   inline

Definition at line 44 of file package.h.

◆ ROS_HELPER_EXPORT

#define ROS_HELPER_EXPORT

Definition at line 60 of file package.h.

◆ ROS_HELPER_IMPORT

#define ROS_HELPER_IMPORT

Definition at line 59 of file package.h.

◆ ROSLIB_DECL

#define ROSLIB_DECL

Definition at line 76 of file package.h.



roslib
Author(s): Ken Conley , Josh Faust , Morgan Quigley , Dirk Thomas
autogenerated on Thu Feb 22 2024 03:05:10