Ask Your Question

ros code generator c++

asked 2019-03-29 12:59:01 -0600

arta gravatar image

Hi everyone, I have not been able to find things with this. What I would like to write (or to use, if already existing) would be a tool like catkin_create_pkg, but where

  1. you can specify the number of subscribers and publishers (and or client / server)
  2. the corresponding message types
  3. where the tool would also set up the skeleton for both unit testing and integration testing
  4. where the tool would create all of this in a nice OO fashion.

Is there anything like this? If not, does anyone have any recommendations of how to do this? Thanks, please criticize away! Adrian

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-30 01:53:58 -0600

gvdhoorn gravatar image

updated 2019-03-30 01:54:42 -0600

You could take a look at the ROS package generator created by Tecnalia as part of the ROSIN project.

Based on something it calls an interface specification and a set of templates, it generates what I believe would cover your bullets.

From the readme:

The following packages are about the automatic creation of ROS packages (so far c++ and python).

To do so the input needed are:

  • A package template: a template is created by a template Designer. It contains the list of files to be automatically generated. The Developer just has to select the template that best fits his needs.
  • An interface specification: a xml file describing mainly the interface of the package to create, according to the template. This file is to be filled by the Developer, using the interface proposed by the template, according to the concrete needs of the package he is willing to create
edit flag offensive delete link more


Thanks for the prompt reply, I will look into it!

arta gravatar imagearta ( 2019-04-01 09:30:57 -0600 )edit

No problem.

I'd encourage you to provide feedback to the developers. I'm sure they'd welcome your input.

gvdhoorn gravatar imagegvdhoorn ( 2019-04-01 09:45:38 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2019-03-29 12:59:01 -0600

Seen: 101 times

Last updated: Apr 01