EasyManua.ls Logo

kaarta STENCIL 2 - Setting Computer as Stencil 2 ROS Master

kaarta STENCIL 2
147 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
139
SETTING COMPUTER TO STENCIL 2 ROS MASTER
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
ECHOING THE LOCALIZATION TOPIC
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

Table of Contents

Other manuals for kaarta STENCIL 2