As soon as you have actually finished the missing out on directions for your Deep Discovering Robotic to obtain the numerous “Hello Worlds” operating, you’ll quickly desire attempt making use of several of the ROS visualization devices. To do this, you’ll require ROS set up on a laptop computer or workstation as well as obtain it networked with the robotic. The Turtlebot tutorials do explain this, yet I encountered numerous problems. With any luck, this overview will certainly aid others that walk the very same course.


This is the configuration we’re aiming for:

Networking diagram of Deep Learning Robot and a PC or Mac with a ROS Workstation running in a virtual Ubuntu machine.

The robotic as well as ROS Workstation as well as host COMPUTER or Mac all have vibrant IP addresses designated by DHCP on your router. To stay clear of needing to monitor IP addresses we make use of zeroconf to describe them as “myrobot.local” or whatever your robotic takes place to be called. ROS lovers appear to choose hard-coding IP addresses for factors that leave me.

Below are the actions we will certainly to comply with:

  • Produce your ROS Workstation: an Ubuntu setup running in an online equipment on your COMPUTER or Mac
  • Establish zeroconf networking on both the robotic as well as workstation, as well as inspect it.
  • Establish ROS networking on both the robotic as well as workstation, as well as inspect it.
  • Run a couple of trendy demonstrations to award ourselves for our initiatives.

Get on your own a peaceful mid-day to do this.

Produce Your ROS Workstation

Why do you require a 2nd ROS setup? We have a completely excellent configuration on the robotic itself, so why not simply do every little thing from another location? The response is that quicker instead of later on you’ll wish to make use of RVIZ for imagining video clip, navigating and so on. You can theoretically do this through VNC or a few other remote desktop computer customer, yet I really did not procure it functioning as well as it would certainly place even more pressure on your robotic as well as data transfer.

If you have an old COMPUTER or Mac that you can overwrite with Ubuntu 14.04 then that would certainly be an excellent option as well as most likely offer you far better efficiency. Stopping working that, you’ll require an online equipment with Ubuntu on your present day-to-day equipment. Do not, repeat, do not try to set up ROS on Windows or OS X; you will certainly travel through all type of tortures prior to quiting.

On my Mac I have actually made use of both VMWare Blend (paid) as well as VirtualBox (cost-free) to run an online Ubuntu. I have actually located no genuine distinction in between both (they both draw), so I suggest VirtualBox. At the very least you will not obtain repetitively pitied “updates” that do not address standard troubles like the unreliability of copy/paste in between host as well as visitor os. You’ll obtain unreliability totally free rather.

Mount VirtualBox on your system and after that follow this overview to set up Ubuntu on the VM. Make certain you choose the photo for Ubuntu 14.04; stay clear of various other variations.

As soon as you can visit to Ubuntu, after that set up ROS Indigo. You can set up the more recent ROS Jade, yet the robotic includes Indigo which is a “Long Term Support” launch as well as my propensity is to maintain the very same variation of ROS on both devices.

Networking Setup on the Virtual Equipment

When you have an online Ubuntu operating, you’ll require to choose just how to network it. On my configuration I have the VM look like a different gadget on the connect with its very own IP address. This is so the robotic can discover it as well as stream information. Below’s my setup on VMWARE Blend (Online Equipment > Setups > Network Adapter):


I would certainly likewise suggest offering the Ubuntu visitor system a recognisable name. To do this, visit to Ubuntu as well as make use of STRENGTH to modify/ etc/hostname as well as/ etc/hosts

sudo strength/ etc/hostname
sudo strength/ etc/hosts

Change the existing name (e.g. ‘ubuntu’) with a brand-new name; I make use of“ros-workstation” If you’re not accustomed to Strength, after that kind ‘i’ to begin editing and enhancing at the arrow placement, after that LEAVE as well as: wq! to conserve or LEAVE as well as: q! to give up without conserving. Extra on Strength right here.

Establish zeroconf networking on both the robotic as well as workstation

My following suggestion is to obtain zeroconf (“Bonjour” for Mac customers) established on both gadgets. You can deal with fixed IP addresses as well as without a doubt numerous ROS individuals appear to do simply that. However in a globe where every office or home router makes use of DHCP to create vibrant IPs, why would certainly you trouble? As quickly as you relocate to a brand-new place, you’ll need to alter all your IPs. Much better to allow the facilities deal with that as well as compose

ssh [email protected]

instead of

ssh ubuntu @1921680.7

as well as need to alter that every single time you obtain a brand-new IP address.

Completely establishing your robotic to deal with a Mac is defined right here. If you get on a COMPUTER, ssh right into the robotic as well as do the complying with to set up zeroconf:

sudo apt-get set up netatalk
sudo apt-get set up avahi-daemon
sudo update-rc. d avahi-daemon defaults

A Windows COMPUTER will certainly likewise require Bonjour (the Apple branding of zeroconf) set up. The quickest method to do that is to set up iTunes on Windows and after that inspect.

Inspect Zeroconf works with both Makers

I think for the remainder of the article that when adhering to the Missing out on Directions you relabelled your robotic as “myrobot” as well as you have actually relabelled your ROS Workstation Ubuntu as“ros-workstation” Replace your very own names in all the adhering to.

Visit to Ubuntu on your ROS workstation.

ping myrobot.local

You must obtain a reply comparable to this:

PING myrobot.local (100.1.5) 56(84) bytes of information.
64 bytes from icmp_seq= 1 ttl =64 time =229 ms

Otherwise, check

  • You’re both on the very same WiFi network
  • You have actually replaced your robotic name for ‘myrobot’
  • Zeroconf is set up on your robotic
  • Zeroconf is set up on your ROS Workstation Ubuntu
  • Bonjour is set up on your ROS Workstation if the host OS is Windows

