No version for distro humble showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro kilted showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro lyrical showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro rolling showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro ardent showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro bouncy showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro crystal showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro eloquent showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro dashing showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro galactic showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro foxy showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro iron showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro lunar showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro jade showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro indigo showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro hydro showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro kinetic showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro melodic showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange

No version for distro noetic showing jazzy. Known supported distros are highlighted in the buttons above.
Package symbol

sm_coretest_poll_shutdown_1 package from SMACC2 repo

smacc2 cl_foundation_pose cl_gcalcli cl_generic_sensor cl_http cl_keyboard cl_lifecycle_node cl_mission_tracker cl_modbus_tcp_relay cl_moveit2z cl_nav2z backward_global_planner backward_local_planner forward_global_planner forward_local_planner nav2z_planners_common pure_spinning_local_planner undo_path_global_planner cl_px4_mr cl_ros2_timer eg_conditional_generator eg_random_generator smacc2_msgs sm_atomic_performance_trace_1 sm_atomic_subscribers_performance_test sm_coretest_action_client_1 sm_coretest_callback_rate_1 sm_coretest_exceptions_1 sm_coretest_features_1 sm_coretest_forced_finish_1 sm_coretest_idle_load_1 sm_coretest_object_churn_1 sm_coretest_poll_shutdown_1 sm_coretest_post_during_exit_1 sm_coretest_reactor_order_1 sm_coretest_signal_key_1 sm_coretest_timer_handoff_1 sm_coretest_transition_speed_1 sm_advanced_recovery_1 sm_atomic sm_atomic_http sm_atomic_lifecycle sm_atomic_mode_states sm_branching sm_cl_gcalcli_test_1 sm_cl_keyboard_unit_test_1 sm_cl_px4_mr_test_1 sm_cl_px4_mr_test_2 sm_cl_px4_mr_test_3 sm_cl_px4_mr_test_4 sm_cl_px4_mr_test_5 sm_cl_ros2_timer_unit_test_1 sm_data_sharing_1 sm_data_sharing_2 sm_modbus_tcp_relay_test_1 sm_mode_state_behavior_1 sm_multi_stage_1 sm_multithread_test_1 sm_nav2_gazebo_test_1 sm_nav2_gazebo_test_2 sm_nav2_gazebo_test_3 sm_nav2_gazebo_test_4 sm_pack_ml sm_panda_cl_moveit2z_cb_inventory sm_panda_cl_moveit2z_cb_inventory_isaacsim sm_retry_logic_1 sm_simple_action_client sm_three_some sr_all_events_go sr_conditional sr_event_countdown

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/robosoft-ai/SMACC2.git
VCS Type git
VCS Version jazzy
Last Updated 2026-11-25
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Core test: an updatable client whose update() takes most of the signal detector's polling period, so that an rclcpp shutdown lands between the polling loop's rclcpp::ok() check and its Rate::sleep() in most runs. Drives the concurrent-shutdown path of SignalDetector::pollingLoop.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_poll_shutdown_1

Core test for the signal detector’s polling loop under a concurrent rclcpp shutdown. It makes the shutdown land, in most runs, between the loop’s rclcpp::ok() check and its rclcpp::Rate::sleep(), which is the window in which rclcpp::Clock::sleep_until throws std::runtime_error("context cannot be slept with because it's invalid").

Design

  • ClSlowUpdate (in OrSlow) is an ISmaccUpdatable client whose update() blocks for slow_update_ms (default 150). SignalDetector::pollOnce calls it on the polling thread, inside the window.
  • The polling period is set with the core parameter signal_detector_loop_freq; the launch file uses 5 Hz. With a 150 ms update in a 200 ms period, 75 % of each period is window.
  • The update must stay shorter than the period. rclcpp::Rate::sleep() returns without sleeping when the iteration overran, and then never reaches the throwing call; a run that overruns cannot show the defect and cannot prove its absence.
  • StIdle is the only state and has no transitions, so the state machine thread is idle and the polling thread is the only one doing work.

Pass criteria

Send SIGINT at a random moment while StIdle is active and wait for the process to exit.

  • Exit status 0, with Polling loop exited, Shutdown complete and Finishing State Machine in the log.
  • No terminate called line and no context cannot be slept line.
  • Under AddressSanitizer the leak check runs at exit.

The failure signature is terminate called after throwing an instance of 'std::runtime_error' with what(): context cannot be slept with because it's invalid, exit status 134, logged right after the shutdown callback’s Terminating scheduler... line and with no Polling loop exited line. With the launch file’s parameters it appears in about three runs out of four.

Running

Plain:

ros2 launch sm_coretest_poll_shutdown_1 sm_coretest_poll_shutdown_1.launch.py

The launch file tees the node output to /tmp/sm_coretest_poll_shutdown_1_latest.log.

For sanitizer runs, build in a separate build and install base with the sanitizer flags and run the node binary directly, passing the parameters on the command line:

install_asan/sm_coretest_poll_shutdown_1/lib/sm_coretest_poll_shutdown_1/sm_coretest_poll_shutdown_1_node \
  --ros-args --log-level INFO -p signal_detector_loop_freq:=5.0 -p slow_update_ms:=150

ASAN_OPTIONS=handle_abort=1 prints the stack of the aborting thread, which shows where the exception came from.

CHANGELOG
No CHANGELOG found.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged sm_coretest_poll_shutdown_1 at Robotics Stack Exchange