topic question
ubuntu 16.04 ROS kinetic
as per http://wiki.ros.org/ROS/Tutorials/Und... , i have listed my verbose details on topics in use rn:
~$ rostopic list -v
Published topics:
* /turtle1/color_sensor [turtlesim/Color] 1 publisher
* /turtle1/cmd_vel [geometry_msgs/Twist] 1 publisher
* /rosout [rosgraph_msgs/Log] 4 publishers
* /rosout_agg [rosgraph_msgs/Log] 1 publisher
* /turtle1/pose [turtlesim/Pose] 1 publisher
Subscribed topics:
* /turtle1/cmd_vel [geometry_msgs/Twist] 2 subscribers
* /rosout [rosgraph_msgs/Log] 1 subscriber
* /statistics [rosgraph_msgs/TopicStatistics] 1 subscriber
then I tried $ rostopic list -p
to see the list of publishers.
/rosout
/rosout_agg
/turtle1/cmd_vel
/turtle1/color_sensor
/turtle1/pose
- I did not expect to see the names of topics here because I did not understand that the publishers and subscribers themselves are actually the topics. I would have thought that the pubs and subs would just be nodes. Can someone explain why this is?
- are all of these topics only topics or can a topic also be a node or a message?
- just to check my understanding, is this right? a topic recieves a message from a node and gives it to a different node? does it sometimes give it to a different topic like could it be a recursive path through many things or like a function in algebra where you may have one message and one topic goes to more than one node ?
This question would be easier to read (and answer) if you use the Preformat Text (
101010
) button on the commands that you ran and the terminal output.@binarybabe: have you read the Concepts page on the wiki? That should answer some of your questions. Also, I'll reiterate my advise from #q269540 to pick up a book or two about ROS.
rosout is a node and /rosout is also a topic. that clears a lot up for me actually. thank you
I'm not understanding this. Is this an answer to your question or a comment?