Closed TatsukiNishimura closed 1 year ago
I use
lineArr[2] = os.path.splitext(lineArr[2])[0]
instead of original code, and it works.
@TatsukiNishimura san, thank you so much for an important report! I confirmed the issue you suggested and completely agree with your idea. We are grateful if you send a PR to fix this issue :D
I made a PR #35. I would appreciate if you check it.
thanks again!! ❤️
environment
When I tried to generate
Transform.hpp
fromTransform.msg
with header_generator.py, the generated file name wasTransfor.hpp
. Maybe this code is the cause. https://github.com/mROS-base/mros2/blob/d66f3b15bb5f3cdf5f889ab0baa2bd5bd9cb5710/mros2_header_generator/msg_data_generator.py#L16rstrip() removes the trailing characters from the string. In this case, it removes ".msg" from Transform.msg, but it removes all combines of.msg such as m, ms , g and so on. Therefore, not
Transform.hpp
butTransfor.hpp
was generated.