fix FastRTPSGen version verification

This commit is contained in:
TSC21
2019-10-02 15:00:01 +01:00
committed by Nuno Marques
parent 9c00f3de02
commit e7b0384f05
7 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ def generate_idl_file(filename_msg, msg_dir, alias, outputdir, templatedir, pack
os.makedirs(outputdir)
template_file = os.path.join(templatedir, IDL_TEMPLATE_FILE)
if ros2_distro == "ardent" or ros2_distro == "bouncy" or ros2_distro == "crystal":
if 1.5 <= fastrtpsgen_version <= 1.7:
output_file = os.path.join(outputdir, IDL_TEMPLATE_FILE.replace(
"msg.idl.em", str(spec_short_name + "_.idl")))
else: