|
semio_ros
0.10.6
|
Simple ROS wrapper around semio::AttentionRecognizer. More...
Collaboration diagram for SemioAttentionNode:Public Types | |
| typedef semio_msgs_ros::AttentionRecognitionResult | _AttentionRecognitionResultMsg |
| ROS message for the result of attention recognition for all humanoids. More... | |
| typedef semio_msgs_ros::AttentionRecognitionHumanoidItem | _AttentionRecognitionHumanoidItemMsg |
| ROS message for the result of attention recognition for a single humanoid. More... | |
| typedef semio_msgs_ros::AttentionRecognitionJointItem | _AttentionRecognitionJointItemMsg |
| ROS message for the result of attention recognition for a single humanoid joint. More... | |
| typedef semio_msgs_ros::AttentionRecognitionTopNItem | _AttentionRecognitionTopNItemMsg |
| ROS message for the result of attention recognition for a single attention target. More... | |
| typedef semio_msgs_ros::AttentionTargets | _AttentionTargetsMsg |
| ROS message for a vector of attention targets. More... | |
| typedef semio_msgs_ros::AttentionTarget | _AttentionTargetMsg |
| ROS message for a single attention target. More... | |
Public Member Functions | |
| SemioAttentionNode (ros::NodeHandle &nh_rel, semio::HumanoidSource::Ptr humanoid_source_ptr) | |
| void | spin () |
| Main loop. More... | |
| void | targetsCB (_AttentionTargetsMsg::ConstPtr const &msg_ptr) |
| ROS callback for attention targets. More... | |
Data Fields | |
| ros::NodeHandle | nh_rel_ |
| NodeHandle copy used to interface with ROS. More... | |
| ros::Publisher | result_pub_ |
| Attention recognition result publisher. More... | |
| ros::Subscriber | targets_sub_ |
| Attention targets subscriber. More... | |
| semio::HumanoidSource::Ptr | humanoid_source_ptr_ |
| Pointer to the input source for humanoids. More... | |
| semio::AttentionRecognizer | attention_recognizer_ |
| Semio attention recognizer. More... | |
Simple ROS wrapper around semio::AttentionRecognizer.
Definition at line 10 of file semio_attention_node.cpp.
| typedef semio_msgs_ros::AttentionRecognitionHumanoidItem SemioAttentionNode::_AttentionRecognitionHumanoidItemMsg |
ROS message for the result of attention recognition for a single humanoid.
Definition at line 16 of file semio_attention_node.cpp.
| typedef semio_msgs_ros::AttentionRecognitionJointItem SemioAttentionNode::_AttentionRecognitionJointItemMsg |
ROS message for the result of attention recognition for a single humanoid joint.
Definition at line 18 of file semio_attention_node.cpp.
| typedef semio_msgs_ros::AttentionRecognitionResult SemioAttentionNode::_AttentionRecognitionResultMsg |
ROS message for the result of attention recognition for all humanoids.
Definition at line 14 of file semio_attention_node.cpp.
| typedef semio_msgs_ros::AttentionRecognitionTopNItem SemioAttentionNode::_AttentionRecognitionTopNItemMsg |
ROS message for the result of attention recognition for a single attention target.
Definition at line 20 of file semio_attention_node.cpp.
| typedef semio_msgs_ros::AttentionTarget SemioAttentionNode::_AttentionTargetMsg |
ROS message for a single attention target.
Definition at line 24 of file semio_attention_node.cpp.
| typedef semio_msgs_ros::AttentionTargets SemioAttentionNode::_AttentionTargetsMsg |
ROS message for a vector of attention targets.
Definition at line 22 of file semio_attention_node.cpp.
|
inline |
| nh_rel | NodeHandle copy used to interface with ROS. |
| humanoid_source_ptr | Pointer to the input source for humanoids. |
Definition at line 42 of file semio_attention_node.cpp.
|
inline |
Main loop.
Definition at line 53 of file semio_attention_node.cpp.
References semio::AttentionRecognizer::calculateResult(), semio::AttentionRecognizer::getHumanoids(), and semio::TopNList< __Key, __Value, __Order >::values().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
ROS callback for attention targets.
| msg_ptr | ConstPtr to the attention target message |
Definition at line 116 of file semio_attention_node.cpp.
References semio::AttentionRecognizer::getTargets().
Here is the call graph for this function:| semio::AttentionRecognizer SemioAttentionNode::attention_recognizer_ |
Semio attention recognizer.
Definition at line 36 of file semio_attention_node.cpp.
| semio::HumanoidSource::Ptr SemioAttentionNode::humanoid_source_ptr_ |
Pointer to the input source for humanoids.
Definition at line 34 of file semio_attention_node.cpp.
| ros::NodeHandle SemioAttentionNode::nh_rel_ |
NodeHandle copy used to interface with ROS.
Definition at line 27 of file semio_attention_node.cpp.
| ros::Publisher SemioAttentionNode::result_pub_ |
Attention recognition result publisher.
Definition at line 29 of file semio_attention_node.cpp.
| ros::Subscriber SemioAttentionNode::targets_sub_ |
Attention targets subscriber.
Definition at line 31 of file semio_attention_node.cpp.