Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ROSEE::RosServiceHandler Class Reference

#include <RosServiceHandler.h>

Public Member Functions

bool init (unsigned int nFinger)
 
 RosServiceHandler (ros::NodeHandle *nh, ROSEE::MapActionHandler::Ptr, std::string path2saveYamlGeneric)
 

Public Attributes

rosee_msg::HandInfo::Response handInfoResponse
 

Private Member Functions

void fillCommonInfoGraspingActionMsg (ROSEE::Action::Ptr action, rosee_msg::GraspingAction *msg)
 Internal function called by each of the fillGraspingActionMsg, it fills the GraspingAction message with the info that are always present in any kind of action (like name and type). Each specific fillGraspingActionMsg will insert fill the field specific for the action type (like time margins for timed actions) More...
 
rosee_msg::GraspingAction fillGraspingActionMsg (ROSEE::ActionGeneric::Ptr generic)
 
rosee_msg::GraspingAction fillGraspingActionMsg (ROSEE::ActionPrimitive::Ptr primitive)
 
rosee_msg::GraspingAction fillGraspingActionMsg (ROSEE::ActionTimed::Ptr timed)
 
rosee_msg::GraspingPrimitiveAggregated fillPrimitiveAggregatedMsg (ROSEE::ActionPrimitive::Ptr primitive)
 
rosee_msg::GraspingPrimitiveAggregated fillPrimitiveAggregatedMsg (ROSEE::MapActionHandler::ActionPrimitiveMap primitiveMap)
 
bool graspingActionsCallback (rosee_msg::GraspingActionsAvailable::Request &request, rosee_msg::GraspingActionsAvailable::Response &response)
 
bool handInfoCallback (rosee_msg::HandInfo::Request &request, rosee_msg::HandInfo::Response &response)
 
bool newGraspingActionCallback (rosee_msg::NewGenericGraspingActionSrv::Request &request, rosee_msg::NewGenericGraspingActionSrv::Response &response)
 
bool primitiveAggregatedCallback (rosee_msg::GraspingPrimitiveAggregatedAvailable::Request &request, rosee_msg::GraspingPrimitiveAggregatedAvailable::Response &response)
 
bool selectablePairInfoCallback (rosee_msg::SelectablePairInfo::Request &request, rosee_msg::SelectablePairInfo::Response &response)
 

Private Attributes

MapActionHandler::Ptr _mapActionHandler
 
ros::NodeHandle_nh
 
std::string _path2saveYamlGeneric
 
ros::ServiceServer _server_selectablePairInfo
 
ros::ServiceServer _serverGraspingActions
 
ros::ServiceServer _serverHandInfo
 
ros::ServiceServer _serverNewGraspingAction
 
ros::ServiceServer _serverPrimitiveAggregated
 
unsigned int nFinger
 

Detailed Description

Todo:
write docs

Definition at line 37 of file RosServiceHandler.h.

Constructor & Destructor Documentation

◆ RosServiceHandler()

ROSEE::RosServiceHandler::RosServiceHandler ( ros::NodeHandle nh,
ROSEE::MapActionHandler::Ptr  mapActionHandler,
std::string  path2saveYamlGeneric 
)

Default constructor

Definition at line 19 of file RosServiceHandler.cpp.

Member Function Documentation

◆ fillCommonInfoGraspingActionMsg()

void ROSEE::RosServiceHandler::fillCommonInfoGraspingActionMsg ( ROSEE::Action::Ptr  action,
rosee_msg::GraspingAction *  msg 
)
private

Internal function called by each of the fillGraspingActionMsg, it fills the GraspingAction message with the info that are always present in any kind of action (like name and type). Each specific fillGraspingActionMsg will insert fill the field specific for the action type (like time margins for timed actions)

Parameters
actionthe action that must be sent as response
msgthe ROS message that must be filled with action info

Definition at line 221 of file RosServiceHandler.cpp.

◆ fillGraspingActionMsg() [1/3]

rosee_msg::GraspingAction ROSEE::RosServiceHandler::fillGraspingActionMsg ( ROSEE::ActionGeneric::Ptr  generic)
private

Definition at line 181 of file RosServiceHandler.cpp.

◆ fillGraspingActionMsg() [2/3]

rosee_msg::GraspingAction ROSEE::RosServiceHandler::fillGraspingActionMsg ( ROSEE::ActionPrimitive::Ptr  primitive)
private

Definition at line 163 of file RosServiceHandler.cpp.

◆ fillGraspingActionMsg() [3/3]

rosee_msg::GraspingAction ROSEE::RosServiceHandler::fillGraspingActionMsg ( ROSEE::ActionTimed::Ptr  timed)
private

Definition at line 200 of file RosServiceHandler.cpp.

◆ fillPrimitiveAggregatedMsg() [1/2]

rosee_msg::GraspingPrimitiveAggregated ROSEE::RosServiceHandler::fillPrimitiveAggregatedMsg ( ROSEE::ActionPrimitive::Ptr  primitive)
private

Definition at line 322 of file RosServiceHandler.cpp.

◆ fillPrimitiveAggregatedMsg() [2/2]

rosee_msg::GraspingPrimitiveAggregated ROSEE::RosServiceHandler::fillPrimitiveAggregatedMsg ( ROSEE::MapActionHandler::ActionPrimitiveMap  primitiveMap)
private

Definition at line 304 of file RosServiceHandler.cpp.

◆ graspingActionsCallback()

bool ROSEE::RosServiceHandler::graspingActionsCallback ( rosee_msg::GraspingActionsAvailable::Request &  request,
rosee_msg::GraspingActionsAvailable::Response &  response 
)
private

Definition at line 65 of file RosServiceHandler.cpp.

◆ handInfoCallback()

bool ROSEE::RosServiceHandler::handInfoCallback ( rosee_msg::HandInfo::Request &  request,
rosee_msg::HandInfo::Response &  response 
)
private

Definition at line 370 of file RosServiceHandler.cpp.

◆ init()

bool ROSEE::RosServiceHandler::init ( unsigned int  nFinger)

Definition at line 34 of file RosServiceHandler.cpp.

◆ newGraspingActionCallback()

bool ROSEE::RosServiceHandler::newGraspingActionCallback ( rosee_msg::NewGenericGraspingActionSrv::Request &  request,
rosee_msg::NewGenericGraspingActionSrv::Response &  response 
)
private

Definition at line 397 of file RosServiceHandler.cpp.

◆ primitiveAggregatedCallback()

bool ROSEE::RosServiceHandler::primitiveAggregatedCallback ( rosee_msg::GraspingPrimitiveAggregatedAvailable::Request &  request,
rosee_msg::GraspingPrimitiveAggregatedAvailable::Response &  response 
)
private

Definition at line 251 of file RosServiceHandler.cpp.

◆ selectablePairInfoCallback()

bool ROSEE::RosServiceHandler::selectablePairInfoCallback ( rosee_msg::SelectablePairInfo::Request &  request,
rosee_msg::SelectablePairInfo::Response &  response 
)
private

Definition at line 337 of file RosServiceHandler.cpp.

Member Data Documentation

◆ _mapActionHandler

MapActionHandler::Ptr ROSEE::RosServiceHandler::_mapActionHandler
private

Definition at line 50 of file RosServiceHandler.h.

◆ _nh

ros::NodeHandle* ROSEE::RosServiceHandler::_nh
private

Definition at line 52 of file RosServiceHandler.h.

◆ _path2saveYamlGeneric

std::string ROSEE::RosServiceHandler::_path2saveYamlGeneric
private

Definition at line 51 of file RosServiceHandler.h.

◆ _server_selectablePairInfo

ros::ServiceServer ROSEE::RosServiceHandler::_server_selectablePairInfo
private

Definition at line 54 of file RosServiceHandler.h.

◆ _serverGraspingActions

ros::ServiceServer ROSEE::RosServiceHandler::_serverGraspingActions
private

Definition at line 55 of file RosServiceHandler.h.

◆ _serverHandInfo

ros::ServiceServer ROSEE::RosServiceHandler::_serverHandInfo
private

Definition at line 58 of file RosServiceHandler.h.

◆ _serverNewGraspingAction

ros::ServiceServer ROSEE::RosServiceHandler::_serverNewGraspingAction
private

Definition at line 56 of file RosServiceHandler.h.

◆ _serverPrimitiveAggregated

ros::ServiceServer ROSEE::RosServiceHandler::_serverPrimitiveAggregated
private

Definition at line 53 of file RosServiceHandler.h.

◆ handInfoResponse

rosee_msg::HandInfo::Response ROSEE::RosServiceHandler::handInfoResponse

Definition at line 47 of file RosServiceHandler.h.

◆ nFinger

unsigned int ROSEE::RosServiceHandler::nFinger
private

Definition at line 61 of file RosServiceHandler.h.


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


end-effector
Author(s): Luca Muratore , Davide Torielli , Liana Bertoni
autogenerated on Sat Dec 14 2024 03:49:27