How do I shutdown slam_toolbox node?
I launch slam-toolbox (to create a map) from a bash script using the following command:
nohup ros2 launch slam_toolbox online_async_launch.py 'slam_params_file:=./my_mapper_params_online_async.yaml' &
After I run my script to shutdown all my robot's nodes, I am left with the slam-toolbox node still running:
$ ros2 node list
/slam_toolbox
/transform_listener_impl_aaaaf5c6bda0
$ ps -ef | grep slam
ubuntu 10023 1 1 Nov01 pts/0 00:14:32 /opt/ros/humble/lib/slam_toolbox/async_slam_toolbox_node --ros-args -r __node:=slam_toolbox --params-file my_mapper_params_online_async.yaml --params-file /tmp/launch_params_mv_dwh67
How do I shutdown the slam_toolbox node?