After that inspect that it can see itself:

ping ros-workstation. regional

Currently ssh right into the robotic as well as attempt the reverse examination:

ping ros-workstation. regional

You must obtain a comparable reply. Otherwise, reconsider the above checklist as well as likewise inspect that

  • Your VM is networked to ensure that Ubuntu shows up on the connect with its very own IP address

Ultimately, inspect that the robotic can see itself:

ping myrobot.local

These examinations need to function prior to anything else will. The zeroconf might appear an unneeded difficulty currently, yet it will certainly settle extremely swiftly.

Establishing ROS Networking

Since we have actually established as well as checked networking at the Ubuntu/ zeroconf layers, we can focus on obtaining ROS effectively networked.

There are 2 vital atmosphere variables that require to be established properly on each equipment. They are:

  • ROS_MASTER_URI– The LINK where regional ROS nodes require to head to attach to the ROS Master.
  • ROS_HOSTNAME– The hostname that ROS nodes on various other devices in the network must make use of to call this equipment.

Below are the worths to make use of (replacing your names as suitable):

Setting Variable Deep Discovering Robotic ROS Workstation
ROS_HOSTNAME myrobot.local ros-workstation. regional

The ROS Workstation will certainly make use of http://myrobot.local:11311 to call the ROS master working on the robotic. The robotic will certainly call itself making use of http://localhost:11311 The robotic will certainly inform others that it must be resolved making use of the hostname myrobot.local as well as the ROS Workstation will in a similar way ask to be resolved as ros-workstation. regional. We have actually checked that these mixes really operate in the previous area.

The most basic method to make sure that these atmosphere variables are constantly established is to include them to the.bashrc documents on the robotic as well as on the ROS Workstation Ubuntu. They will certainly ready with every terminal or ssh home window that you open up. To do this, make use of STRENGTH or your favored full-screen editor.

On the robotic:

cd ~

Most likely to completion of the documents, kind i to enter into edit setting as well as paste the following (replacing your names):

export ROS_MASTER_URI =http://localhost:11311
export ROS_HOSTNAME= myrobot.local

Conserve, leave as well as shut the ssh session. Open up a brand-new ssh session as well as inspect that the adhering to commands return the anticipate worths:


On the ROS Workstation:

cd ~

Most likely to completion of the documents, click i to enter into edit setting as well as paste the following:

export ROS_MASTER_URI =http://myrobot.local:11311
export ROS_HOSTNAME= ros-workstation. regional

Conserve, leave as well as shut the incurable home window. Open up a brand-new incurable home window as well as inspect that the adhering to commands return the anticipate worths:


With this, your ROS installments must be set up properly.

Your Award for All This: Video clip Streaming as well as a Factor Cloud

You have actually set up an online equipment, set up ROS, established networking as well as atmosphere variables. You have actually committed a mid-day of your life to this. All of what?

For a beginning, we must have the ability to see the robotic’s cam outcome on the ROS workstation.

ssh right into the robotic as well as kind:

roslaunch turtlebot_bringup minimal.launch

after that begin a 2nd ssh session as well as kind:

roslaunch turtlebot_bringup 3dsensor. launch

as well as a 3rd ssh session as well as kind:

roslaunch turtlebot_teleop keyboard_teleop. launch

On the ROS workstation kind:

rosrun image_view image_view photo:=/ camera/rgb/image _ raw

You must obtain a home window released with the video clip feed.


If you obtain a grey box rather, after that confirm the following:

  • That the atmosphere names are established properly, especially ROS_HOSTNAME on the robotic. Usage printenv to inspect as in the previous area.
  • That the battery is completely billed up. As I have actually stated in other places, both the Kobuki as well as Xtion leading functioning properly when the battery is reduced. Linking into the power is insufficient; the battery needs to be billed.

Currently bring the 3rd ssh home window with the keyboard_teleop node right into emphasis as well as make use of the key-board to drive about as well as spy on your household.

As soon as that’s functioning, attempt this on the ROS Workstation:

roslaunch turtlebot_rviz_launchers view_robot. launch

This will certainly introduce RVIZ, ROS’s major visualisation device. RVIZ typically collapses the very first time you introduce it, as well as the main directions are to merely attempt it once more if this takes place (can you think open resource?). Click as well as make use of the computer mouse to turn the design of your robotic.

Currently search for the checkbox classified “Registered Point Cloud” as well as choose it. Search for the factor cloud that shows up after a couple of secs. Each factor is a pixel of the cam viewport, mapped right into 3D room. Pretty cool.


You’ll discover that the flooring in the factor cloud appears to have actually sunk listed below the degree of the flooring in the 3D room. Checking out the design thoroughly, you’ll see that this is since the ASUS Xtion Pro is placed greater on the Deep Discovering Robotic than on the common Turtlebot. At some time I’ll require to deal with the design.

Please make use of the remarks area to inform me concerning any type of troubles you run into. The factor of these articles is to make points less complicated for you than they were for me.

In a future article, I’ll reveal you just how to utilize this configuration to map your residence making use of BANG and after that autonomously browse around it.

A Variation on Text Growth

You might discover that you’re beginning to do a horrible great deal of keying each time you introduce ROS nodes. My friend Ben Tristem offered me an idea which has actually conserved me numberless time on the Mac– make use of a message development energy like Text Expander. This implies you can kind a brief code like

; tb

as well as it will certainly increase right into

ssh [email protected]
roslaunch turtlebot_bringup minimal.launch

which will immediately visit to the robotic as well as launch the standard Turtlebot nodes. Optional, yet extremely suggested for your fingers as well as your peace of mind. I rely on Windows customers can discover something comparable.