139
S E T T I N G C O M P U T E R T O S T E N C I L 2 R O S M A S T E R
To make this change only apply to the current terminal window:
In a terminal window run export ROS_MASTER_URI=http://Stencil:11311. If you do this, run this
command every time you open a new terminal window.
To make this change permanent (until removed manually.)
In a terminal window run sudo gedit ~/.bashrc and add this line to the end of the file: export
ROS_MASTER_URI=http://Stencil:11311. Save and Close the file. Run source ~/.bashrc to apply to
the current terminal window.
To verify it is working, open a terminal window on Stencil 2 and run roscore. While the core is still
running open a new terminal window and type rosrun rospy_tutorials talker.py. It should start
printing out Hello World with time stamps. While both are running on Stencil 2, in a terminal
window on the Customer Computer run rosrun rospy_tutorials listener.py. It should start
printing acknowledgement messages that match the talker messages. Example message:
[INFO] [WallTime: 1490207760.029760] /listener_23198_1490207742046I heard hello world
1490207772.55
If there is any issue with this test, visit this page for debugging options:
http://wiki.ros.org/ROS/NetworkSetup
E C H O I N G T H E L O C A L I Z A T I O N T O P I C
Start mapping or localization on Stencil 2 by selecting the mapping button. On the Customer
Computer in a terminal window run:
If in mapping mode: rostopic echo –c /integrated_to_init/pose
If in localization mode: rostopic echo –c /integrated_to_map/pose