Skip to content

ros4hri/pyhri

Repository files navigation

Documentation Status

pyhri: Python wrapper for the ROS4HRI framework

Note: this repository only contains ROS 1 support. For ROS 2, check the libhri repository.

Documentation

API Documentation: https://pyhri.readthedocs.io

Example usage

import rospy
from hri import HRIListener

rospy.init_node("pyhri_test")

hri = HRIListener()

# (start a ROS4HRI-compatible face detector like hri_face_detect)

# access the detected faces:
for id, face in hri.faces.items():
    print("Currently seeing face %s" % id)

# (start a ROS4HRI-compatible person identification pipeline)
# (for instance, hri_face_identification and hri_person_manager)

# access known people:
for id, person in hri.tracked_persons.items():
    print("Person %s is bound to face %s" % (id, person.face.id))


# rospy.spin()

About

[beta] Python library to facilitate access and manipulation of ROS4HRI pipelines

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •