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 ¶ms_ca) |
Consumer: Consumes elements from distances container. More... | |
bool | fill (ConstraintParamsJLA ¶ms_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_ |
Represents a data pool for distribution of collected data from ROS callback.
Definition at line 30 of file callback_data_mediator.h.
|
private |
Definition at line 33 of file callback_data_mediator.h.
|
inline |
Definition at line 38 of file callback_data_mediator.h.
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.
msg | The 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.
params_ca | Reference to Collision Avoidance 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.
params_jla | Reference to JLA parameters. |
Definition at line 52 of file callback_data_mediator.cpp.
uint32_t CallbackDataMediator::obstacleDistancesCnt | ( | ) |
Counts all currently available distances to obstacles.
Definition at line 26 of file callback_data_mediator.cpp.
|
private |
Definition at line 35 of file callback_data_mediator.h.
|
private |
Definition at line 34 of file callback_data_mediator.h.