Classes | Functions | Variables
rosaic_node Namespace Reference

Classes

class  ROSaicNode
 This class represents the ROsaic node, to be extended.. More...
 

Functions

template<typename V , typename T >
void checkRange (V val, T min, T max, std::string name)
 Checks whether the parameter is in the given range. More...
 
template<typename V , typename T >
void checkRange (std::vector< V > val, T min, T max, std::string name)
 Check whether the elements of the vector are in the given range. More...
 
template<typename U >
bool getROSInt (const std::string &key, U &u)
 Gets an integer or unsigned integer value from the parameter server. More...
 
template<typename U >
void getROSInt (const std::string &key, U &u, U default_val)
 Gets an integer or unsigned integer value from the parameter server. More...
 
template<typename U >
bool getROSInt (const std::string &key, std::vector< U > &u)
 Gets an unsigned integer or integer vector from the parameter server. More...
 

Variables

io_comm_rx::Comm_IO IO
 Handles communication with the Rx. More...
 

Detailed Description

This namespace is for the ROSaic node, handling all aspects regarding ROS parameters, ROS message publishing etc.

Function Documentation

◆ checkRange() [1/2]

template<typename V , typename T >
void rosaic_node::checkRange ( val,
min,
max,
std::string  name 
)

Checks whether the parameter is in the given range.

Parameters
[in]valThe value to check
[in]minThe minimum for this value
[in]maxThe maximum for this value
[in]nameThe name of the parameter
Exceptions
std::runtime_errorif it is out of bounds

Definition at line 107 of file rosaic_node.hpp.

◆ checkRange() [2/2]

template<typename V , typename T >
void rosaic_node::checkRange ( std::vector< V >  val,
min,
max,
std::string  name 
)

Check whether the elements of the vector are in the given range.

Parameters
[in]valThe vector to check
[in]minThe minimum for this value
[in]maxThe maximum for this value
[in]nameThe name of the parameter

Definition at line 125 of file rosaic_node.hpp.

◆ getROSInt() [1/3]

template<typename U >
bool rosaic_node::getROSInt ( const std::string &  key,
U &  u 
)

Gets an integer or unsigned integer value from the parameter server.

Parameters
[in]keyThe key to be used in the parameter server's dictionary
[out]uStorage for the retrieved value, of type U, which can be either unsigned int or int
Exceptions
std::runtime_errorif the parameter is out of bounds
Returns
True if found, false if not found

Definition at line 143 of file rosaic_node.hpp.

◆ getROSInt() [2/3]

template<typename U >
void rosaic_node::getROSInt ( const std::string &  key,
U &  u,
default_val 
)

Gets an integer or unsigned integer value from the parameter server.

Parameters
[in]keyThe key to be used in the parameter server's dictionary
[out]uStorage for the retrieved value, of type U, which can be either unsigned int or int
[in]valValue to use if the server doesn't contain this parameter
Exceptions
std::runtime_errorif the parameter is out of bounds
Returns
True if found, false if not found

Definition at line 171 of file rosaic_node.hpp.

◆ getROSInt() [3/3]

template<typename U >
bool rosaic_node::getROSInt ( const std::string &  key,
std::vector< U > &  u 
)

Gets an unsigned integer or integer vector from the parameter server.

Parameters
[in]keyThe key to be used in the parameter server's dictionary
[out]uStorage for the retrieved value, of type std::vector<U>, where U can be either unsigned int or int
Exceptions
std::runtime_errorif the parameter is out of bounds
Returns
True if found, false if not found

Definition at line 185 of file rosaic_node.hpp.

Variable Documentation

◆ IO

io_comm_rx::Comm_IO rosaic_node::IO

Handles communication with the Rx.

Definition at line 96 of file rosaic_node.hpp.



rosaic
Author(s): Tibor Dome
autogenerated on Wed Oct 14 2020 03:43:50