Difference between revisions of "Examining the Simple Publisher and Subscriber"

From Lofaro Lab Wiki
Jump to: navigation, search
(Created page with "1) In a new terminal run roscore: <nowiki>roscore</nowiki> 2) '''In a new terminal''' (terminal 2) go to your workspace and source your devel file(if you used catkin like...")
(No difference)

Revision as of 10:42, 22 October 2014

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.