IRI ROS Specific Algorithm Class. More...
#include <tibi_dabo_hideandseek_alg_node.h>
IRI ROS Specific Algorithm Class.
Definition at line 47 of file tibi_dabo_hideandseek_alg_node.h.
enum TibiDaboHideandseekAlgNode::states [private] |
Definition at line 96 of file tibi_dabo_hideandseek_alg_node.h.
Constructor.
This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.
Definition at line 4 of file tibi_dabo_hideandseek_alg_node.cpp.
Destructor.
This destructor frees all necessary dynamic memory allocated within this this class.
Definition at line 75 of file tibi_dabo_hideandseek_alg_node.cpp.
void TibiDaboHideandseekAlgNode::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< TibiDaboHideandseekAlgorithm >.
Definition at line 370 of file tibi_dabo_hideandseek_alg_node.cpp.
void TibiDaboHideandseekAlgNode::joy_callback | ( | const sensor_msgs::Joy::ConstPtr & | msg | ) | [private] |
Definition at line 213 of file tibi_dabo_hideandseek_alg_node.cpp.
void TibiDaboHideandseekAlgNode::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< TibiDaboHideandseekAlgorithm >.
Definition at line 80 of file tibi_dabo_hideandseek_alg_node.cpp.
void TibiDaboHideandseekAlgNode::move_baseActive | ( | ) | [private] |
Definition at line 320 of file tibi_dabo_hideandseek_alg_node.cpp.
void TibiDaboHideandseekAlgNode::move_baseDone | ( | const actionlib::SimpleClientGoalState & | state, |
const move_base_msgs::MoveBaseResultConstPtr & | result | ||
) | [private] |
Definition at line 308 of file tibi_dabo_hideandseek_alg_node.cpp.
void TibiDaboHideandseekAlgNode::move_baseFeedback | ( | const move_base_msgs::MoveBaseFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 325 of file tibi_dabo_hideandseek_alg_node.cpp.
void TibiDaboHideandseekAlgNode::move_baseMakeActionRequest | ( | ) | [private] |
Definition at line 343 of file tibi_dabo_hideandseek_alg_node.cpp.
void TibiDaboHideandseekAlgNode::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< TibiDaboHideandseekAlgorithm >.
Definition at line 362 of file tibi_dabo_hideandseek_alg_node.cpp.
void TibiDaboHideandseekAlgNode::odom_callback | ( | const nav_msgs::Odometry::ConstPtr & | msg | ) | [private] |
Definition at line 265 of file tibi_dabo_hideandseek_alg_node.cpp.
void TibiDaboHideandseekAlgNode::people_callback | ( | const iri_perception_msgs::peopleTrackingArray::ConstPtr & | msg | ) | [private] |
Definition at line 180 of file tibi_dabo_hideandseek_alg_node.cpp.
geometry_msgs::PoseStamped TibiDaboHideandseekAlgNode::basePose [private] |
Definition at line 77 of file tibi_dabo_hideandseek_alg_node.h.
int TibiDaboHideandseekAlgNode::gameIteration [private] |
Definition at line 83 of file tibi_dabo_hideandseek_alg_node.h.
int TibiDaboHideandseekAlgNode::gameStatus [private] |
Definition at line 82 of file tibi_dabo_hideandseek_alg_node.h.
Definition at line 91 of file tibi_dabo_hideandseek_alg_node.h.
Definition at line 79 of file tibi_dabo_hideandseek_alg_node.h.
CMutex TibiDaboHideandseekAlgNode::joy_mutex_ [private] |
Definition at line 58 of file tibi_dabo_hideandseek_alg_node.h.
Definition at line 56 of file tibi_dabo_hideandseek_alg_node.h.
actionlib::SimpleActionClient<move_base_msgs::MoveBaseAction> TibiDaboHideandseekAlgNode::move_base_client_ [private] |
Definition at line 70 of file tibi_dabo_hideandseek_alg_node.h.
Definition at line 71 of file tibi_dabo_hideandseek_alg_node.h.
Definition at line 92 of file tibi_dabo_hideandseek_alg_node.h.
const int TibiDaboHideandseekAlgNode::NUM_STATES = STATE_FINISHED-STATE_PLAYING+1 [static, private] |
Definition at line 97 of file tibi_dabo_hideandseek_alg_node.h.
CMutex TibiDaboHideandseekAlgNode::odom_mutex_ [private] |
Definition at line 61 of file tibi_dabo_hideandseek_alg_node.h.
Definition at line 59 of file tibi_dabo_hideandseek_alg_node.h.
bool TibiDaboHideandseekAlgNode::paused [private] |
Definition at line 84 of file tibi_dabo_hideandseek_alg_node.h.
CMutex TibiDaboHideandseekAlgNode::people_mutex_ [private] |
Definition at line 55 of file tibi_dabo_hideandseek_alg_node.h.
Definition at line 53 of file tibi_dabo_hideandseek_alg_node.h.
std::vector<int> TibiDaboHideandseekAlgNode::prev_buttons [private] |
Definition at line 93 of file tibi_dabo_hideandseek_alg_node.h.
int TibiDaboHideandseekAlgNode::previousId [private] |
Definition at line 87 of file tibi_dabo_hideandseek_alg_node.h.
std::vector<double> TibiDaboHideandseekAlgNode::previousXY [private] |
Definition at line 88 of file tibi_dabo_hideandseek_alg_node.h.
bool TibiDaboHideandseekAlgNode::ready2Move [private] |
Definition at line 85 of file tibi_dabo_hideandseek_alg_node.h.
geometry_msgs::PoseStamped TibiDaboHideandseekAlgNode::seekerGoal [private] |
Definition at line 81 of file tibi_dabo_hideandseek_alg_node.h.
geometry_msgs::PoseStamped TibiDaboHideandseekAlgNode::seekerPose [private] |
Definition at line 80 of file tibi_dabo_hideandseek_alg_node.h.
Definition at line 90 of file tibi_dabo_hideandseek_alg_node.h.
Definition at line 94 of file tibi_dabo_hideandseek_alg_node.h.