ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You need to set the routing table on the Raspberry pi OS. For an example, let's say the Hokuyo is connected via eth0 with IP address 10.0.0.5/24 and the IP address of the Raspberri Pi is 10.0.0.4/25. ROS communication happens via wlan0 where the IP address of the remote PC is 192.168.0.5/24 and the IP address of the Raspberri Pi is something like 192.168.0.4/24, then you need to setup the routing table as follows.

sudo ip route add 192.168.0.0/24 via 192.168.0.4 dev wlan0

sudo ip route add 10.0.0.0/24 via 10.0.0.4 dev eth0

You can check if the routing table is configured properly using ip route show command.

You need to set the routing table on the Raspberry pi OS. For an example, let's say the Hokuyo is connected via eth0 with IP address 10.0.0.5/24 and the IP address of the Raspberri Pi is 10.0.0.4/25. ROS communication happens via wlan0 where the IP address of the remote PC is 192.168.0.5/24 and the IP address of the Raspberri Pi is something like 192.168.0.4/24, then you need to setup the routing table as follows.

sudo ip route add 192.168.0.0/24 via 192.168.0.4 dev wlan0

sudo ip route add 10.0.0.0/24 via 10.0.0.4 dev eth0

You can check if the routing table is configured properly using ip route show command.

After setting the routing table, you can confirm that it's configured properly by pinging 10.0.0.5 and 192.168.0.5 from Raspberri Pi.

You need to set the routing table on the Raspberry pi OS. For an example, let's say the Hokuyo is connected via eth0 with IP address 10.0.0.5/24 and the IP address of the Raspberri Pi is 10.0.0.4/25. ROS communication happens via wlan0 where the IP address of the remote PC is 192.168.0.5/24 and the IP address of the Raspberri Pi is something like 192.168.0.4/24, then you need to setup the routing table as follows.

sudo ip route add 192.168.0.0/24 via 192.168.0.4 192.168.0.5 dev wlan0

sudo ip route add 10.0.0.0/24 via 10.0.0.4 10.0.0.5 dev eth0

You can check if the routing table is configured properly using ip route show command.

After setting the routing table, you can confirm that it's configured properly by pinging 10.0.0.5 and 192.168.0.5 from Raspberri Pi.

You need to set the routing table on the Raspberry pi OS. For an example, let's say the Hokuyo is connected via eth0 with IP address 10.0.0.5/24 and the IP address of the Raspberri Pi is 10.0.0.4/25. 10.0.0.4/24. ROS communication happens via wlan0 where the IP address of the remote PC is 192.168.0.5/24 and the IP address of the Raspberri Pi is something like 192.168.0.4/24, then you need to setup the routing table as follows.

sudo ip route add 192.168.0.0/24 via 192.168.0.5 dev wlan0

sudo ip route add 10.0.0.0/24 via 10.0.0.5 dev eth0

You can check if the routing table is configured properly using ip route show command.

After setting the routing table, you can confirm that it's configured properly by pinging 10.0.0.5 and 192.168.0.5 from Raspberri Pi.