Skip to content

Generate ROS 2 message / service definitions from a ROS 1 package

License

Notifications You must be signed in to change notification settings

CentraleNantesRobotics/ros2_convert_msg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROS message converter

This script converts ROS 1 message-defining packages (msg and/or srv) into ROS 2 ones.

It also generates, if needed, the mapping rules for ros1_bridge to be recompiled.

Running the script

ROS 1 workspace should be sourced. The script takes two arguments:

  • the path or name of the ROS 1 package, in order to find msg and/or srv directories
  • the path to the ROS 2 workspace where the output ROS 2 package will be created

The ROS 2 workspace can be any path, a new package will be created inside with the exact same name as the ROS 1 package. Names of messages and services are also kept.

Change in fields

Field names may be changed to snake_case if it was not the case in ROS 1 definitions.

Field types (mostly std_msgs/Header or things related to time) are adapted to ROS 2 interfaces.

Limitations

As of now only msg and srv are considered.

About

Generate ROS 2 message / service definitions from a ROS 1 package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages