mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 22:32:11 +08:00
microRTPS: only use '-typeros2' FastRTPSGen option for Dashing and later ROS2 distros
This commit is contained in:
@@ -423,7 +423,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 fastrtpsgen_version >= version.Version("1.0.4"):
|
||||
if ros2_distro and ros2_distro in ['dashing', 'eloquent', 'foxy'] and fastrtpsgen_version >= version.Version("1.0.4"):
|
||||
gen_ros2_typename = "-typeros2 "
|
||||
|
||||
for idl_file in glob.glob(os.path.join(idl_dir, "*.idl")):
|
||||
|
||||
Reference in New Issue
Block a user