Programming Robots with ROS


Book Description

Chapter 3. Topics; Publishing to a Topic; Checking That Everything Works as Expected; Subscribing to a Topic; Checking That Everything Works as Expected; Latched Topics; Defining Your Own Message Types; Defining a New Message; Using Your New Message; When Should You Make a New Message Type?; Mixing Publishers and Subscribers; Summary; Chapter 4. Services; Defining a Service; Implementing a Service; Checking That Everything Works as Expected; Other Ways of Returning Values from a Service; Using a Service; Checking That Everything Works as Expected; Other Ways to Call Services; Summary.




Building Smart Robots Using ROS


Book Description

A beginner’s guide to learn ROS, robotics platform, and practice building robotics system KEY FEATURES ● A step-by-step guide covering the robot's design, assembly, navigation and control. ● Numerous techniques, ROS packages, object detection and image processing concepts included. ● Practical exercises and sample codes to robotics design, simulation, and visualization tools. DESCRIPTION This book is a practical introduction to the Robotics operating system (ROS). It will expose you to the essential principles, tools, and packages in ROS and assist you in configuring and recombining components for additional tasks. If you are new to the world of robotics, you will enjoy the companionship of this book as it guides you through the process of building your first robot. The book introduces robotics and advances through numerous concepts such as sensors and actuators, SLAM, Aruco markers, CAD (computer-aided design), React native application development, image processing in ROS, machine learning and object detection. Every point raised above is illustrated in a live robotics environment. Along the way, other packages required for developing ROS apps will be presented, including serial, OpenCV, and cv bridge. You'll learn about tools like SolidWorks, Moveit, Rviz, as well as simulation platforms like gazebo and turtlesim, which will give you a complete picture of what it takes to build a robot. This book presents an in-depth examination of Robot Operating Systems (ROS), the sole foundation for developing robotics applications. The book guides the readers through investigating and embedding machine learning code to introduce intelligence into the robot. WHAT YOU WILL LEARN ● Develop a stronghold on basics of robotics with code samples and illustrations. ● Familiarity with ROS, the configuration of nodes, and 3D robot simulations. ● Learn how to publish data to the ROS network for web integration. ● Learn about SLAM, CAD, React Native, and ROS image processing. ● Learn about Artificial Intelligence principles and object detection with ROS. ● Complete design, simulation, and assembly of a robot. WHO THIS BOOK IS FOR The book is aimed at robotics developers, hardware product designers, full-stack application developers, machine learning enthusiasts, and students who want to obtain real-world experience in robotics development from start to finish. Having some experience with Ubuntu and the python programming language would be helpful. TABLE OF CONTENTS 1. ROS 2. Writing Nodes 3. Sensors and Actuators 4. ROS SERIAL 5. Web interface 6. Turtle Sim Simulation 7. Designing a robot 8. Gazebo 9. Moveit 10. Rviz 11. Vision 12. Aruco Markers 13. SLAM 14. React Native App 15. Artificial Intelligence




ROS Robotics Projects


Book Description

Build a variety of awesome robots that can see, sense, move, and do a lot more using the powerful Robot Operating System About This Book Create and program cool robotic projects using powerful ROS libraries Work through concrete examples that will help you build your own robotic systems of varying complexity levels This book provides relevant and fun-filled examples so you can make your own robots that can run and work Who This Book Is For This book is for robotic enthusiasts and researchers who would like to build robot applications using ROS. If you are looking to explore advanced ROS features in your projects, then this book is for you. Basic knowledge of ROS, GNU/Linux, and programming concepts is assumed. What You Will Learn Create your own self-driving car using ROS Build an intelligent robotic application using deep learning and ROS Master 3D object recognition Control a robot using virtual reality and ROS Build your own AI chatter-bot using ROS Get to know all about the autonomous navigation of robots using ROS Understand face detection and tracking using ROS Get to grips with teleoperating robots using hand gestures Build ROS-based applications using Matlab and Android Build interactive applications using TurtleBot In Detail Robot Operating System is one of the most widely used software frameworks for robotic research and for companies to model, simulate, and prototype robots. Applying your knowledge of ROS to actual robotics is much more difficult than people realize, but this title will give you what you need to create your own robotics in no time! This book is packed with over 14 ROS robotics projects that can be prototyped without requiring a lot of hardware. The book starts with an introduction of ROS and its installation procedure. After discussing the basics, you'll be taken through great projects, such as building a self-driving car, an autonomous mobile robot, and image recognition using deep learning and ROS. You can find ROS robotics applications for beginner, intermediate, and expert levels inside! This book will be the perfect companion for a robotics enthusiast who really wants to do something big in the field. Style and approach This book is packed with fun-filled, end-to-end projects on mobile, armed, and flying robots, and describes the ROS implementation and execution of these models.




