You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Copy the Version information from the Help | About menu>
Version: 1.95.3
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Linux x64 6.8.0-48-generic snap
what is the bug
When debugging in the case of a ros Lifecycle node, I want to activate my node from a lauch file, via launch.actions.EmitEvent and launch_ros.events.lifecycle.ChangeState, but it look like the EmitEvent is not done. Event if I change the state manually via ros2 lifecycle <node_name> <state>, the EventHandler of the launch file do not work.
Minimal example launch example:
fromlaunch.actionsimportShutdownfromlaunch_ros.actionsimportLifecycleNodefromlaunch_ros.actionsimportNodefromlaunch.actionsimportDeclareLaunchArgument, EmitEvent, RegisterEventHandler, LogInfofromlaunch_ros.event_handlersimportOnStateTransitionfromlaunch_ros.events.lifecycleimportChangeStateimportlaunchfromlifecycle_msgs.msgimportTransitiondefgenerate_launch_description():
node=LifecycleNode(package='lifecycle', executable='lifecycle_talker',
name='lc_talker', namespace='', output='screen')
# THIS DO NOT WORK in Launch Debuggingconfigure_event=EmitEvent(
event=ChangeState(
lifecycle_node_matcher=launch.events.matches_action(
node),
transition_id=Transition.TRANSITION_CONFIGURE,
))
# THIS DO NOT WORK in Launch Debuggingstate_handler=RegisterEventHandler(
OnStateTransition(
target_lifecycle_node=node,
goal_state='inactive',
entities=[
# LogLogInfo(
msg="RegisterEventHandler worked")]))
returnLaunchDescription([
configure_event, node, state_handler# Node(package='lifecycle', executable='lifecycle_listener', output='screen'),# Node(package='lifecycle', executable='lifecycle_service_client', output='screen',# on_exit=Shutdown()),
My final goal is perfrom something similar to this example.. But all the lifecycle node state dependencies doesn't seem to be handle correctly in the debugger.
Repro steps
<how to reproduce the bug. Please attach sample files or github repo if appropriate.>
I made a minimal example using the ros lifecycle demo code, only modifying the launch file:
(Please add appropriate labels)
<Version of the plugin>
v0.9.2
<Copy the Version information from the
Help | About
menu>Version: 1.95.3
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Linux x64 6.8.0-48-generic snap
what is the bug
When debugging in the case of a ros Lifecycle node, I want to activate my node from a lauch file, via
launch.actions.EmitEvent
andlaunch_ros.events.lifecycle.ChangeState
, but it look like the EmitEvent is not done. Event if I change the state manually viaros2 lifecycle <node_name> <state>
, the EventHandler of the launch file do not work.Minimal example launch example:
My final goal is perfrom something similar to this example.. But all the lifecycle node state dependencies doesn't seem to be handle correctly in the debugger.
Repro steps
<how to reproduce the bug. Please attach sample files or github repo if appropriate.>
I made a minimal example using the ros lifecycle demo code, only modifying the launch file:
expected behavior
<what you would expect to happen>
The behavior should be similar as when the launch file is run without debugger :
additional context
<any additional information would be helpful for a better understanding>
The text was updated successfully, but these errors were encountered: