Skip to Main Content
Robot Operating System Cookbook
book

Robot Operating System Cookbook

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

How to do it…

  1. To use the Dynamic Reconfigure utility, we will write a configuration file and save it in the cfg folder in the intended package.
  2. Create the cfg folder and a parameter_server_tutorials.cfg file there in the parameter_server_tutorials package, as follows:
$ roscd parameter_server_tutorials 
$ mkdir cfg 
$ vim parameter_server_tutorials 
  1. We will add the following code in the parameter_server_tutorials.cfg file:
#!/usr/bin/env python PACKAGE = "parameter_server_tutorials" from dynamic_reconfigure.parameter_generator_catkin import * gen = ParameterGenerator() gen.add("BOOL_PARAM", bool_t, 0,"A Boolean parameter", True) gen.add("INT_PARAM", int_t, 0, "An Integer Parameter", 1, 0, 100) gen.add("DOUBLE_PARAM", double_t, 0, "A Double ...
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

Advanced Robotic Vehicles Programming: An Ardupilot and Pixhawk Approach

Advanced Robotic Vehicles Programming: An Ardupilot and Pixhawk Approach

Julio Alberto Mendoza-Mendoza, Victor Javier Gonzalez-Villela, Gabriel Sepulveda-Cervantes, Mauricio Mendez-Martinez, Humberto Sossa-Azuela
Effective Robotics Programming with ROS - Third Edition

Effective Robotics Programming with ROS - Third Edition

Anil Mahtani, Luis Sánchez, Enrique Fernández, Aaron Martinez
Mobile Intelligent Autonomous Systems

Mobile Intelligent Autonomous Systems

Jitendra R. Raol, Ajith K. Gopal

Publisher Resources

ISBN: 9781783987443Supplemental Content