launch file

This commit is contained in:
acki
2025-10-15 16:50:04 +02:00
parent cd73bb2670
commit 3677a48966

View File

@@ -114,34 +114,9 @@ def generate_launch_description():
}]
)
# Restart handler for pcb_odo_interface
odo_restart_handler = RegisterEventHandler(
OnProcessExit(
target_action=pcb_odo_interface,
on_exit=[
TimerAction(
period=5.0, # wait 5 seconds before restart
actions=[
Node(
package='modelec_com',
executable='pcb_odo_interface',
name='pcb_odo_interface',
parameters=[{
'serial_port': "/tmp/ODO",
'baudrate': 115200,
'name': "pcb_odo",
}]
)
]
)
]
)
)
return [
serial_listener,
pcb_odo_interface,
odo_restart_handler,
pcb_action_interface,
]
return []