Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
TibiDaboGuideNavAlgNode Class Reference

IRI ROS Specific Algorithm Class. More...

#include <tibi_dabo_guide_nav_alg_node.h>

Inheritance diagram for TibiDaboGuideNavAlgNode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 TibiDaboGuideNavAlgNode (void)
 Constructor.
 ~TibiDaboGuideNavAlgNode (void)
 Destructor.

Protected Member Functions

void addNodeDiagnostics (void)
 node add diagnostics
void mainNodeThread (void)
 main node thread
void node_config_update (Config &config, uint32_t level)
 dynamic reconfigure server callback

Private Member Functions

void hri_clientActive ()
void hri_clientDone (const actionlib::SimpleClientGoalState &state, const tibi_dabo_msgs::sequenceResultConstPtr &result)
void hri_clientFeedback (const tibi_dabo_msgs::sequenceFeedbackConstPtr &feedback)
void hri_clientMakeActionRequest ()
void move_baseActive ()
void move_baseDone (const actionlib::SimpleClientGoalState &state, const move_base_msgs::MoveBaseResultConstPtr &result)
void move_baseFeedback (const move_base_msgs::MoveBaseFeedbackConstPtr &feedback)
void move_baseMakeActionRequest ()
void move_guideGetFeedbackCallback (tibi_dabo_msgs::guideGoalFeedbackPtr &feedback)
void move_guideGetResultCallback (tibi_dabo_msgs::guideGoalResultPtr &result)
bool move_guideHasSucceedCallback (void)
bool move_guideIsFinishedCallback (void)
void move_guideStartCallback (const tibi_dabo_msgs::guideGoalGoalConstPtr &goal)
void move_guideStopCallback (void)
void peopleSet_callback (const iri_perception_msgs::peopleTrackingArray::ConstPtr &msg)

Private Attributes

ros::ServiceClient change_speed_client_
iri_diff_local_planner::change_max_vel change_speed_srv_
guiding_states current_state
double distanceThresholdFar
double distanceThresholdNear
ros::ServiceClient get_goal_client_
iri_goal_database::get_goal get_goal_srv_
actionlib::SimpleActionClient
< tibi_dabo_msgs::sequenceAction
hri_client_client_
bool hri_client_done
tibi_dabo_msgs::sequenceGoal hri_client_goal_
std::string location_id
actionlib::SimpleActionClient
< move_base_msgs::MoveBaseAction
move_base_client_
bool move_base_done
move_base_msgs::MoveBaseGoal move_base_goal_
IriActionServer
< tibi_dabo_msgs::guideGoalAction
move_guide_aserver_
bool new_guide_request
CMutex peopleSet_mutex_
ros::Subscriber peopleSet_subscriber_
double person_distance
bool person_lost
geometry_msgs::PoseStamped person_pose
std::string robot_frame
std::string robot_id
bool success
int target_id
tf::TransformListener tf_listener_

Detailed Description

IRI ROS Specific Algorithm Class.

Definition at line 57 of file tibi_dabo_guide_nav_alg_node.h.


Constructor & Destructor Documentation

Constructor.

This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.

Definition at line 4 of file tibi_dabo_guide_nav_alg_node.cpp.

Destructor.

This destructor frees all necessary dynamic memory allocated within this this class.

Definition at line 51 of file tibi_dabo_guide_nav_alg_node.cpp.


Member Function Documentation

void TibiDaboGuideNavAlgNode::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< TibiDaboGuideNavAlgorithm >.

Definition at line 679 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 516 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 505 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 521 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 632 of file tibi_dabo_guide_nav_alg_node.cpp.

void TibiDaboGuideNavAlgNode::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< TibiDaboGuideNavAlgorithm >.

Definition at line 56 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 609 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 598 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 614 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 650 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 590 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 582 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 570 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 556 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 537 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 548 of file tibi_dabo_guide_nav_alg_node.cpp.

void TibiDaboGuideNavAlgNode::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.

Parameters:
configan object with new configuration from all algorithm parameters defined in the config file.
levelinteger referring the level in which the configuration has been changed.

Implements algorithm_base::IriBaseAlgorithm< TibiDaboGuideNavAlgorithm >.

Definition at line 669 of file tibi_dabo_guide_nav_alg_node.cpp.

Definition at line 412 of file tibi_dabo_guide_nav_alg_node.cpp.


Member Data Documentation

Definition at line 71 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 72 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 109 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 107 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 108 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 73 of file tibi_dabo_guide_nav_alg_node.h.

iri_goal_database::get_goal TibiDaboGuideNavAlgNode::get_goal_srv_ [private]

Definition at line 74 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 87 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 93 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 88 of file tibi_dabo_guide_nav_alg_node.h.

std::string TibiDaboGuideNavAlgNode::location_id [private]

Definition at line 104 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 95 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 101 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 96 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 77 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 103 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 66 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 64 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 113 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 114 of file tibi_dabo_guide_nav_alg_node.h.

geometry_msgs::PoseStamped TibiDaboGuideNavAlgNode::person_pose [private]

Definition at line 112 of file tibi_dabo_guide_nav_alg_node.h.

std::string TibiDaboGuideNavAlgNode::robot_frame [private]

Definition at line 110 of file tibi_dabo_guide_nav_alg_node.h.

std::string TibiDaboGuideNavAlgNode::robot_id [private]

Definition at line 105 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 115 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 84 of file tibi_dabo_guide_nav_alg_node.h.

Definition at line 117 of file tibi_dabo_guide_nav_alg_node.h.


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


tibi_dabo_guide_nav
Author(s): fherrero
autogenerated on Fri Dec 6 2013 23:32:11