Skip to content

Application for generating message Java classes for jrosclient from ROS msg files.

Notifications You must be signed in to change notification settings

pinorobotics/msgmonster

Repository files navigation

msgmonster - application for generating Java classes for jrosclient from ROS interface definition files (msg/srv/action).

Features

  • generate Java classes for single ROS interface definition file or all files inside ROS package
  • all comments in ROS interface definition files are preserved and copied to Java classes

Download

Release versions

Requirements

  • Java 17+
  • rosmsg command

Usage

msgmonster [-d] [-exclude regexp1,...,regexpN] <ROS_VERSION> <JAVA_PACKAGE_NAME> < PACKAGE_NAME | MESSAGE_NAME > <OUTPUT_FOLDER>

Where:

  • ROS_VERSION - version of ROS for which message is generated (ros1, ros2)

  • JAVA_PACKAGE_NAME - name of the Java package to which all generated messages would belong

  • MESSAGE_NAME - name of the ROS message

  • PACKAGE_NAME - name of the ROS package for which Java classes will be generated

  • OUTPUT_FOLDER - output folder where to place all generated Java classes

Options:

  • -d - enable debug mode when all debug logging is stored in "msgmonster-debug.log" file under system temporary directory

  • -exclude regexp1,...,regexpN - exclude ROS interface definition files which names match any of the given regexps. This option can be used to skip any problematic ROS interface definition files.

Examples

To see this help:

msgmonster

Generate messages defined in actionlib_msgs package (ROS1):

msgmonster ros1 myros.actionlib_msgs actionlib_msgs /tmp/actionlib_msgs

Generate message for sensor_msgs/Image (ROS2):

msgmonster ros2 myros.actionlib_msgs sensor_msgs/msg/Image /tmp/actionlib_msgs

Notice that ROS2 requires 3 parts in MESSAGE_NAME ("sensor_msgs", "msg", "Image") instead of 2 as in ROS1.

Links

Development

Contacts

aeon_flux [email protected]

About

Application for generating message Java classes for jrosclient from ROS msg files.

Resources

Stars

Watchers

Forks

Packages

No packages published