Classes | Functions | Variables
pilz_utils Namespace Reference

Classes

class  GetParamException
 Exception used by the getParam function. More...
 

Functions

template<class T >
getParam (const ros::NodeHandle &nh, const std::string &param_name)
 
template<class T >
static void waitForMessage (const std::string topic_name, const double retry_timeout=DEFAULT_RETRY_TIMEOUT, const double msg_output_period=DEFAULT_MSG_OUTPUT_PERIOD)
 Waits (infinitely) until a message arrives on the specified topic. More...
 
static void waitForService (const std::string service_name, const double retry_timeout=DEFAULT_RETRY_TIMEOUT, const double msg_output_period=DEFAULT_MSG_OUTPUT_PERIOD)
 Waits until the specified service starts. More...
 

Variables

static constexpr double DEFAULT_MSG_OUTPUT_PERIOD { 5.0 }
 
static constexpr double DEFAULT_RETRY_TIMEOUT { 0.2 }
 

Function Documentation

◆ getParam()

template<class T >
T pilz_utils::getParam ( const ros::NodeHandle nh,
const std::string &  param_name 
)

Definition at line 42 of file get_param.h.

◆ waitForMessage()

template<class T >
static void pilz_utils::waitForMessage ( const std::string  topic_name,
const double  retry_timeout = DEFAULT_RETRY_TIMEOUT,
const double  msg_output_period = DEFAULT_MSG_OUTPUT_PERIOD 
)
static

Waits (infinitely) until a message arrives on the specified topic.

Definition at line 33 of file wait_for_message.h.

◆ waitForService()

static void pilz_utils::waitForService ( const std::string  service_name,
const double  retry_timeout = DEFAULT_RETRY_TIMEOUT,
const double  msg_output_period = DEFAULT_MSG_OUTPUT_PERIOD 
)
inlinestatic

Waits until the specified service starts.

Definition at line 32 of file wait_for_service.h.

Variable Documentation

◆ DEFAULT_MSG_OUTPUT_PERIOD

constexpr double pilz_utils::DEFAULT_MSG_OUTPUT_PERIOD { 5.0 }
static

Definition at line 23 of file wait_for_timeouts.h.

◆ DEFAULT_RETRY_TIMEOUT

constexpr double pilz_utils::DEFAULT_RETRY_TIMEOUT { 0.2 }
static

Definition at line 22 of file wait_for_timeouts.h.



pilz_utils
Author(s):
autogenerated on Sat Nov 21 2020 03:56:28