ROS Installation| Melodic| Ubuntu Virtual box| Blackkeyhole - Black keyhole

welcome to our keyhole, we provide you various knowledge from various sources such as Electric&Electronic, Health, Arduino, IOT, Diy projects, A/l past paper and model paper, Even though you can keep in touch with current technology

ROS Installation| Melodic| Ubuntu Virtual box| Blackkeyhole

Share This

 





What is ROS ?


Hello everyone after a long time today we will be going to take look at ROS. Mostly it is used by robotics developers to program robots. It makes abstraction between the hardware and software. That’s why or not most of the software developers get into the(voice edit) field of robotics. Because Robotic is the combination of Mechanical+Electronics+software. Here The ROS comes under the abstraction between the hardware and software. ROS stands for Robotic operating system. But ROS is not a real operating system it goes on the top of the layer of the Linux ubuntu operating system. Probably it works as a framework software tool to interact with the hardware tools of robots. 


Before ROS comes into market you need a lot to know about electronics how the programs are going to interact with it. It’s like a computer in the ’80s. ROS is like a window for pc where you can use software into that as well as you can use that same software into another pc. In the same way, when you have ROS you can share the program among different robots such as drones, two-wheeled robots or four wheeled robots. In ROS there called topics/services/messages. It takes datas then make robot to take action.  ROS works on Linux, Ubuntu,Linux Debian.


Now you have come up with the doubt that what’s the difference of  using direct arduino code and using ros ? Arduino allows to build small robots with simple logic controls with limitted computational power and software. When the developer gets experienced logics and features and task of robots get increased.Ros would allows to use complex algorithm such as SLAM, path planning with wider library resources. so this would much harder to handle those parts in single arduino board. Arduino could only can able to control sensors and motors. But you can use ROS node to control motors using ROS.


So for that today we will be going to take look at how we will be going to install Ros on your ubuntu virtual machine.


Here my ubuntu version is 18.04. You have to consider when you are installing ROS, the ubuntu version must be matched with the version of your ROS distribution that has been mentioned on the ROS official page. 

        

  • check here my previous tutorials
  1.  ESP32-CAM Face detection|Face Recognition    
  2. Machine to Machine Interactions
  3.  mesh networking- explained


1.setup your source list

  

     sudo sh -c 'echo "deb http://packages.ros.org/ros/

ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list



2. Give this command to Setup your sources list

     

      sudo apt install curl


sudo apt-key adv --keyserver

'hkp://keyserver.ubuntu.com:80' --recv-key

C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654


3. Make sure to update your packages


       sudo apt update


4. To install recommended full desktop version of ros use this command to install ros…you can change the ros distribution version accordance to your needs


   sudo apt install ros-melodic-desktop-full


5. It's convenient if the ROS environment variables are automatically added to your bash session every time a new shell is launched


    echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc

source ~/.bashrc



6. To create and manage your own ROS workspaces, there are various requirements and tools are there . to install those tools and dependencies, run the following command


 sudo apt install python-rosdep python-rosinstall python-rosinstall-

generator python-wstool build-essential



7. Before you can use many ROS tools, you will need to initialize rosdep. rosdep enables you to easily install system dependencies for source you want to compile and is required to run some core components in ROS


    sudo apt install python-rosdep



8. With the following, you can initialize rosdep


       sudo rosdep init

rosdep update

 

You can make Bussiness queries by using the business queries section. You can find that at the bottom of this page

  • You can make queries related to place ads, product placement, and advertising
  • make project queries related to DIY project section (college and school students for their projects)


Create catkin workspace

 

     $ mkdir -p ~/catkin_ws/src

$ cd ~/catkin_ws/

$ catkin_make


$ catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3

$ source devel/setup.bash


$ echo $ROS_PACKAGE_PATH

/home/youruser/catkin_ws/src:/opt/ros/kinetic/share



No comments:

Post a Comment

business queries

Pages