Examining the Simple Publisher and Subscriber

From Lofaro Lab Wiki
Revision as of 10:42, 22 October 2014 by Mhatfield (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1) In a new terminal run roscore:

  roscore

2) In a new terminal (terminal 2) go to your workspace and source your devel file(if you used catkin like this series of tutorials):

  cd ~/catkin_ws
source ./devel/setup.bash

3) In terminal 2, run the talker:

  rosrun beginner_tutorials talker

This terminal should begin to print "hello world" messages.

4) In a new terminal (terminal 3) go to your workspace and source your devel file(if you used catkin like this series of tutorials):

  cd ~/catkin_ws
source ./devel/setup.bash

5) In terminal 3, run the listener:

  rosrun beginner_tutorials listener

This terminal should begin to print "I heard hello world" messages.