Public Member Functions | List of all members
orca_ros::common::RosWrapperBase Class Reference

#include <RosWrapperBase.h>

+ Inheritance diagram for orca_ros::common::RosWrapperBase:

Public Member Functions

 RosWrapperBase (const std::string &robot_name, const std::string &controller_name="", const std::string &obj_name="", const std::string &generic_prefix="")
 
virtual ~RosWrapperBase ()
 
std::string getRobotName ()
 
std::string getControllerName ()
 
std::string getGenericPrefix ()
 
std::string getObjectName ()
 
std::shared_ptr< ros::NodeHandle > getNodeHandle ()
 
std::string getNamespacePrefix ()
 
std::string getRobotNamespacePrefix ()
 

Constructor & Destructor Documentation

RosWrapperBase::RosWrapperBase ( const std::string &  robot_name,
const std::string &  controller_name = "",
const std::string &  obj_name = "",
const std::string &  generic_prefix = "" 
)
RosWrapperBase::~RosWrapperBase ( )
virtual

Member Function Documentation

std::string RosWrapperBase::getControllerName ( )

Gets the name of the controller in which the task is being used

Returns
String controller in which the task is being used name
std::string RosWrapperBase::getGenericPrefix ( )

Gets the name of the generic prefix which is either 'tasks' or 'constraints'

Returns
String generic prefix
std::string RosWrapperBase::getNamespacePrefix ( )

Get a string with the appropriate namspace prefix for topics and services

Returns
String with the namespace prefix and a trailing '/' for convenience.
std::shared_ptr< ros::NodeHandle > RosWrapperBase::getNodeHandle ( )

Gets a shared pointer to the public NodeHandle

Returns
shared pointer to the public NodeHandle
std::string RosWrapperBase::getObjectName ( )

Gets the name of the wrapped object

Returns
String wrapped object name
std::string RosWrapperBase::getRobotName ( )

Gets the name of the robot

Returns
String robot name
std::string RosWrapperBase::getRobotNamespacePrefix ( )

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