IRI ROS Specific Algorithm Class. More...
#include <tibi_coop_alg_node.h>
IRI ROS Specific Algorithm Class.
Definition at line 63 of file tibi_coop_alg_node.h.
TibiCoopAlgNode::TibiCoopAlgNode | ( | void | ) |
Constructor.
This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.
Definition at line 4 of file tibi_coop_alg_node.cpp.
TibiCoopAlgNode::~TibiCoopAlgNode | ( | void | ) |
Destructor.
This destructor frees all necessary dynamic memory allocated within this this class.
Definition at line 75 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::addNodeDiagnostics | ( | void | ) | [protected, virtual] |
node add diagnostics
In this abstract function additional ROS diagnostics applied to the specific algorithms may be added.
Implements algorithm_base::IriBaseAlgorithm< TibiCoopAlgorithm >.
Definition at line 938 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::car_tibi_actionGetFeedbackCallback | ( | tibi_dabo_msgs::guiFeedbackPtr & | feedback | ) | [private] |
Definition at line 548 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::car_tibi_actionGetResultCallback | ( | tibi_dabo_msgs::guiResultPtr & | result | ) | [private] |
Definition at line 540 of file tibi_coop_alg_node.cpp.
bool TibiCoopAlgNode::car_tibi_actionHasSucceedCallback | ( | void | ) | [private] |
Definition at line 528 of file tibi_coop_alg_node.cpp.
bool TibiCoopAlgNode::car_tibi_actionIsFinishedCallback | ( | void | ) | [private] |
Definition at line 512 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::car_tibi_actionStartCallback | ( | const tibi_dabo_msgs::guiGoalConstPtr & | goal | ) | [private] |
Definition at line 486 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::car_tibi_actionStopCallback | ( | void | ) | [private] |
Definition at line 505 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::dabo_tibi_actionGetFeedbackCallback | ( | tibi_dabo_msgs::guiFeedbackPtr & | feedback | ) | [private] |
Definition at line 626 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::dabo_tibi_actionGetResultCallback | ( | tibi_dabo_msgs::guiResultPtr & | result | ) | [private] |
Definition at line 618 of file tibi_coop_alg_node.cpp.
bool TibiCoopAlgNode::dabo_tibi_actionHasSucceedCallback | ( | void | ) | [private] |
Definition at line 606 of file tibi_coop_alg_node.cpp.
bool TibiCoopAlgNode::dabo_tibi_actionIsFinishedCallback | ( | void | ) | [private] |
Definition at line 590 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::dabo_tibi_actionStartCallback | ( | const tibi_dabo_msgs::guiGoalConstPtr & | goal | ) | [private] |
Definition at line 555 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::dabo_tibi_actionStopCallback | ( | void | ) | [private] |
Definition at line 581 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::gui_actionGetFeedbackCallback | ( | tibi_dabo_msgs::guiFeedbackPtr & | feedback | ) | [private] |
Definition at line 738 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::gui_actionGetResultCallback | ( | tibi_dabo_msgs::guiResultPtr & | result | ) | [private] |
Definition at line 730 of file tibi_coop_alg_node.cpp.
bool TibiCoopAlgNode::gui_actionHasSucceedCallback | ( | void | ) | [private] |
Definition at line 717 of file tibi_coop_alg_node.cpp.
bool TibiCoopAlgNode::gui_actionIsFinishedCallback | ( | void | ) | [private] |
Definition at line 701 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::gui_actionStartCallback | ( | const tibi_dabo_msgs::guiGoalConstPtr & | goal | ) | [private] |
Definition at line 667 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::gui_actionStopCallback | ( | void | ) | [private] |
Definition at line 692 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::hri_clientActive | ( | ) | [private] |
Definition at line 793 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::hri_clientDone | ( | const actionlib::SimpleClientGoalState & | state, |
const tibi_dabo_msgs::sequenceResultConstPtr & | result | ||
) | [private] |
Definition at line 780 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::hri_clientFeedback | ( | const tibi_dabo_msgs::sequenceFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 798 of file tibi_coop_alg_node.cpp.
bool TibiCoopAlgNode::hri_clientMakeActionRequest | ( | ) | [private] |
Definition at line 878 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::loadSentences | ( | ) | [private] |
Definition at line 901 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::mainNodeThread | ( | void | ) | [protected, virtual] |
main node thread
This is the main thread node function. Code written here will be executed in every node loop while the algorithm is on running state. Loop frequency can be tuned by modifying loop_rate attribute.
Here data related to the process loop or to ROS topics (mainly data structs related to the MSG and SRV files) must be updated. ROS publisher objects must publish their data in this process. ROS client servers may also request data to the corresponding server topics.
Implements algorithm_base::IriBaseAlgorithm< TibiCoopAlgorithm >.
Definition at line 80 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::move_baseActive | ( | ) | [private] |
Definition at line 758 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::move_baseDone | ( | const actionlib::SimpleClientGoalState & | state, |
const move_base_msgs::MoveBaseResultConstPtr & | result | ||
) | [private] |
Definition at line 746 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::move_baseFeedback | ( | const move_base_msgs::MoveBaseFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 763 of file tibi_coop_alg_node.cpp.
bool TibiCoopAlgNode::move_baseMakeActionRequest | ( | ) | [private] |
Definition at line 856 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::move_guideActive | ( | ) | [private] |
Definition at line 465 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::move_guideDone | ( | const actionlib::SimpleClientGoalState & | state, |
const tibi_dabo_msgs::guideGoalResultConstPtr & | result | ||
) | [private] |
Definition at line 454 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::move_guideFeedback | ( | const tibi_dabo_msgs::guideGoalFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 470 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::move_guideMakeActionRequest | ( | ) | [private] |
Definition at line 816 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::node_config_update | ( | Config & | config, |
uint32_t | level | ||
) | [protected, virtual] |
dynamic reconfigure server callback
This method is called whenever a new configuration is received through the dynamic reconfigure. The derivated generic algorithm class must implement it.
config | an object with new configuration from all algorithm parameters defined in the config file. |
level | integer referring the level in which the configuration has been changed. |
Implements algorithm_base::IriBaseAlgorithm< TibiCoopAlgorithm >.
Definition at line 931 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::supervisor_callback | ( | const sensor_msgs::Joy::ConstPtr & | msg | ) | [private] |
Definition at line 418 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::tibi_car_actionActive | ( | ) | [private] |
Definition at line 646 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::tibi_car_actionDone | ( | const actionlib::SimpleClientGoalState & | state, |
const tibi_dabo_msgs::guiResultConstPtr & | result | ||
) | [private] |
Definition at line 633 of file tibi_coop_alg_node.cpp.
void TibiCoopAlgNode::tibi_car_actionFeedback | ( | const tibi_dabo_msgs::guiFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 651 of file tibi_coop_alg_node.cpp.
bool TibiCoopAlgNode::tibi_car_actionMakeActionRequest | ( | ) | [private] |
Definition at line 834 of file tibi_coop_alg_node.cpp.
tibi_cmds TibiCoopAlgNode::car_cmd [private] |
Definition at line 90 of file tibi_coop_alg_node.h.
Definition at line 82 of file tibi_coop_alg_node.h.
tibi_states TibiCoopAlgNode::current_state [private] |
Definition at line 148 of file tibi_coop_alg_node.h.
tibi_cmds TibiCoopAlgNode::dabo_cmd [private] |
Definition at line 100 of file tibi_coop_alg_node.h.
std::string TibiCoopAlgNode::dabo_location_id [private] |
Definition at line 101 of file tibi_coop_alg_node.h.
Definition at line 92 of file tibi_coop_alg_node.h.
Definition at line 78 of file tibi_coop_alg_node.h.
iri_goal_database::get_goal TibiCoopAlgNode::get_goal_srv_ [private] |
Definition at line 79 of file tibi_coop_alg_node.h.
Definition at line 103 of file tibi_coop_alg_node.h.
gui_cmds TibiCoopAlgNode::gui_cmd [private] |
Definition at line 111 of file tibi_coop_alg_node.h.
std::string TibiCoopAlgNode::gui_location_id [private] |
Definition at line 112 of file tibi_coop_alg_node.h.
actionlib::SimpleActionClient<tibi_dabo_msgs::sequenceAction> TibiCoopAlgNode::hri_client_client_ [private] |
Definition at line 139 of file tibi_coop_alg_node.h.
bool TibiCoopAlgNode::hri_client_done [private] |
Definition at line 145 of file tibi_coop_alg_node.h.
Definition at line 140 of file tibi_coop_alg_node.h.
joy_cmds TibiCoopAlgNode::joy_cmd [private] |
Definition at line 73 of file tibi_coop_alg_node.h.
actionlib::SimpleActionClient<move_base_msgs::MoveBaseAction> TibiCoopAlgNode::move_base_client_ [private] |
Definition at line 131 of file tibi_coop_alg_node.h.
bool TibiCoopAlgNode::move_base_done [private] |
Definition at line 137 of file tibi_coop_alg_node.h.
Definition at line 132 of file tibi_coop_alg_node.h.
actionlib::SimpleActionClient<tibi_dabo_msgs::guideGoalAction> TibiCoopAlgNode::move_guide_client_ [private] |
Definition at line 115 of file tibi_coop_alg_node.h.
bool TibiCoopAlgNode::move_guide_done [private] |
Definition at line 121 of file tibi_coop_alg_node.h.
Definition at line 116 of file tibi_coop_alg_node.h.
bool TibiCoopAlgNode::new_car_cmd [private] |
Definition at line 89 of file tibi_coop_alg_node.h.
bool TibiCoopAlgNode::new_dabo_cmd [private] |
Definition at line 99 of file tibi_coop_alg_node.h.
bool TibiCoopAlgNode::new_gui_cmd [private] |
Definition at line 110 of file tibi_coop_alg_node.h.
bool TibiCoopAlgNode::new_joy_cmd [private] |
Definition at line 72 of file tibi_coop_alg_node.h.
std::vector< std::vector < std::string > > TibiCoopAlgNode::sentences [private] |
Definition at line 149 of file tibi_coop_alg_node.h.
CMutex TibiCoopAlgNode::supervisor_mutex_ [private] |
Definition at line 71 of file tibi_coop_alg_node.h.
Definition at line 69 of file tibi_coop_alg_node.h.
actionlib::SimpleActionClient<tibi_dabo_msgs::guiAction> TibiCoopAlgNode::tibi_car_action_client_ [private] |
Definition at line 123 of file tibi_coop_alg_node.h.
bool TibiCoopAlgNode::tibi_car_action_done [private] |
Definition at line 129 of file tibi_coop_alg_node.h.
Definition at line 124 of file tibi_coop_alg_node.h.