/touch_web_state#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/touch_web_state Quick Facts

Category

Touchscreen

Message type

pal_web_msgs/TouchWeb

Direction

➡️ you normally subscribe to this topic.

Quick snippets#

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

How to use in your code#

Subscribe to the topic using Python#
 1import rospy
 2from pal_web_msgs.msg import TouchWeb
 3
 4def on_data(msg):
 5    print(msg)
 6
 7if __name__ == "__main__":
 8
 9    rospy.init_node("subscriber")
10    rospy.Subscriber("/touch_web_state", TouchWeb, on_data)
11    rospy.spin()