A Gentle Introduction to ROS


Book Description

ROS (Robot Operating System) is rapidly becoming a de facto standard for writing interoperable and reusable robot software. This book supplements ROS's own documentation, explaining how to interact with existing ROS systems and how to create new ROS programs using C++, with special attention to common mistakes and misunderstandings. The intended audience includes new or potential ROS users.




Effective Robotics Programming with ROS


Book Description

Find out everything you need to know to build powerful robots with the most up-to-date ROS About This Book This comprehensive, yet easy-to-follow guide will help you find your way through the ROS framework Successfully design and simulate your 3D robot model and use powerful robotics algorithms and tools to program and set up your robots with an unparalleled experience by using the exciting new features from Robot Kinetic Use the latest version of gazebo simulator, OpenCV 3.0, and C++11 standard for your own algorithms Who This Book Is For This book is suitable for an ROS beginner as well as an experienced ROS roboticist or ROS user or developer who is curious to learn ROS Kinetic and its features to make an autonomous Robot. The book is also suitable for those who want to integrate sensors and embedded systems with other software and tools using ROS as a framework. What You Will Learn Understand the concepts of ROS, the command-line tools, visualization GUIs, and how to debug ROS Connect robot sensors and actuators to ROS Obtain and analyze data from cameras and 3D sensors Use Gazebo for robot/sensor and environment simulation Design a robot and see how to make it map the environment, navigate autonomously, and manipulate objects in the environment using MoveIt! Add vision capabilities to the robot using OpenCV 3.0 Add 3D perception capabilities to the robot using the latest version of PCL In Detail Building and programming a robot can be cumbersome and time-consuming, but not when you have the right collection of tools, libraries, and more importantly expert collaboration. ROS enables collaborative software development and offers an unmatched simulated environment that simplifies the entire robot building process. This book is packed with hands-on examples that will help you program your robot and give you complete solutions using open source ROS libraries and tools. It also shows you how to use virtual machines and Docker containers to simplify the installation of Ubuntu and the ROS framework, so you can start working in an isolated and control environment without changing your regular computer setup. It starts with the installation and basic concepts, then continues with more complex modules available in ROS such as sensors and actuators integration (drivers), navigation and mapping (so you can create an autonomous mobile robot), manipulation, Computer Vision, perception in 3D with PCL, and more. By the end of the book, you'll be able to leverage all the ROS Kinetic features to build a fully fledged robot for all your needs. Style and approach This book is packed with hands-on examples that will help you program your robot and give you complete solutions using ROS open source libraries and tools. All the robotics concepts and modules are explained and multiple examples are provided so that you can understand them easily.




Mastering ROS for Robotics Programming


Book Description

Design, build and simulate complex robots using Robot Operating System and master its out-of-the-box functionalities About This Book Develop complex robotic applications using ROS for interfacing robot manipulators and mobile robots with the help of high end robotic sensors Gain insights into autonomous navigation in mobile robot and motion planning in robot manipulators Discover the best practices and troubleshooting solutions everyone needs when working on ROS Who This Book Is For If you are a robotics enthusiast or researcher who wants to learn more about building robot applications using ROS, this book is for you. In order to learn from this book, you should have a basic knowledge of ROS, GNU/Linux, and C++ programming concepts. The book will also be good for programmers who want to explore the advanced features of ROS. What You Will Learn Create a robot model of a Seven-DOF robotic arm and a differential wheeled mobile robot Work with motion planning of a Seven-DOF arm using MoveIt! Implement autonomous navigation in differential drive robots using SLAM and AMCL packages in ROS Dig deep into the ROS Pluginlib, ROS nodelets, and Gazebo plugins Interface I/O boards such as Arduino, Robot sensors, and High end actuators with ROS Simulation and motion planning of ABB and Universal arm using ROS Industrial Explore the ROS framework using its latest version In Detail The area of robotics is gaining huge momentum among corporate people, researchers, hobbyists, and students. The major challenge in robotics is its controlling software. The Robot Operating System (ROS) is a modular software platform to develop generic robotic applications. This book discusses the advanced concepts in robotics and how to program using ROS. It starts with deep overview of the ROS framework, which will give you a clear idea of how ROS really works. During the course of the book, you will learn how to build models of complex robots, and simulate and interface the robot using the ROS MoveIt motion planning library and ROS navigation stacks. After discussing robot manipulation and navigation in robots, you will get to grips with the interfacing I/O boards, sensors, and actuators of ROS. One of the essential ingredients of robots are vision sensors, and an entire chapter is dedicated to the vision sensor, its interfacing in ROS, and its programming. You will discuss the hardware interfacing and simulation of complex robot to ROS and ROS Industrial (Package used for interfacing industrial robots). Finally, you will get to know the best practices to follow when programming using ROS. Style and approach This is a simplified guide to help you learn and master advanced topics in ROS using hands-on examples.




