-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
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
Launch引数指定 #55
Launch引数指定 #55
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ためしに質問してみました
index_specified = PythonExpression([index, ">= 0"]) | ||
indexed_imshow = imshow_node( | ||
name=["imshow_", index], | ||
remappings=[("/app/camera_image", ["/packet/camera_image_", index])], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
["/packet/camera_image_", index]
は文字列の結合のようなことをしているのでしょうか?
f"/packet/camera_image_{index}"
などしないのは、index
がLaunchConfiguration()
の返り値であることと関係がありますか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文字列の結合のようなことをしているのでしょうか?
はい。
index
がLaunchConfiguration()
の返り値であることと関係がありますか?
はい。これはlaunchファイルのsubstitutionという機能で、launchの実行時に文字列の結合が行われます。例えばros2 launch --show-args imshow imshow_launch.py
ではlaunchの読み込みのみが行われて該当部分の文字列の結合は発生しません。
#23 関連