-
Notifications
You must be signed in to change notification settings - Fork 8
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
Make main behavior tree configurable #47
Conversation
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
6993ec6
to
40fc09b
Compare
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
0ca9020
to
e385e5b
Compare
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
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.
LGTM except for one minor thing.
@@ -132,6 +132,7 @@ def launch_setup(context, *args, **kwargs): | |||
"""{ | |||
pick_and_place: [place_on_conveyor, pick_from_conveyor], | |||
}""", | |||
"main_bt_filename": "main.xml", |
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.
Please DeclareLaunchArgument
and get the value via LaunchConfiguration
instead of hardcoding here. That way, parent launch files like launch.py
can overwrite the value if needed.
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.
Ah totally forgot, 99c0c69. It's not declared in the root launch.py
but it is still passed to the control_center.launch.py
, I can declare it in both places if it makes it clearer
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
This PR makes the
main
behavior tree configurable through a parameter since it was found in #42 that it is not generic enough that it can be used to execute different classes of work orders.Overview:
main_bt_filename
has been introduced, which takes just the name of a behavior tree that is contained in thebt_path
parameter.bt_path
system orchestrator parameter now just points to the folder containing behavior trees.bt_path
andmain_bt_filename
.main_bt_filename
parameter is editable and a parameter callback has been added. Trying to set it to a non existing file will fail and return an error to the user.