ROS Robotics Projects


Book Description

Build exciting robotics projects such as mobile manipulators, self-driving cars, and industrial robots powered by ROS, machine learning, and virtual reality Key FeaturesCreate and program cool robotic projects using powerful ROS librariesBuild industrial robots like mobile manipulators to handle complex tasksLearn how reinforcement learning and deep learning are used with ROSBook Description Nowadays, heavy industrial robots placed in workcells are being replaced by new age robots called cobots, which don't need workcells. They are used in manufacturing, retail, banks, energy, and healthcare, among other domains. One of the major reasons for this rapid growth in the robotics market is the introduction of an open source robotics framework called the Robot Operating System (ROS). This book covers projects in the latest ROS distribution, ROS Melodic Morenia with Ubuntu Bionic (18.04). Starting with the fundamentals, this updated edition of ROS Robotics Projects introduces you to ROS-2 and helps you understand how it is different from ROS-1. You'll be able to model and build an industrial mobile manipulator in ROS and simulate it in Gazebo 9. You'll then gain insights into handling complex robot applications using state machines and working with multiple robots at a time. This ROS book also introduces you to new and popular hardware such as Nvidia's Jetson Nano, Asus Tinker Board, and Beaglebone Black, and allows you to explore interfacing with ROS. You'll learn as you build interesting ROS projects such as self-driving cars, making use of deep learning, reinforcement learning, and other key AI concepts. By the end of the book, you'll have gained the confidence to build interesting and intricate projects with ROS. What you will learnGrasp the basics of ROS and understand ROS applicationsUncover how ROS-2 is different from ROS-1Handle complex robot tasks using state machinesCommunicate with multiple robots and collaborate to build apps with themExplore ROS capabilities with the latest embedded boards such as Tinker Board S and Jetson NanoDiscover how machine learning and deep learning techniques are used with ROSBuild a self-driving car powered by ROSTeleoperate your robot using Leap Motion and a VR headsetWho this book is for If you’re a student, hobbyist, professional, or anyone with a passion for learning robotics and interested in learning about algorithms, motion control, and perception capabilities from scratch, this book is for you. This book is also ideal for anyone who wants to build a new product and for researchers to make the most of what’s already available to create something new and innovative in the field of robotics.




Learning ROS for Robotics Programming


Book Description

Your one-stop guide to the Robot Operating System About This Book Model your robot on a virtual world and learn how to simulate it Create, visualize, and process Point Cloud information Easy-to-follow, practical tutorials to program your own robots Who This Book Is For If you are a robotic enthusiast who wants to learn how to build and program your own robots in an easy-to-develop, maintainable, and shareable way, this book is for you. In order to make the most of the book, you should have a C++ programming background, knowledge of GNU/Linux systems, and general skill in computer science. No previous background on ROS is required, as this book takes you from the ground up. It is also advisable to have some knowledge of version control systems, such as svn or git, which are often used by the community to share code. What You Will Learn Install a complete ROS Hydro system Create ROS packages and metapackages, using and debugging them in real time Build, handle, and debug ROS nodes Design your 3D robot model and simulate it in a virtual environment within Gazebo Give your robots the power of sight using cameras and calibrate and perform computer vision tasks with them Generate and adapt the navigation stack to work with your robot Integrate different sensors like Range Laser, Arduino, and Kinect with your robot Visualize and process Point Cloud information from different sensors Control and plan motion of robotic arms with multiple joints using MoveIt! In Detail If you have ever tried building a robot, then you know how cumbersome programming everything from scratch can be. This is where ROS comes into the picture. It is a collection of tools, libraries, and conventions that simplifies the robot building process. What's more, ROS encourages collaborative robotics software development, allowing you to connect with experts in various fields to collaborate and build upon each other's work. Packed full of examples, this book will help you understand the ROS framework to help you build your own robot applications in a simulated environment and share your knowledge with the large community supporting ROS. Starting at an introductory level, this book is a comprehensive guide to the fascinating world of robotics, covering sensor integration, modeling, simulation, computer vision, navigation algorithms, and more. You will then go on to explore concepts like topics, messages, and nodes. Next, you will learn how to make your robot see with HD cameras, or navigate obstacles with range sensors. Furthermore, thanks to the contributions of the vast ROS community, your robot will be able to navigate autonomously, and even recognize and interact with you in a matter of minutes. What's new in this updated edition? First and foremost, we are going to work with ROS Hydro this time around. You will learn how to create, visualize, and process Point Cloud information from different sensors. This edition will also show you how to control and plan motion of robotic arms with multiple joints using MoveIt! By the end of this book, you will have all the background you need to build your own robot and get started with ROS. Style and approach This book is an easy-to-follow guide that will help you find your way through the ROS framework. This book is packed with hands-on examples that will help you program your robot and give you complete solutions using ROS open source libraries and tools.




Hands-On ROS for Robotics Programming


Book Description

Take your ROS skills to the next level by implementing complex robot structures in a ROS simulation Key FeaturesLearn fundamental ROS concepts and apply them to solve navigation tasksWork with single board computers to program smart behavior in mobile robotsUnderstand how specific characteristics of the physical environment influence your robot’s performanceBook Description Connecting a physical robot to a robot simulation using the Robot Operating System (ROS) infrastructure is one of the most common challenges faced by ROS engineers. With this book, you'll learn how to simulate a robot in a virtual environment and achieve desired behavior in equivalent real-world scenarios. This book starts with an introduction to GoPiGo3 and the sensors and actuators with which it is equipped. You'll then work with GoPiGo3's digital twin by creating a 3D model from scratch and running a simulation in ROS using Gazebo. Next, the book will show you how to use GoPiGo3 to build and run an autonomous mobile robot that is aware of its surroundings. Finally, you'll find out how a robot can learn tasks that have not been programmed in the code but are acquired by observing its environment. You'll even cover topics such as deep learning and reinforcement learning. By the end of this robot programming book, you'll be well-versed with the basics of building specific-purpose applications in robotics and developing highly intelligent autonomous robots from scratch. What you will learnGet to grips with developing environment-aware robotsGain insights into how your robots will react in physical environmentsBreak down a desired behavior into a chain of robot actionsRelate data from sensors with context to produce adaptive responsesApply reinforcement learning to allow your robot to learn by trial and errorImplement deep learning to enable your robot to recognize its surroundingsWho this book is for If you are an engineer looking to build AI-powered robots using the ROS framework, this book is for you. Robotics enthusiasts and hobbyists who want to develop their own ROS robotics projects will also find this book useful. Knowledge of Python and/or C++ programming and familiarity with single board computers such as Raspberry Pi is necessary to get the most out of this book.




Python Robotics Projects


Book Description

Leverage the power of Python to build DIY robotic projects Key Features Design, build, and stimulate collaborative robots Build high-end robotics projects such as a customized personal Jarvis Leverage the power of Python and ROS for DIY robotic projects Book Description Robotics is a fast-growing industry. Multiple surveys state that investment in the field has increased tenfold in the last 6 years, and is set to become a $100-billion sector by 2020. Robots are prevalent throughout all industries, and they are all set to be a part of our domestic lives. This book starts with the installation and basic steps in configuring a robotic controller. You'll then move on to setting up your environment to use Python with the robotic controller. You'll dive deep into building simple robotic projects, such as a pet-feeding robot, and more complicated projects, such as machine learning enabled home automation system (Jarvis), vision processing based robots and a self-driven robotic vehicle using Python. By the end of this book, you'll know how to build smart robots using Python. What you will learn Get to know the basics of robotics and its functions Walk through interface components with microcontrollers Integrate robotics with the IoT environment Build projects using machine learning Implement path planning and vision processing Interface your robots with Bluetooth Who this book is for If building robots is your dream, then this book is made for you. Prior knowledge of Python would be an added advantage.