Closed ZhenshengLee closed 2 years ago
should use this launch_ros.events.lifecycle.matches_node_name
drive_base_activate_trans_event_by_name = EmitEvent(
event = ChangeState(
lifecycle_node_matcher = launch_ros.events.lifecycle.matches_node_name(drive_base_name),
transition_id = lifecycle_msgs.msg.Transition.TRANSITION_ACTIVATE,
)
)
Bug report
Required Info:
Steps to reproduce issue
the drive_base_node can be seen in https://github.com/micro-ROS/system_modes/blob/master/system_modes_examples/src/drive_base.cpp and adding initial configuration
with
launch
activate_drive_emit_event.launch.py
Expected behavior
the drive_base_node can be activated after the events emitted in
activate_drive_emit_event.launch.py
Actual behavior
the state cannote be activated after launching
activate_drive.launch.py
Additional information
matches_executable() works well, see #668