Skip to main content

Remote Access

Connecting with ROSbot over the internet

You can access the robot not only in LAN but also over the Internet. The connection is based on Husarnet VPN.

Find the Join Code

To connect your devices to the same Husarnet VPN network you need to use the Join Code associated with that network.

You will find your Join Code in your account at https://app.husarnet.com

-> Click on the desired network
-> Add element button
-> Join Code tab

Connecting your ROSbot

info

Brand new ROSbots may have the operating system image with Husarnet already connected to TheConstructSim platform. If you want to connect the robot to your own computer instead, remove the content of /var/lib/husarnet:

sudo rm -rf /var/lib/husarnet
husarion@rosbot2r:/home/husarion$
sudo systemctl enable husarnet
husarion@rosbot2r:/home/husarion$
sudo systemctl start husarnet
husarion@rosbot2r:/home/husarion$
sudo husarnet join PASTE_YOUR_JOIN_CODE_HERE rosbot

Connecting your laptop

Install Husarnet VPN client on your laptop (for Linux):

user@mylaptop:/home/user$
curl -s https://install.husarnet.com/install.sh | sudo bash
user@mylaptop:/home/user$
sudo systemctl restart husarnet
user@mylaptop:/home/user$
sudo husarnet join PASTE_YOUR_JOIN_CODE_HERE mylaptop

If you have another OS on your computer, please find the supported options here.

Testing the connection

That's all - now you can access the robot over the Internet and use your ROSbot's hostname instead of IPv4 addr, eg.:

user@mylaptop:/home/user$
ssh husarion@rosbot2r

After that you should see:

ROSbot terminl

To get more information about using Husarnet visit this tutorial for quick start