ros::package Namespace Reference

Typedefs

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

Functions

ROSLIB_DECL void 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.
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 bool getAll (V_string &packages)
 Gets a list of all packages. Returns false if it could not run the command.
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, M_string &plugins)
 Call the "rospack plugins" command, eg. "rospack plugins --attrib=<attribute> <package>". Returns a map of package name to export value.
ROSLIB_DECL void getPlugins (const std::string &package, const std::string &attribute, V_string &plugins)
 Call the "rospack plugins" command, eg. "rospack plugins --attrib=<attribute> <package>". Returns a vector of strings which are export values.

Variables

static boost::mutex librospack_mutex

Typedef Documentation

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

Definition at line 84 of file package.h.

typedef std::vector<std::string> ros::package::V_string

Definition at line 83 of file package.h.


Function Documentation

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.

Definition at line 59 of file package.cpp.

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.

Definition at line 35 of file package.cpp.

bool ros::package::getAll ( V_string &  packages  ) 

Gets a list of all packages. Returns false if it could not run the command.

Definition at line 91 of file package.cpp.

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.

Definition at line 77 of file package.cpp.

void ros::package::getPlugins ( const std::string &  package,
const std::string &  attribute,
M_string &  plugins 
)

Call the "rospack plugins" command, eg. "rospack plugins --attrib=<attribute> <package>". Returns a map of package name to export value.

Definition at line 110 of file package.cpp.

void ros::package::getPlugins ( const std::string &  package,
const std::string &  attribute,
V_string &  plugins 
)

Call the "rospack plugins" command, eg. "rospack plugins --attrib=<attribute> <package>". Returns a vector of strings which are export values.

Definition at line 98 of file package.cpp.


Variable Documentation

boost::mutex ros::package::librospack_mutex [static]

Definition at line 33 of file package.cpp.

 All Namespaces Files Functions Variables Typedefs Defines


roslib
Author(s): Ken Conley/kwc@willowgarage.com, Morgan Quigley/mquigley@cs.stanford.edu, Josh Faust/jfaust@willowgarage.com
autogenerated on Fri Jan 11 11:53:31 2013