ROS2/microRTPS: Add support for ROS2 Galactic and ROS2 Rolling (#17664)

microRTPS: generate_microRTPS_bridge: add support for ROS2 versions
* Galactic
* Rolling
This commit is contained in:
Nuno Marques 2021-05-27 18:32:16 +02:00 committed by GitHub
parent ad534561d3
commit f9fe0e3746
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ def generate_agent(out_dir):
# the '-typeros2' option in fastrtpsgen.
# .. note:: This is only available in FastRTPSGen 1.0.4 and above
gen_ros2_typename = ""
if ros2_distro and ros2_distro in ['dashing', 'eloquent', 'foxy'] and fastrtpsgen_version >= version.Version("1.0.4"):
if ros2_distro and ros2_distro in ['dashing', 'eloquent', 'foxy', 'galactic', 'rolling'] and fastrtpsgen_version >= version.Version("1.0.4"):
gen_ros2_typename = "-typeros2 "
for idl_file in glob.glob(os.path.join(idl_dir, "*.idl")):