When using rostopic list only two topics are shown
I'm just starting to use ROS, so this must be really simple, but when I use rostopic list I get the following output:
turtlebot@m01:~$ rostopic list
/rosout
/rosoutagg
When my expected output is:
/odom
/mobile_base/commands/velocity
/mobile_base/commands/sound
/mobilebase/commands/resetodometry
/mobilebase/sensors/bumperpointcloud
/mobile_base/events/cliff
/camera/rgb/image_color/compressed
/scan
What can be causing this?
Asked by Ausgang on 2016-12-19 09:11:09 UTC
Comments
It seems like you are only running
roscore
and no other nodes...Asked by jsanch2s on 2016-12-19 09:42:17 UTC
You started the nodes with another roscore?
Asked by NEngelhard on 2016-12-19 10:23:34 UTC
whats the output of rosnode list?
Asked by shoemakerlevy9 on 2016-12-19 10:56:23 UTC
I ran roscore and then got the output listed above when using rostopic list. If the case is that I'm not running other nodes, how do I run them? In addition, I'm without access to the setup now, so I'll only be able to run rosnode list later or tomorrow.
Asked by Ausgang on 2016-12-19 11:15:33 UTC
After starting roscore use
$ rosrun [package_name] [node_name]
to start nodes. Once your comfortable starting nodes that way you will want to switch to using launch files and$ rosrun [package_name] [launch_file]
Asked by shoemakerlevy9 on 2016-12-19 11:35:31 UTC
Isn't there a way to start ROS with those nodes already? From what I can gather, the nodes I want are the most basic, things like speed control and such.
Asked by Ausgang on 2016-12-19 13:03:46 UTC
For that you might want to look into roslaunch. A simple example for reference would be this.
Asked by hamzamerzic on 2016-12-19 21:53:27 UTC