Installation on Windows
Installation on windows:
Installation instructions were copied from here: https://janbernloehr.de/2017/06/10/ros-windows
Prerequisite: You need to enable WSL (Windows Subsystem for Linux) for this to work.
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116 sudo apt-get update sudo apt-get install ros-melodic-desktop-full sudo rosdep init rosdep updateIf it gives error
gpg dirmngr IPC connect call failedthen run the following instead:sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' curl -sL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x5523BAEEB01FA116" | sudo apt-key add sudo apt-get update sudo apt-get install ros-melodic-desktop-full sudo rosdep init rosdep updateIf you want to source ros lunar automatically for ever bash session, then:
echo "source /opt/ros/lunar/setup.bash" >> ~/.bashrc source ~/.bashrcInstall the Ximg X Server after downloading from here: https://sourceforge.net/projects/xming/
After you have installed Xming, you also need to configure WSL to use it. To do so modify you .bashrc as follows
echo "export DISPLAY=:0" >> ~/.bashrc source ~/.bashrc
Testing the Installation
Start a new bash prompt and run
roscoreStart a second bash prompt
Create a new file
publish.pywith the contentsRun the publisher
python publish.pyStart a third bash prompt
Create a new file
subscribe.pywith the contentsRun the subscriber
python subscribe.py
Running all the above steps should give the following output:

Testing the Installation usign Xming
Start a new bash prompt and run
roscore.Start a second bash prompt and run
rosrun turtlesim turtle_teleop_key.Start a third bash prompt and run
rosrun turtlesim turtlesim_node. You can control the turtle by using the arrow keys by going back to the second prompt.

Running Multiple instances of shell on the single instance
For this, you need to have tmux installed in your system. A good starting resouce is https://hackernoon.com/a-gentle-introduction-to-tmux-8d784c404340
If you want to delve deeper, here is another: https://leanpub.com/the-tao-of-tmux/read
Last updated