/user_input#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/user_input Quick Facts

Category

Touchscreen

Message type

pal_interaction_msgs/Input

Direction

➡️ you normally subscribe to this topic.

Quick snippets#

Check the publication rate#
$ rostopic hz /user_input
Display the data published on the topic#
$ rostopic echo /user_input

How to use in your code#

Subscribe to the topic using Python#
 1import rospy
 2from pal_interaction_msgs.msg import Input
 3
 4def on_data(msg):
 5    # see https://github.com/pal-robotics/pal_msgs/tree/indigo-devel/indigo-devel/pal_interaction_msgs/msg/Input.msg
 6    # for the msg structure
 7    print(msg)
 8
 9if __name__ == "__main__":
10
11    rospy.init_node("subscriber")
12    rospy.Subscriber("/user_input", Input, on_data)
13    rospy.spin()