Skip to Content
Robot Operating System Cookbook
book

Robot Operating System Cookbook

by Kumar Bipin
June 2018
Intermediate to advanced
484 pages
11h 36m
English
Packt Publishing
Content preview from Robot Operating System Cookbook

How it works…

Let's do a quick summary of the code to better understand what's going on:

Basically, we have two main files, move_to_waypoint.py and follow_trajectory.py.

The functionality of the move_to_waypoint.py script is to create an action server that is able to convert the waypoints-based trajectory into real movement of the drone. So it handles the actual movement of the drone and publishes the feedback:

class moveAction(object): 

The action server is defined inside a class named moveAction:

def __init__(self, name, real_drone, aruco_mapping): 

The init() function is the constructor of the class. It creates the simple action server, alongside other things that are necessary to move the drone. For instance, it also creates a Publisher ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mobile Intelligent Autonomous Systems

Mobile Intelligent Autonomous Systems

Jitendra R. Raol, Ajith K. Gopal
Wheeled Mobile Robotics

Wheeled Mobile Robotics

Gregor Klancar, Andrej Zdesar, Saso Blazic, Igor Skrjanc

Publisher Resources

ISBN: 9781783987443Supplemental Content