Network configuration problem: connecting the master and slave.

asked 2016-09-08 04:16:53 -0500

Azhar gravatar image

updated 2016-09-08 04:50:34 -0500

i got two laptops, A and B. i need to control a turtlesim node in B(slave) from A(Master) using teleops node.

Laptop A: I am using a virtual machine (UBUNTU 14.04) in windows 10. Wifi.

Laptop B : Jetson TK1, embedded computer. Ethernet

i set up the connections by exporting the IP address from both and making A as the master. When i run any node on B, nth appears other than a blinking cursor on the next line.

I tried pinging to each com but to no avail. I tried running roswtf and it just says that ros master isnt connected.

So i am assuming there is some error in network configuration between the two.

Does that mean i should use VPN/OpenVPN? if so, how to establish this connection and ensure that there is bidirectional networking between A and B.

New to ROS family:)

edit retag flag offensive close merge delete

Comments

Just making sure: have you checked the wiki/ROS/NetworkSetup and the wiki/ROS/Tutorials/MultipleMachines pages?

gvdhoorn gravatar image gvdhoorn  ( 2016-09-08 04:30:23 -0500 )edit

Yeap i have but i cant even seem to ping/ssh etc. Do you think it is something to do with me not on the same network? How do i fix that?

is there any way to check that i am on the same network?

Azhar gravatar image Azhar  ( 2016-09-08 04:48:37 -0500 )edit

If you can't ping between the hosts, then that is the first thing to fix. Make sure your VM is on a bridged network connection, not NAT-ted.

gvdhoorn gravatar image gvdhoorn  ( 2016-09-08 05:34:26 -0500 )edit

hey gvdgoorn, once i change the settings in my oracle virtual machine from NAT to bridged adapters, i cant connect to the internet once i start the virtual machine.

Azhar gravatar image Azhar  ( 2016-09-09 03:50:55 -0500 )edit

Your VM can't connect to the internet, or your host machine can't connect to the internet?

gvdhoorn gravatar image gvdhoorn  ( 2016-09-09 04:06:41 -0500 )edit

my vm cant connect to the internet. i am really lost sorry.

Azhar gravatar image Azhar  ( 2016-09-09 05:33:09 -0500 )edit

You probably don't have a DHCP server on the network connected to the interface that you bridge into your VM (or the DHCP server doesn't hand out IPs to your VM). You can try setting up the interface in the VM yourself (ie eth0 in Ubuntu). host only would also not allow i'net usage in the VM.

gvdhoorn gravatar image gvdhoorn  ( 2016-09-09 05:55:06 -0500 )edit

Which interface did you choose to bridge your VM nic to? How does your Windows machine get its IP?

gvdhoorn gravatar image gvdhoorn  ( 2016-09-09 05:55:47 -0500 )edit