creating rostopic
Hi, I am confused in how to create ROSTOPICs. In case of ROSMSG,one has to create a msg folder and then .msg file .Does one has to do the similar process for creating ROSTOPIC ?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Hi, I am confused in how to create ROSTOPICs. In case of ROSMSG,one has to create a msg folder and then .msg file .Does one has to do the similar process for creating ROSTOPIC ?
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)
Asked: 2016-08-02 09:54:19 -0500
Seen: 2,222 times
Last updated: Aug 02 '16
what is /rostopic_10245_1493704203398
Node doesn't receive message, but rostopic list/info sees it [closed]
how to turn my robot with different controllers?
rostopic got stuck in publishing and latching message for 3.0 seconds"
Unreliable subscribers based on launch order
How to publish a ROS msg on Linux terminal
How to modify a model plugin to publish data to a rostopic or ros node?
rostopic echo does not work with Gazebo topics and my own topics