mirror of
https://github.com/modelec/modelec-marcel-ROS.git
synced 2026-01-18 16:47:43 +01:00
launch file
This commit is contained in:
@@ -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 []
|
||||
|
||||
Reference in New Issue
Block a user