Package smach_ros :: Module util

Module util

source code

Functions
 
set_preempt_handler(sc)
Sets a ROS pre-shutdown handler to preempt a given SMACH container when ROS receives a shutdown request.
source code
Function Details

set_preempt_handler(sc)

source code 

Sets a ROS pre-shutdown handler to preempt a given SMACH container when ROS receives a shutdown request.

This can be attached to multiple containers, but only needs to be used on the top-level containers.

Parameters:
  • sc (smach.Container) - Container to preempt on ROS shutdown.