semio_ros  0.10.6
SemioDeixisNode Class Reference

Simple ROS wrapper around semio::DeicticRecognizer. More...

+ Collaboration diagram for SemioDeixisNode:

Public Types

typedef semio_msgs_ros::DeicticRecognitionResult _DeicticRecognitionResultMsg
 ROS message for the result of deictic recognition for all humanoids. More...
 
typedef semio_msgs_ros::DeicticRecognitionHumanoidItem _DeicticRecognitionHumanoidItemMsg
 ROS message for the result of deictic recognition for a single humanoid. More...
 
typedef semio_msgs_ros::DeicticRecognitionSourceItem _DeicticRecognitionSourceItemMsg
 ROS message for the result of deictic recognition for a single humanoid joint. More...
 
typedef semio_msgs_ros::DeicticRecognitionTopNItem _DeicticRecognitionTopNItemMsg
 ROS message for the result of deictic recognition for a single deictic target. More...
 
typedef semio_msgs_ros::DeicticTargets _DeicticTargetsMsg
 ROS message for a vector of deictic targets. More...
 
typedef semio_msgs_ros::DeicticTarget _DeicticTargetMsg
 ROS message for a single deictic target. More...
 

Public Member Functions

 SemioDeixisNode (ros::NodeHandle &nh_rel, semio::HumanoidSource::Ptr humanoid_source_ptr)
 
void spin ()
 Main loop. More...
 
void targetsCB (_DeicticTargetsMsg::ConstPtr const &msg_ptr)
 ROS callback for deictic targets. More...
 

Data Fields

ros::NodeHandle nh_rel_
 NodeHandle copy used to interface with ROS. More...
 
ros::Publisher result_pub_
 Deictic recognition result publisher. More...
 
ros::Subscriber targets_sub_
 Deictic targets subscriber. More...
 
semio::HumanoidSource::Ptr humanoid_source_ptr_
 Pointer to the input source for humanoids. More...
 
semio::DeicticRecognizer deictic_recognizer_
 Semio deictic recognizer. More...
 

Detailed Description

Simple ROS wrapper around semio::DeicticRecognizer.

Definition at line 10 of file semio_deixis_node.cpp.

Member Typedef Documentation

typedef semio_msgs_ros::DeicticRecognitionHumanoidItem SemioDeixisNode::_DeicticRecognitionHumanoidItemMsg

ROS message for the result of deictic recognition for a single humanoid.

Definition at line 16 of file semio_deixis_node.cpp.

ROS message for the result of deictic recognition for all humanoids.

Definition at line 14 of file semio_deixis_node.cpp.

typedef semio_msgs_ros::DeicticRecognitionSourceItem SemioDeixisNode::_DeicticRecognitionSourceItemMsg

ROS message for the result of deictic recognition for a single humanoid joint.

Definition at line 18 of file semio_deixis_node.cpp.

typedef semio_msgs_ros::DeicticRecognitionTopNItem SemioDeixisNode::_DeicticRecognitionTopNItemMsg

ROS message for the result of deictic recognition for a single deictic target.

Definition at line 20 of file semio_deixis_node.cpp.

ROS message for a single deictic target.

Definition at line 24 of file semio_deixis_node.cpp.

typedef semio_msgs_ros::DeicticTargets SemioDeixisNode::_DeicticTargetsMsg

ROS message for a vector of deictic targets.

Definition at line 22 of file semio_deixis_node.cpp.

Constructor & Destructor Documentation

SemioDeixisNode::SemioDeixisNode ( ros::NodeHandle &  nh_rel,
semio::HumanoidSource::Ptr  humanoid_source_ptr 
)
inline
Parameters
nh_relNodeHandle copy used to interface with ROS.
humanoid_source_ptrPointer to the input source for humanoids.

Definition at line 42 of file semio_deixis_node.cpp.

References semio::DeicticRecognizer::setFilterMaxDuration(), and semio::DeicticRecognizer::setFilterMaxSize().

+ Here is the call graph for this function:

Member Function Documentation

void SemioDeixisNode::spin ( )
inline

Main loop.

  • Trigger ROS callbacks
  • Pass humanoids to deictic recognizer
  • Calculate deictic recognition result
  • Convert deictic recognition result to ROS message
  • Publish deictic recognition result

Definition at line 67 of file semio_deixis_node.cpp.

References semio::DeicticRecognizer::calculateResult(), semio::DeicticRecognizer::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:

void SemioDeixisNode::targetsCB ( _DeicticTargetsMsg::ConstPtr const &  msg_ptr)
inline

ROS callback for deictic targets.

Parameters
msg_ptrConstPtr to the deictic target message

Definition at line 130 of file semio_deixis_node.cpp.

References semio::DeicticRecognizer::getTargets().

+ Here is the call graph for this function:

Field Documentation

semio::DeicticRecognizer SemioDeixisNode::deictic_recognizer_

Semio deictic recognizer.

Definition at line 36 of file semio_deixis_node.cpp.

semio::HumanoidSource::Ptr SemioDeixisNode::humanoid_source_ptr_

Pointer to the input source for humanoids.

Definition at line 34 of file semio_deixis_node.cpp.

ros::NodeHandle SemioDeixisNode::nh_rel_

NodeHandle copy used to interface with ROS.

Definition at line 27 of file semio_deixis_node.cpp.

ros::Publisher SemioDeixisNode::result_pub_

Deictic recognition result publisher.

Definition at line 29 of file semio_deixis_node.cpp.

ros::Subscriber SemioDeixisNode::targets_sub_

Deictic targets subscriber.

Definition at line 31 of file semio_deixis_node.cpp.


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