Public Member Functions | Private Types | Private Attributes
CallbackDataMediator Class Reference

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

#include <callback_data_mediator.h>

List of all members.

Public Member Functions

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

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

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.

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.

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.

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

Definition at line 35 of file callback_data_mediator.h.

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 Jun 6 2019 21:19:26