Ask Your Question
0

Setting up remote access on a kobuki with a Hokuyo UST-10LX laser

asked 2019-04-10 00:07:22 -0600

ashu gravatar image

updated 2019-04-10 00:08:31 -0600

I am trying to connect to a Raspberry pi with Ubuntu Mate that I use to control the Kobuki, with my laptop for remote access.

I set up the necessary static IPs and set up the necessary ROS_HOSTNAME and ROS_MASTER_URI settings.However, since my Hokuyo laser is connected using Ethernet, the Ethernet connection seems to be getting the preference and the wifi network and internet becomes unusable on the Raspberry.

Is there a way i can circumvent this? Or am I missing something other than the ROS_HOSTNAME and ROS_MASTER_URI settings on both the PCs?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-04-10 01:00:22 -0600

janindu gravatar image

updated 2019-04-10 01:35:15 -0600

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/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.

edit flag offensive delete link more

Comments

Thanks a lot! This was just what I needed.

ashu gravatar imageashu ( 2019-04-10 02:49:11 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-04-10 00:07:22 -0600

Seen: 27 times

Last updated: Apr 10