/look_at_with_style#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/look_at_with_style Quick Facts

Category

Expressive interactions

Message type

hri_actions_msgs/LookAtWithStyle

Direction

⬅️ you normally publish to this topic.

Set a target for the robot to look at, while letting you configure how the gaze will be performed.

Quick snippets#

Publish data on the topic#
$ rostopic pub /look_at_with_style hri_actions_msgs/LookAtWithStyle # press Tab twice to complete

How to use in your code#

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