We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mros2/mros2_header_generator/templates_generator.py
Line 60 in 4d51853
該当の変数は、pubMsgTypesとsubMsgTypesで、生成コードが同じ型のものが複数出て来ると思います。
重複するものを削ればOK
--- a/mros2_header_generator/templates_generator.py +++ b/mros2_header_generator/templates_generator.py @@ -55,9 +55,11 @@ def main(): includeFile = '#include "' + includeFile + '.hpp"' includeFiles.append(includeFile) + unique_pubMsgTypes = list(set(pubMsgTypes)) + unique_subMsgTypes = list(set(subMsgTypes)) env = Environment(loader=FileSystemLoader(path.dirname(__file__))) template = env.get_template('templates.tpl') - datatext = template.render({ "includeFiles":includeFiles, "pubMsgTypes":pubMsgTypes, "subMsgTypes":subMsgTypes }) + datatext = template.render({ "includeFiles":includeFiles, "pubMsgTypes":unique_pubMsgTypes, "subMsgTypes":unique_subMsgTypes }) outfile_path = os.path.join(outdir, "templates.hpp") outtemp_path = os.path.join(outdir, "templates.hpp.tmp")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
問題のコード
mros2/mros2_header_generator/templates_generator.py
Line 60 in 4d51853
該当の変数は、pubMsgTypesとsubMsgTypesで、生成コードが同じ型のものが複数出て来ると思います。
修正方法
重複するものを削ればOK
The text was updated successfully, but these errors were encountered: