IRI ROS Specific Algorithm Class. More...
#include <object_detection_alg_node.h>
IRI ROS Specific Algorithm Class.
Definition at line 60 of file object_detection_alg_node.h.
enum ObjectDetectionAlgNode::clients [private] |
Definition at line 115 of file object_detection_alg_node.h.
enum ObjectDetectionAlgNode::states [private] |
Definition at line 112 of file object_detection_alg_node.h.
Constructor.
This constructor initializes specific class attributes and all ROS communications variables to enable message exchange.
Definition at line 5 of file object_detection_alg_node.cpp.
Destructor.
This destructor frees all necessary dynamic memory allocated within this this class.
Definition at line 47 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::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< ObjectDetectionAlgorithm >.
Definition at line 462 of file object_detection_alg_node.cpp.
bool ObjectDetectionAlgNode::detectOject | ( | std::string & | obj_tag | ) | [private] |
Definition at line 130 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::follow_targetActive | ( | ) | [private] |
Definition at line 367 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::follow_targetDone | ( | const actionlib::SimpleClientGoalState & | state, |
const iri_nav_msgs::followTargetResultConstPtr & | result | ||
) | [private] |
Definition at line 355 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::follow_targetFeedback | ( | const iri_nav_msgs::followTargetFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 372 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::follow_targetMakeActionRequest | ( | ) | [private] |
Definition at line 437 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::hriActive | ( | ) | [private] |
Definition at line 334 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::hriDone | ( | const actionlib::SimpleClientGoalState & | state, |
const tibi_dabo_msgs::sequenceResultConstPtr & | result | ||
) | [private] |
Definition at line 322 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::hriFeedback | ( | const tibi_dabo_msgs::sequenceFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 339 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::hriMakeActionRequest | ( | const std::vector< std::string > & | xml_files | ) | [private] |
Definition at line 413 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::image_callback | ( | const sensor_msgs::ImageConstPtr & | msg | ) | [private] |
Definition at line 267 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::loquendoActive | ( | ) | [private] |
Definition at line 301 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::loquendoDone | ( | const actionlib::SimpleClientGoalState & | state, |
const iri_common_drivers_msgs::ttsResultConstPtr & | result | ||
) | [private] |
Definition at line 290 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::loquendoFeedback | ( | const iri_common_drivers_msgs::ttsFeedbackConstPtr & | feedback | ) | [private] |
Definition at line 306 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::loquendoMakeActionRequest | ( | const std::string & | msg | ) | [private] |
Definition at line 395 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::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< ObjectDetectionAlgorithm >.
Definition at line 53 of file object_detection_alg_node.cpp.
void ObjectDetectionAlgNode::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< ObjectDetectionAlgorithm >.
Definition at line 455 of file object_detection_alg_node.cpp.
states ObjectDetectionAlgNode::current_state_ [private] |
Definition at line 113 of file object_detection_alg_node.h.
Definition at line 108 of file object_detection_alg_node.h.
bool ObjectDetectionAlgNode::cv_ptr_init [private] |
Definition at line 105 of file object_detection_alg_node.h.
actionlib::SimpleActionClient<iri_nav_msgs::followTargetAction> ObjectDetectionAlgNode::follow_target_client_ [private] |
Definition at line 96 of file object_detection_alg_node.h.
Definition at line 97 of file object_detection_alg_node.h.
bool ObjectDetectionAlgNode::head_busy [private] |
Definition at line 107 of file object_detection_alg_node.h.
bool ObjectDetectionAlgNode::hri_busy [private] |
Definition at line 106 of file object_detection_alg_node.h.
actionlib::SimpleActionClient<tibi_dabo_msgs::sequenceAction> ObjectDetectionAlgNode::hri_client_ [private] |
Definition at line 90 of file object_detection_alg_node.h.
CMutex ObjectDetectionAlgNode::image_mutex_ [private] |
Definition at line 74 of file object_detection_alg_node.h.
Definition at line 69 of file object_detection_alg_node.h.
Definition at line 72 of file object_detection_alg_node.h.
IplImage* ObjectDetectionAlgNode::ipl_scaledImage [private] |
Definition at line 109 of file object_detection_alg_node.h.
Definition at line 64 of file object_detection_alg_node.h.
actionlib::SimpleActionClient<iri_common_drivers_msgs::ttsAction> ObjectDetectionAlgNode::loquendo_client_ [private] |
Definition at line 83 of file object_detection_alg_node.h.
Definition at line 84 of file object_detection_alg_node.h.
const unsigned int ObjectDetectionAlgNode::NUM_CLIENTS = RIGHT_ARM_-TTS_+1 [static, private] |
Definition at line 116 of file object_detection_alg_node.h.
clsParameters ObjectDetectionAlgNode::parameters [private] |
Definition at line 110 of file object_detection_alg_node.h.
geometry_msgs::PoseStamped ObjectDetectionAlgNode::PoseStamped_msg_ [private] |
Definition at line 68 of file object_detection_alg_node.h.
Definition at line 67 of file object_detection_alg_node.h.