O'Reilly logo

Robot Operating System Cookbook by Kumar Bipin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it…

  1. Create an actionlib_tutorials package with the following dependencies or download it from the GitHub repository (https://github.com/kbipin/Robot-Operating-System-Cookbook):
$ cd <workspace>/src 
$ catkin_create_pkg actionlib_tutorials actionlib message_generation roscpp rospy std_msgs actionlib_msgs 
  1. First, define the action which consists of goal, result, and feedback messages. These are generated automatically from the .action file.
  2. Create an actionlib_tutorials/action/Fibonacci.action file with the following contents:
#goal definition 
int32 order 
--- 
#result definition 
int32[] sequence 
--- 
#feedback 
int32[] sequence 
  1. To automatically generate the message files during the creation process, the following elements need to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required