/web/go_to
#
Caution
This documentation page has been auto-generated.
It may be missing some details.
/web/go_to
Quick Facts
- Category
- Message type
- Direction
⬅️ you normally publish to this topic.
Sets the webpage to be displayed on the touchscreen.
Quick snippets#
$ rostopic pub /web/go_to pal_web_msgs/WebGoTo # press Tab twice to complete
How to use in your code#
1import rospy
2from pal_web_msgs.msg import WebGoTo
3
4if __name__ == "__main__":
5 rospy.init_node("publisher")
6
7 pub = rospy.Publisher("/web/go_to", WebGoTo, queue_size=10)
8 rate = rospy.Rate(10) # 10Hz
9 msg = WebGoTo()
10
11 while not rospy.is_shutdown():
12
13 # check https://github.com/pal-robotics/pal_msgs/tree/indigo-devel/pal_web_msgs/msg/WebGoTo.msg
14 # for the msg structure
15 # msg.data = ...
16 pub.publish(msg)
17
18 rate.sleep()
1#include <ros/ros.h>
2#include <pal_web_msgs/WebGoTo.h>
3
4int main(int argc, char **argv)
5{
6 ros::init(argc, argv, "publisher");
7 ros::NodeHandle n;
8
9 ros::Publisher pub = n.advertise<pal_web_msgs::WebGoTo>("/web/go_to", 10);
10
11 ros::Rate loop_rate(10); // 10Hz
12
13 while (ros::ok())
14 {
15 pal_web_msgs::WebGoTo msg;
16 // check https://github.com/pal-robotics/pal_msgs/tree/indigo-devel/pal_web_msgs/msg/WebGoTo.msg
17 // for the msg structure
18 // msg.data = ...
19 pub.publish(msg);
20
21 ros::spinOnce();
22 loop_rate.sleep();
23 }
24 return 0;
25}
You can also access this topic from a webpage displayed on the robot’s touchscreen via this endpoint:
http://<robot>-0c/topic/web_go_to
(replace <robot>-0c
by the serial number of your own robot).
See REST interface for the general documentation of the REST endpoints and code samples.