/robot_face/overlay#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/robot_face/overlay Quick Facts

Category

Expressive interactions

Message type

hri_actions_msgs/FaceOverlay

Sets a background (or foreground) image for the face/eyes of the robot. You can specify a duration or keep it until the action is cancelled, and animation are also supported. See Background and overlays for details.

Quick snippets#

Send a goal from the command-line#
$ rostopic pub /robot_face/overlay/goal hri_actions_msgs/FaceOverlayActionGoal # press Tab to complete the message prototype

How to use in your code#

Call the action from a Python script#
#!/usr/bin/env python

import rospy
import actionlib
from hri_actions_msgs.msg import *


if __name__ == "__main__":

    client = actionlib.SimpleActionClient("/robot_face/overlay", hri_actions_msgs.msg.FaceOverlayAction)
    client.wait_for_server()

    # check http://docs.ros.org/en/api/hri_actions_msgs/html/msg/FaceOverlay.html
    # for the possible goal parameters
    goal = hri_actions_msgs.msg.FaceOverlayGoal(param1=..., param2=...)

    client.send_goal(goal)
    client.wait_for_result()

    rospy.loginfo("Action returned: %s" % client.get_result())