











INSTALL ROS WITH FEW LINE OF CODE IN UBUNTU





let see how to setup ros in ubuntu with few lines of code

in here I prefer ubuntu 16.04 & ros kinetic version because

you can get all the updated and working packages from ros community





Here you can do it by two ways





and make it executable through below command

chmod + x / path / to /ros_ubuntu_install . sh

then

./ ros_ubuntu_install . sh

Thats it all the things getting complete automatically within 10-15 mints just wait..

check below demo video:













2.





otherwise copy each & every commands below and paste it into terminal





just copy below commands one by one below & paste it terminal

(you should need nice Internet connection it will take some time to complete)





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://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

sudo apt-get update

sudo apt-get install ros-kinetic-desktop-full

sudo rosdep init rosdep update

echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc source ~/.bashrc source /opt/ros/kinetic/setup.bash sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential









CREATE A ROS WORKSPACE

then go to home dir & open one terminal inside the home dir then do/paste below commands one by one





mkdir -p ~/catkin_ws/src cd ~/catkin_ws/ catkin_make source devel/setup.bash echo $ROS_PACKAGE_PATH



