Public Member Functions | Private Types | Private Attributes | List of all members
CallbackDataMediator Class Reference

Represents a data pool for distribution of collected data from ROS callback. More...

#include <callback_data_mediator.h>

Public Member Functions

 CallbackDataMediator ()
 
void distancesToObstaclesCallback (const cob_control_msgs::ObstacleDistances::ConstPtr &msg)
 Producer: Fills obstacle distances but only when they are empty. More...
 
bool fill (ConstraintParamsCA &params_ca)
 Consumer: Consumes elements from distances container. More...
 
bool fill (ConstraintParamsJLA &params_jla)
 Can be used to fill parameters for joint limit avoidance. More...
 
uint32_t obstacleDistancesCnt ()
 Counts all currently available distances to obstacles. More...
 

Private Types

typedef ObstacleDistancesInfo_t::const_iterator ObstacleDistancesIter_t
 

Private Attributes

boost::mutex distances_to_obstacles_lock_
 
ObstacleDistancesInfo_t obstacle_distances_
 

Detailed Description

Represents a data pool for distribution of collected data from ROS callback.

Definition at line 30 of file callback_data_mediator.h.

Member Typedef Documentation

typedef ObstacleDistancesInfo_t::const_iterator CallbackDataMediator::ObstacleDistancesIter_t
private

Definition at line 33 of file callback_data_mediator.h.

Constructor & Destructor Documentation

CallbackDataMediator::CallbackDataMediator ( )
inline

Definition at line 38 of file callback_data_mediator.h.

Member Function Documentation

void CallbackDataMediator::distancesToObstaclesCallback ( const cob_control_msgs::ObstacleDistances::ConstPtr &  msg)

Producer: Fills obstacle distances but only when they are empty.

Callback method that can be used by a ROS subscriber to a obstacle distance topic.

Parameters
msgThe published message containting obstacle distances.

Definition at line 58 of file callback_data_mediator.cpp.

bool CallbackDataMediator::fill ( ConstraintParamsCA params_ca)

Consumer: Consumes elements from distances container.

Special implementation for Collision Avoidance parameters.

Parameters
params_caReference to Collision Avoidance parameters.
Returns
Success of filling parameters.

Definition at line 33 of file callback_data_mediator.cpp.

bool CallbackDataMediator::fill ( ConstraintParamsJLA params_jla)

Can be used to fill parameters for joint limit avoidance.

Special implementation for Joint Limit Avoidance parameters.

Parameters
params_jlaReference to JLA parameters.
Returns
Success of filling parameters.

Definition at line 52 of file callback_data_mediator.cpp.

uint32_t CallbackDataMediator::obstacleDistancesCnt ( )

Counts all currently available distances to obstacles.

Returns
Number of active distances to obstacles.

Definition at line 26 of file callback_data_mediator.cpp.

Member Data Documentation

boost::mutex CallbackDataMediator::distances_to_obstacles_lock_
private

Definition at line 35 of file callback_data_mediator.h.

ObstacleDistancesInfo_t CallbackDataMediator::obstacle_distances_
private

Definition at line 34 of file callback_data_mediator.h.


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


cob_twist_controller
Author(s): Felix Messmer , Marco Bezzon , Christoph Mark , Francisco Moreno
autogenerated on Thu Apr 8 2021 02:40:01