ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
A topic is "created" (and will show up when using ROS introspection tools such as rostopic
) as soon as a publisher or subscriber to that topic is created within a ROS node. From the Python and C++ creating a publisher/subscriber tutorials:
C++:
ros::Publisher chatter_pub = n.advertise<std_msgs::String>("chatter", 1000);
Python:
pub = rospy.Publisher('chatter', String, queue_size=10)
2 | No.2 Revision |
A topic is "created" (and will show up when using ROS introspection tools such as rostopic
) as soon as a publisher or subscriber to that topic is created within a ROS node. From the Python and C++ creating a publisher/subscriber tutorials:
C++:
ros::Publisher chatter_pub = n.advertise<std_msgs::String>("chatter", 1000);
Python:
pub = rospy.Publisher('chatter', String, queue_size=10)