Skip to content

Commit

Permalink
Hotfix support bt ports in handle goal (#34)
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Lampacrescia <[email protected]>
  • Loading branch information
MarcoLm993 authored Sep 25, 2024
1 parent 2be1b84 commit e81ef79
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ def check_validity(self) -> bool:
self._reject_target)
return valid_name and valid_accept and valid_reject

def instantiate_bt_events(self, _: str):
# We do not expect a body with BT ports to be substituted
pass

def update_bt_ports_values(self, _) -> None:
"""Update the values of potential entries making use of BT ports."""
# We do not expect a body with BT ports to be substituted
pass

def check_valid_ros_instantiations(self,
ros_declarations: ScxmlRosDeclarationsContainer) -> bool:
assert isinstance(ros_declarations, ScxmlRosDeclarationsContainer), \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def instantiate_bt_events(self, instance_id: str):
# Those are expected to be only ticks
if is_bt_event(event_str):
self._events[event_id] = replace_bt_event(event_str, instance_id)
# The body of a transition is needs to be replaced on derived classes, too
# The body of a transition needs to be replaced on derived classes, too
instantiate_exec_body_bt_events(self._body, instance_id)

def update_bt_ports_values(self, bt_ports_handler: BtPortsHandler) -> None:
Expand Down

0 comments on commit e81ef79

Please sign in to comment.