|Note: This tutorial assumes that you have completed the previous tutorials: ROS NetworkSetup and ROS EnvironmentVariables.|
|Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.|
Network configuration for RochDescription: How to configure Network for Roch
Tutorial Level: BEGINNER
In this section, we just need to configure ROS_MASTER_URI and ROS_HOSTNAME correctly to ensure the ros communication channels can find each other.
Jeston Board Network
This is network configuration for Jeston Board Network.
Configure IP addresses
Because Roch have own PC, so the configuration is done before shipment. Roch using WIFI, and with IP address is 192.168.1.100 by default, also you can change. With password on Roch board is ubuntu, also the same with root on Roch board.
Find WIFI on Roch with name Roch, connect using password rochsyrobot.
- Checkout your IP addresses in WIFI:
wlan0 Link encap:Ethernet HWaddr ... inet addr:192.168.1.109 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: ... Scope:... UP BROADCAST RUNNING MULTICAST MTU:... Metric:.. RX packets:... errors:0 dropped:0 overruns:0 frame:... TX packets:... errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:... (1.9 MB) TX bytes:... (324.6 KB) Interrupt:17
so, your ip addresses is 192.168.1.109.
Just need configure you own PC is enough. Open your computer and open ~/.bashrc using your favorite editor such as gedit:
export ROS_HOSTNAME=<your_own_ip_in_wifi> export ROS_MASTER_URI=http://192.168.1.100:11311
export ROS_HOSTNAME=192.168.1.109 export ROS_MASTER_URI=http://192.168.1.100:11311
Now, configuration is done.
For now, you can using steps following for test:
- On your PC, using following command:
- You will get message that need put password if you have a strong connection with Roch.
In this section, we need two PC, one is for Roch, another is for your workstation.
We called one PC Roch, another is PC.
This is easy configure on PC with WIFI. Just need open one Hotspot.
You can choose WIFI name, password and so on which you like.
After you configure your Roch. You can test using preceding way.
About more configuration see: