Closed adityapande-1995 closed 2 years ago
This PR exposes the Shutdown action to xml frontend.
Shutdown
The following two launch snippets in python and xml should work equivalently. Python :
import launch import launch.actions import launch_ros.actions def generate_launch_description(): return launch.LaunchDescription([ launch_ros.actions.Node( executable='talker', package='demo_nodes_cpp', name='demo_node' ), launch.actions.TimerAction( period=5.0, actions=[ launch.actions.Shutdown() ]), ])
xml :
<launch> <node pkg="demo_nodes_cpp" exec="talker" name="demo_node"/> <timer period='5'> <shutdown/> </timer> </launch>
Signed-off-by: Aditya aditya050995@gmail.com
Description
This PR exposes the
Shutdown
action to xml frontend.Example usage
The following two launch snippets in python and xml should work equivalently. Python :
xml :
Signed-off-by: Aditya aditya050995@gmail.com