ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ros code generator c++

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

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
4

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

gvdhoorn gravatar image

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

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

Comments

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

arta gravatar image arta  ( 2019-04-01 09:30:57 -0500 )edit

No problem.

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

gvdhoorn gravatar image gvdhoorn  ( 2019-04-01 09:45:38 -0500 )edit

Question Tools

Stats

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

Seen: 604 times

Last updated: Apr 01 '19