Public Member Functions
beliefstate::BeliefstateROS Class Reference

#include <BeliefstateROS.h>

Inheritance diagram for beliefstate::BeliefstateROS:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BeliefstateROS (int argc, char **argv)
virtual std::string findTokenReplacement (std::string strToken)
virtual std::string workspaceDirectory ()
 Returns the current ROS workspace directory.
 ~BeliefstateROS ()

Detailed Description

Definition at line 52 of file BeliefstateROS.h.


Constructor & Destructor Documentation

beliefstate::BeliefstateROS::BeliefstateROS ( int  argc,
char **  argv 
)

Definition at line 44 of file BeliefstateROS.cpp.

Definition at line 48 of file BeliefstateROS.cpp.


Member Function Documentation

std::string beliefstate::BeliefstateROS::findTokenReplacement ( std::string  strToken) [virtual]

Reimplemented from beliefstate::Beliefstate.

Definition at line 51 of file BeliefstateROS.cpp.

Returns the current ROS workspace directory.

Searches the environmental variables ROS_WORKSPACE, CMAKE_PREFIX_PATH, and ROS_PACKAGE_PATH (in that order) for the current ROS workspace. The semantics are as follows:

  • If ROS_WORKSPACE is not empty, use it's value. Else:
  • If CMAKE_PREFIX_PATH is not empty, use it's first token separated by ':', without it's possibly trailing '/devel' postfix. Else:
  • If ROS_PACKAGE_PATH is not empty, use it's first token separated by ':', without it's possibly trailing '/src' postfix.

If all of this fails, return an empty string. During initialization of the belief state system, this value will be checked. If it is empty at that time, a warning will be printed. The configuration file allows for manual override of this in case the workspace directory cannot be detected properly.

Reimplemented from beliefstate::Beliefstate.

Definition at line 71 of file BeliefstateROS.cpp.


The documentation for this class was generated from the following files:


beliefstate
Author(s): Jan Winkler
autogenerated on Sun Oct 5 2014 22:30:16