/humans/candidate_matches#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/humans/candidate_matches Quick Facts

Category

Social perception

Message type

hri_msgs/IdsMatch

Direction

⬅️ you normally publish to this topic.

Potential matches (eg, associations) between detected faces, bodies, voices and persons.

Quick snippets#

Publish data on the topic#
$ rostopic pub /humans/candidate_matches hri_msgs/IdsMatch # press Tab twice to complete

How to use in your code#

Publish to the topic using Python#
 1import rospy
 2from hri_msgs.msg import IdsMatch
 3
 4if __name__ == "__main__":
 5    rospy.init_node("publisher")
 6
 7    pub = rospy.Publisher("/humans/candidate_matches", IdsMatch, queue_size=10)
 8    rate = rospy.Rate(10) # 10Hz
 9    msg = IdsMatch()
10
11    while not rospy.is_shutdown():
12
13        # check http://docs.ros.org/en/api/hri_msgs/html/msg/IdsMatch.html
14        # for the msg structure
15        # msg.data = ...
16        pub.publish(msg)
17
18        rate.sleep()