package.cpp File Reference

#include "ros/package.h"
#include <string>
#include <vector>
#include <map>
#include <list>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "tinystr.h"
#include <cstdio>
#include <iostream>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/thread/mutex.hpp>
Include dependency graph for package.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ros
namespace  ros::package

Functions

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.
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.
ROSLIB_DECL bool ros::package::getAll (V_string &packages)
 Gets a list of all packages. Returns false if it could not run the command.
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.
ROSLIB_DECL 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.
ROSLIB_DECL 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.

Variables

static boost::mutex ros::package::librospack_mutex
 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