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

sm_coretest_forced_finish_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

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

Package Description

Core test: an asynchronous client behavior forced to finish by a transition on every cycle. Drives requestForceFinish/isShutdownRequested, the stateMachineCurrentAction discard check and the CURRENT_STATE event discard path in ISmaccStateMachine::postEvent.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_forced_finish_1

Core test for the forced finish of an asynchronous client behavior. It is not a reference state machine; it exists to drive one core code path on demand, like sm_coretest_transition_speed_1 next to it.

What it does

StA  ──EvCountdownEnd──▶  StRest  ──EvTimer<CbTimerCountdownLoop>──▶  StA
 │                          │
 └── EvCbSuccess/EvCbFinished<CbSleepFor, OrSleep> ──▶ StTrap (terminal) ◀──┘

  • StA runs CbSleepFor(30s) in OrSleep and CbTimerCountdownOnce(1s) in OrTimer, plus an SrEventCountdown(1) reactor on the timer event. The timer always wins, so on every StA exit the state machine thread calls requestForceFinish() on the sleep behavior while its onEntry thread polls isShutdownRequested(). The behavior then posts EvCbSuccess and EvCbFinished with CURRENT_STATE lifetime while the machine is STATE_EXITING, so both hit the discard path in ISmaccStateMachine::postEvent.
  • StRest waits 1 s on a CbTimerCountdownLoop. It is deliberately a different timer behavior than StA’s: StA’s own EvTimer<CbTimerCountdownOnce> is still queued behind the reactor’s EvCountdownEnd when StRest is entered and would otherwise fire StRest’s reaction immediately.
  • StTrap is terminal and logs FATAL "TRAP ENTERED". Both StA and StRest transition to it on any sleep event. The sleep can never finish within StA’s 1 s lifetime, so a sleep event processed anywhere is one that crossed a state exit instead of being discarded.

One cycle takes 2 s. Expected per cycle: one requestForceFinish, two CURRENT STATE SCOPED EVENT DISCARDED warnings, zero TRAP ENTERED.

Running

ros2 launch sm_coretest_forced_finish_1 sm_coretest_forced_finish_1.launch.py
# output is teed to /tmp/sm_coretest_forced_finish_1_latest.log

Quick check of a log:

L=/tmp/sm_coretest_forced_finish_1_latest.log
echo "cycles: $(grep -ac '\[StRest\] Entered' $L)  discards: $(grep -ac 'EVENT DISCARDED' $L)  trap: $(grep -ac 'TRAP ENTERED' $L)"

Under sanitizers

Build the core and this package into a separate build/install base with -fsanitize=thread,undefined or -fsanitize=address,undefined -fsanitize-recover=address, then run the node binary directly (not through ros2 run with a stdbuf prefix, which preloads a library ahead of the sanitizer runtime). ThreadSanitizer needs setarch x86_64 -R on kernels with 32-bit mmap randomization. For LeakSanitizer to report, send SIGINT while the machine is in StRest, when no behavior thread is alive. The full procedure and the recorded results are in docs/smacc2_core_defect_fix_study.md at the repository root.

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_forced_finish_1 at Robotics Stack Exchange

Package symbol

sm_coretest_forced_finish_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

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

Package Description

Core test: an asynchronous client behavior forced to finish by a transition on every cycle. Drives requestForceFinish/isShutdownRequested, the stateMachineCurrentAction discard check and the CURRENT_STATE event discard path in ISmaccStateMachine::postEvent.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_forced_finish_1

Core test for the forced finish of an asynchronous client behavior. It is not a reference state machine; it exists to drive one core code path on demand, like sm_coretest_transition_speed_1 next to it.

What it does

StA  ──EvCountdownEnd──▶  StRest  ──EvTimer<CbTimerCountdownLoop>──▶  StA
 │                          │
 └── EvCbSuccess/EvCbFinished<CbSleepFor, OrSleep> ──▶ StTrap (terminal) ◀──┘

  • StA runs CbSleepFor(30s) in OrSleep and CbTimerCountdownOnce(1s) in OrTimer, plus an SrEventCountdown(1) reactor on the timer event. The timer always wins, so on every StA exit the state machine thread calls requestForceFinish() on the sleep behavior while its onEntry thread polls isShutdownRequested(). The behavior then posts EvCbSuccess and EvCbFinished with CURRENT_STATE lifetime while the machine is STATE_EXITING, so both hit the discard path in ISmaccStateMachine::postEvent.
  • StRest waits 1 s on a CbTimerCountdownLoop. It is deliberately a different timer behavior than StA’s: StA’s own EvTimer<CbTimerCountdownOnce> is still queued behind the reactor’s EvCountdownEnd when StRest is entered and would otherwise fire StRest’s reaction immediately.
  • StTrap is terminal and logs FATAL "TRAP ENTERED". Both StA and StRest transition to it on any sleep event. The sleep can never finish within StA’s 1 s lifetime, so a sleep event processed anywhere is one that crossed a state exit instead of being discarded.

One cycle takes 2 s. Expected per cycle: one requestForceFinish, two CURRENT STATE SCOPED EVENT DISCARDED warnings, zero TRAP ENTERED.

Running

ros2 launch sm_coretest_forced_finish_1 sm_coretest_forced_finish_1.launch.py
# output is teed to /tmp/sm_coretest_forced_finish_1_latest.log

Quick check of a log:

L=/tmp/sm_coretest_forced_finish_1_latest.log
echo "cycles: $(grep -ac '\[StRest\] Entered' $L)  discards: $(grep -ac 'EVENT DISCARDED' $L)  trap: $(grep -ac 'TRAP ENTERED' $L)"

Under sanitizers

Build the core and this package into a separate build/install base with -fsanitize=thread,undefined or -fsanitize=address,undefined -fsanitize-recover=address, then run the node binary directly (not through ros2 run with a stdbuf prefix, which preloads a library ahead of the sanitizer runtime). ThreadSanitizer needs setarch x86_64 -R on kernels with 32-bit mmap randomization. For LeakSanitizer to report, send SIGINT while the machine is in StRest, when no behavior thread is alive. The full procedure and the recorded results are in docs/smacc2_core_defect_fix_study.md at the repository root.

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_forced_finish_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_forced_finish_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

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

Package Description

Core test: an asynchronous client behavior forced to finish by a transition on every cycle. Drives requestForceFinish/isShutdownRequested, the stateMachineCurrentAction discard check and the CURRENT_STATE event discard path in ISmaccStateMachine::postEvent.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_forced_finish_1

Core test for the forced finish of an asynchronous client behavior. It is not a reference state machine; it exists to drive one core code path on demand, like sm_coretest_transition_speed_1 next to it.

What it does

StA  ──EvCountdownEnd──▶  StRest  ──EvTimer<CbTimerCountdownLoop>──▶  StA
 │                          │
 └── EvCbSuccess/EvCbFinished<CbSleepFor, OrSleep> ──▶ StTrap (terminal) ◀──┘

  • StA runs CbSleepFor(30s) in OrSleep and CbTimerCountdownOnce(1s) in OrTimer, plus an SrEventCountdown(1) reactor on the timer event. The timer always wins, so on every StA exit the state machine thread calls requestForceFinish() on the sleep behavior while its onEntry thread polls isShutdownRequested(). The behavior then posts EvCbSuccess and EvCbFinished with CURRENT_STATE lifetime while the machine is STATE_EXITING, so both hit the discard path in ISmaccStateMachine::postEvent.
  • StRest waits 1 s on a CbTimerCountdownLoop. It is deliberately a different timer behavior than StA’s: StA’s own EvTimer<CbTimerCountdownOnce> is still queued behind the reactor’s EvCountdownEnd when StRest is entered and would otherwise fire StRest’s reaction immediately.
  • StTrap is terminal and logs FATAL "TRAP ENTERED". Both StA and StRest transition to it on any sleep event. The sleep can never finish within StA’s 1 s lifetime, so a sleep event processed anywhere is one that crossed a state exit instead of being discarded.

One cycle takes 2 s. Expected per cycle: one requestForceFinish, two CURRENT STATE SCOPED EVENT DISCARDED warnings, zero TRAP ENTERED.

Running

ros2 launch sm_coretest_forced_finish_1 sm_coretest_forced_finish_1.launch.py
# output is teed to /tmp/sm_coretest_forced_finish_1_latest.log

Quick check of a log:

L=/tmp/sm_coretest_forced_finish_1_latest.log
echo "cycles: $(grep -ac '\[StRest\] Entered' $L)  discards: $(grep -ac 'EVENT DISCARDED' $L)  trap: $(grep -ac 'TRAP ENTERED' $L)"

Under sanitizers

Build the core and this package into a separate build/install base with -fsanitize=thread,undefined or -fsanitize=address,undefined -fsanitize-recover=address, then run the node binary directly (not through ros2 run with a stdbuf prefix, which preloads a library ahead of the sanitizer runtime). ThreadSanitizer needs setarch x86_64 -R on kernels with 32-bit mmap randomization. For LeakSanitizer to report, send SIGINT while the machine is in StRest, when no behavior thread is alive. The full procedure and the recorded results are in docs/smacc2_core_defect_fix_study.md at the repository root.

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_forced_finish_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_forced_finish_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

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

Package Description

Core test: an asynchronous client behavior forced to finish by a transition on every cycle. Drives requestForceFinish/isShutdownRequested, the stateMachineCurrentAction discard check and the CURRENT_STATE event discard path in ISmaccStateMachine::postEvent.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_forced_finish_1

Core test for the forced finish of an asynchronous client behavior. It is not a reference state machine; it exists to drive one core code path on demand, like sm_coretest_transition_speed_1 next to it.

What it does

StA  ──EvCountdownEnd──▶  StRest  ──EvTimer<CbTimerCountdownLoop>──▶  StA
 │                          │
 └── EvCbSuccess/EvCbFinished<CbSleepFor, OrSleep> ──▶ StTrap (terminal) ◀──┘

  • StA runs CbSleepFor(30s) in OrSleep and CbTimerCountdownOnce(1s) in OrTimer, plus an SrEventCountdown(1) reactor on the timer event. The timer always wins, so on every StA exit the state machine thread calls requestForceFinish() on the sleep behavior while its onEntry thread polls isShutdownRequested(). The behavior then posts EvCbSuccess and EvCbFinished with CURRENT_STATE lifetime while the machine is STATE_EXITING, so both hit the discard path in ISmaccStateMachine::postEvent.
  • StRest waits 1 s on a CbTimerCountdownLoop. It is deliberately a different timer behavior than StA’s: StA’s own EvTimer<CbTimerCountdownOnce> is still queued behind the reactor’s EvCountdownEnd when StRest is entered and would otherwise fire StRest’s reaction immediately.
  • StTrap is terminal and logs FATAL "TRAP ENTERED". Both StA and StRest transition to it on any sleep event. The sleep can never finish within StA’s 1 s lifetime, so a sleep event processed anywhere is one that crossed a state exit instead of being discarded.

One cycle takes 2 s. Expected per cycle: one requestForceFinish, two CURRENT STATE SCOPED EVENT DISCARDED warnings, zero TRAP ENTERED.

Running

ros2 launch sm_coretest_forced_finish_1 sm_coretest_forced_finish_1.launch.py
# output is teed to /tmp/sm_coretest_forced_finish_1_latest.log

Quick check of a log:

L=/tmp/sm_coretest_forced_finish_1_latest.log
echo "cycles: $(grep -ac '\[StRest\] Entered' $L)  discards: $(grep -ac 'EVENT DISCARDED' $L)  trap: $(grep -ac 'TRAP ENTERED' $L)"

Under sanitizers

Build the core and this package into a separate build/install base with -fsanitize=thread,undefined or -fsanitize=address,undefined -fsanitize-recover=address, then run the node binary directly (not through ros2 run with a stdbuf prefix, which preloads a library ahead of the sanitizer runtime). ThreadSanitizer needs setarch x86_64 -R on kernels with 32-bit mmap randomization. For LeakSanitizer to report, send SIGINT while the machine is in StRest, when no behavior thread is alive. The full procedure and the recorded results are in docs/smacc2_core_defect_fix_study.md at the repository root.

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_forced_finish_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_forced_finish_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

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

Package Description

Core test: an asynchronous client behavior forced to finish by a transition on every cycle. Drives requestForceFinish/isShutdownRequested, the stateMachineCurrentAction discard check and the CURRENT_STATE event discard path in ISmaccStateMachine::postEvent.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_forced_finish_1

Core test for the forced finish of an asynchronous client behavior. It is not a reference state machine; it exists to drive one core code path on demand, like sm_coretest_transition_speed_1 next to it.

What it does

StA  ──EvCountdownEnd──▶  StRest  ──EvTimer<CbTimerCountdownLoop>──▶  StA
 │                          │
 └── EvCbSuccess/EvCbFinished<CbSleepFor, OrSleep> ──▶ StTrap (terminal) ◀──┘

  • StA runs CbSleepFor(30s) in OrSleep and CbTimerCountdownOnce(1s) in OrTimer, plus an SrEventCountdown(1) reactor on the timer event. The timer always wins, so on every StA exit the state machine thread calls requestForceFinish() on the sleep behavior while its onEntry thread polls isShutdownRequested(). The behavior then posts EvCbSuccess and EvCbFinished with CURRENT_STATE lifetime while the machine is STATE_EXITING, so both hit the discard path in ISmaccStateMachine::postEvent.
  • StRest waits 1 s on a CbTimerCountdownLoop. It is deliberately a different timer behavior than StA’s: StA’s own EvTimer<CbTimerCountdownOnce> is still queued behind the reactor’s EvCountdownEnd when StRest is entered and would otherwise fire StRest’s reaction immediately.
  • StTrap is terminal and logs FATAL "TRAP ENTERED". Both StA and StRest transition to it on any sleep event. The sleep can never finish within StA’s 1 s lifetime, so a sleep event processed anywhere is one that crossed a state exit instead of being discarded.

One cycle takes 2 s. Expected per cycle: one requestForceFinish, two CURRENT STATE SCOPED EVENT DISCARDED warnings, zero TRAP ENTERED.

Running

ros2 launch sm_coretest_forced_finish_1 sm_coretest_forced_finish_1.launch.py
# output is teed to /tmp/sm_coretest_forced_finish_1_latest.log

Quick check of a log:

L=/tmp/sm_coretest_forced_finish_1_latest.log
echo "cycles: $(grep -ac '\[StRest\] Entered' $L)  discards: $(grep -ac 'EVENT DISCARDED' $L)  trap: $(grep -ac 'TRAP ENTERED' $L)"

Under sanitizers

Build the core and this package into a separate build/install base with -fsanitize=thread,undefined or -fsanitize=address,undefined -fsanitize-recover=address, then run the node binary directly (not through ros2 run with a stdbuf prefix, which preloads a library ahead of the sanitizer runtime). ThreadSanitizer needs setarch x86_64 -R on kernels with 32-bit mmap randomization. For LeakSanitizer to report, send SIGINT while the machine is in StRest, when no behavior thread is alive. The full procedure and the recorded results are in docs/smacc2_core_defect_fix_study.md at the repository root.

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_forced_finish_1 at Robotics Stack Exchange

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

sm_coretest_forced_finish_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

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

Package Description

Core test: an asynchronous client behavior forced to finish by a transition on every cycle. Drives requestForceFinish/isShutdownRequested, the stateMachineCurrentAction discard check and the CURRENT_STATE event discard path in ISmaccStateMachine::postEvent.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_forced_finish_1

Core test for the forced finish of an asynchronous client behavior. It is not a reference state machine; it exists to drive one core code path on demand, like sm_coretest_transition_speed_1 next to it.

What it does

StA  ──EvCountdownEnd──▶  StRest  ──EvTimer<CbTimerCountdownLoop>──▶  StA
 │                          │
 └── EvCbSuccess/EvCbFinished<CbSleepFor, OrSleep> ──▶ StTrap (terminal) ◀──┘

  • StA runs CbSleepFor(30s) in OrSleep and CbTimerCountdownOnce(1s) in OrTimer, plus an SrEventCountdown(1) reactor on the timer event. The timer always wins, so on every StA exit the state machine thread calls requestForceFinish() on the sleep behavior while its onEntry thread polls isShutdownRequested(). The behavior then posts EvCbSuccess and EvCbFinished with CURRENT_STATE lifetime while the machine is STATE_EXITING, so both hit the discard path in ISmaccStateMachine::postEvent.
  • StRest waits 1 s on a CbTimerCountdownLoop. It is deliberately a different timer behavior than StA’s: StA’s own EvTimer<CbTimerCountdownOnce> is still queued behind the reactor’s EvCountdownEnd when StRest is entered and would otherwise fire StRest’s reaction immediately.
  • StTrap is terminal and logs FATAL "TRAP ENTERED". Both StA and StRest transition to it on any sleep event. The sleep can never finish within StA’s 1 s lifetime, so a sleep event processed anywhere is one that crossed a state exit instead of being discarded.

One cycle takes 2 s. Expected per cycle: one requestForceFinish, two CURRENT STATE SCOPED EVENT DISCARDED warnings, zero TRAP ENTERED.

Running

ros2 launch sm_coretest_forced_finish_1 sm_coretest_forced_finish_1.launch.py
# output is teed to /tmp/sm_coretest_forced_finish_1_latest.log

Quick check of a log:

L=/tmp/sm_coretest_forced_finish_1_latest.log
echo "cycles: $(grep -ac '\[StRest\] Entered' $L)  discards: $(grep -ac 'EVENT DISCARDED' $L)  trap: $(grep -ac 'TRAP ENTERED' $L)"

Under sanitizers

Build the core and this package into a separate build/install base with -fsanitize=thread,undefined or -fsanitize=address,undefined -fsanitize-recover=address, then run the node binary directly (not through ros2 run with a stdbuf prefix, which preloads a library ahead of the sanitizer runtime). ThreadSanitizer needs setarch x86_64 -R on kernels with 32-bit mmap randomization. For LeakSanitizer to report, send SIGINT while the machine is in StRest, when no behavior thread is alive. The full procedure and the recorded results are in docs/smacc2_core_defect_fix_study.md at the repository root.

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_forced_finish_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_forced_finish_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

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

Package Description

Core test: an asynchronous client behavior forced to finish by a transition on every cycle. Drives requestForceFinish/isShutdownRequested, the stateMachineCurrentAction discard check and the CURRENT_STATE event discard path in ISmaccStateMachine::postEvent.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_forced_finish_1

Core test for the forced finish of an asynchronous client behavior. It is not a reference state machine; it exists to drive one core code path on demand, like sm_coretest_transition_speed_1 next to it.

What it does

StA  ──EvCountdownEnd──▶  StRest  ──EvTimer<CbTimerCountdownLoop>──▶  StA
 │                          │
 └── EvCbSuccess/EvCbFinished<CbSleepFor, OrSleep> ──▶ StTrap (terminal) ◀──┘

  • StA runs CbSleepFor(30s) in OrSleep and CbTimerCountdownOnce(1s) in OrTimer, plus an SrEventCountdown(1) reactor on the timer event. The timer always wins, so on every StA exit the state machine thread calls requestForceFinish() on the sleep behavior while its onEntry thread polls isShutdownRequested(). The behavior then posts EvCbSuccess and EvCbFinished with CURRENT_STATE lifetime while the machine is STATE_EXITING, so both hit the discard path in ISmaccStateMachine::postEvent.
  • StRest waits 1 s on a CbTimerCountdownLoop. It is deliberately a different timer behavior than StA’s: StA’s own EvTimer<CbTimerCountdownOnce> is still queued behind the reactor’s EvCountdownEnd when StRest is entered and would otherwise fire StRest’s reaction immediately.
  • StTrap is terminal and logs FATAL "TRAP ENTERED". Both StA and StRest transition to it on any sleep event. The sleep can never finish within StA’s 1 s lifetime, so a sleep event processed anywhere is one that crossed a state exit instead of being discarded.

One cycle takes 2 s. Expected per cycle: one requestForceFinish, two CURRENT STATE SCOPED EVENT DISCARDED warnings, zero TRAP ENTERED.

Running

ros2 launch sm_coretest_forced_finish_1 sm_coretest_forced_finish_1.launch.py
# output is teed to /tmp/sm_coretest_forced_finish_1_latest.log

Quick check of a log:

L=/tmp/sm_coretest_forced_finish_1_latest.log
echo "cycles: $(grep -ac '\[StRest\] Entered' $L)  discards: $(grep -ac 'EVENT DISCARDED' $L)  trap: $(grep -ac 'TRAP ENTERED' $L)"

Under sanitizers

Build the core and this package into a separate build/install base with -fsanitize=thread,undefined or -fsanitize=address,undefined -fsanitize-recover=address, then run the node binary directly (not through ros2 run with a stdbuf prefix, which preloads a library ahead of the sanitizer runtime). ThreadSanitizer needs setarch x86_64 -R on kernels with 32-bit mmap randomization. For LeakSanitizer to report, send SIGINT while the machine is in StRest, when no behavior thread is alive. The full procedure and the recorded results are in docs/smacc2_core_defect_fix_study.md at the repository root.

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_forced_finish_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_forced_finish_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

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

Package Description

Core test: an asynchronous client behavior forced to finish by a transition on every cycle. Drives requestForceFinish/isShutdownRequested, the stateMachineCurrentAction discard check and the CURRENT_STATE event discard path in ISmaccStateMachine::postEvent.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_forced_finish_1

Core test for the forced finish of an asynchronous client behavior. It is not a reference state machine; it exists to drive one core code path on demand, like sm_coretest_transition_speed_1 next to it.

What it does

StA  ──EvCountdownEnd──▶  StRest  ──EvTimer<CbTimerCountdownLoop>──▶  StA
 │                          │
 └── EvCbSuccess/EvCbFinished<CbSleepFor, OrSleep> ──▶ StTrap (terminal) ◀──┘

  • StA runs CbSleepFor(30s) in OrSleep and CbTimerCountdownOnce(1s) in OrTimer, plus an SrEventCountdown(1) reactor on the timer event. The timer always wins, so on every StA exit the state machine thread calls requestForceFinish() on the sleep behavior while its onEntry thread polls isShutdownRequested(). The behavior then posts EvCbSuccess and EvCbFinished with CURRENT_STATE lifetime while the machine is STATE_EXITING, so both hit the discard path in ISmaccStateMachine::postEvent.
  • StRest waits 1 s on a CbTimerCountdownLoop. It is deliberately a different timer behavior than StA’s: StA’s own EvTimer<CbTimerCountdownOnce> is still queued behind the reactor’s EvCountdownEnd when StRest is entered and would otherwise fire StRest’s reaction immediately.
  • StTrap is terminal and logs FATAL "TRAP ENTERED". Both StA and StRest transition to it on any sleep event. The sleep can never finish within StA’s 1 s lifetime, so a sleep event processed anywhere is one that crossed a state exit instead of being discarded.

One cycle takes 2 s. Expected per cycle: one requestForceFinish, two CURRENT STATE SCOPED EVENT DISCARDED warnings, zero TRAP ENTERED.

Running

ros2 launch sm_coretest_forced_finish_1 sm_coretest_forced_finish_1.launch.py
# output is teed to /tmp/sm_coretest_forced_finish_1_latest.log

Quick check of a log:

L=/tmp/sm_coretest_forced_finish_1_latest.log
echo "cycles: $(grep -ac '\[StRest\] Entered' $L)  discards: $(grep -ac 'EVENT DISCARDED' $L)  trap: $(grep -ac 'TRAP ENTERED' $L)"

Under sanitizers

Build the core and this package into a separate build/install base with -fsanitize=thread,undefined or -fsanitize=address,undefined -fsanitize-recover=address, then run the node binary directly (not through ros2 run with a stdbuf prefix, which preloads a library ahead of the sanitizer runtime). ThreadSanitizer needs setarch x86_64 -R on kernels with 32-bit mmap randomization. For LeakSanitizer to report, send SIGINT while the machine is in StRest, when no behavior thread is alive. The full procedure and the recorded results are in docs/smacc2_core_defect_fix_study.md at the repository root.

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_forced_finish_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_forced_finish_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

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

Package Description

Core test: an asynchronous client behavior forced to finish by a transition on every cycle. Drives requestForceFinish/isShutdownRequested, the stateMachineCurrentAction discard check and the CURRENT_STATE event discard path in ISmaccStateMachine::postEvent.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_forced_finish_1

Core test for the forced finish of an asynchronous client behavior. It is not a reference state machine; it exists to drive one core code path on demand, like sm_coretest_transition_speed_1 next to it.

What it does

StA  ──EvCountdownEnd──▶  StRest  ──EvTimer<CbTimerCountdownLoop>──▶  StA
 │                          │
 └── EvCbSuccess/EvCbFinished<CbSleepFor, OrSleep> ──▶ StTrap (terminal) ◀──┘

  • StA runs CbSleepFor(30s) in OrSleep and CbTimerCountdownOnce(1s) in OrTimer, plus an SrEventCountdown(1) reactor on the timer event. The timer always wins, so on every StA exit the state machine thread calls requestForceFinish() on the sleep behavior while its onEntry thread polls isShutdownRequested(). The behavior then posts EvCbSuccess and EvCbFinished with CURRENT_STATE lifetime while the machine is STATE_EXITING, so both hit the discard path in ISmaccStateMachine::postEvent.
  • StRest waits 1 s on a CbTimerCountdownLoop. It is deliberately a different timer behavior than StA’s: StA’s own EvTimer<CbTimerCountdownOnce> is still queued behind the reactor’s EvCountdownEnd when StRest is entered and would otherwise fire StRest’s reaction immediately.
  • StTrap is terminal and logs FATAL "TRAP ENTERED". Both StA and StRest transition to it on any sleep event. The sleep can never finish within StA’s 1 s lifetime, so a sleep event processed anywhere is one that crossed a state exit instead of being discarded.

One cycle takes 2 s. Expected per cycle: one requestForceFinish, two CURRENT STATE SCOPED EVENT DISCARDED warnings, zero TRAP ENTERED.

Running

ros2 launch sm_coretest_forced_finish_1 sm_coretest_forced_finish_1.launch.py
# output is teed to /tmp/sm_coretest_forced_finish_1_latest.log

Quick check of a log:

L=/tmp/sm_coretest_forced_finish_1_latest.log
echo "cycles: $(grep -ac '\[StRest\] Entered' $L)  discards: $(grep -ac 'EVENT DISCARDED' $L)  trap: $(grep -ac 'TRAP ENTERED' $L)"

Under sanitizers

Build the core and this package into a separate build/install base with -fsanitize=thread,undefined or -fsanitize=address,undefined -fsanitize-recover=address, then run the node binary directly (not through ros2 run with a stdbuf prefix, which preloads a library ahead of the sanitizer runtime). ThreadSanitizer needs setarch x86_64 -R on kernels with 32-bit mmap randomization. For LeakSanitizer to report, send SIGINT while the machine is in StRest, when no behavior thread is alive. The full procedure and the recorded results are in docs/smacc2_core_defect_fix_study.md at the repository root.

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_forced_finish_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_forced_finish_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

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

Package Description

Core test: an asynchronous client behavior forced to finish by a transition on every cycle. Drives requestForceFinish/isShutdownRequested, the stateMachineCurrentAction discard check and the CURRENT_STATE event discard path in ISmaccStateMachine::postEvent.

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_forced_finish_1

Core test for the forced finish of an asynchronous client behavior. It is not a reference state machine; it exists to drive one core code path on demand, like sm_coretest_transition_speed_1 next to it.

What it does

StA  ──EvCountdownEnd──▶  StRest  ──EvTimer<CbTimerCountdownLoop>──▶  StA
 │                          │
 └── EvCbSuccess/EvCbFinished<CbSleepFor, OrSleep> ──▶ StTrap (terminal) ◀──┘

  • StA runs CbSleepFor(30s) in OrSleep and CbTimerCountdownOnce(1s) in OrTimer, plus an SrEventCountdown(1) reactor on the timer event. The timer always wins, so on every StA exit the state machine thread calls requestForceFinish() on the sleep behavior while its onEntry thread polls isShutdownRequested(). The behavior then posts EvCbSuccess and EvCbFinished with CURRENT_STATE lifetime while the machine is STATE_EXITING, so both hit the discard path in ISmaccStateMachine::postEvent.
  • StRest waits 1 s on a CbTimerCountdownLoop. It is deliberately a different timer behavior than StA’s: StA’s own EvTimer<CbTimerCountdownOnce> is still queued behind the reactor’s EvCountdownEnd when StRest is entered and would otherwise fire StRest’s reaction immediately.
  • StTrap is terminal and logs FATAL "TRAP ENTERED". Both StA and StRest transition to it on any sleep event. The sleep can never finish within StA’s 1 s lifetime, so a sleep event processed anywhere is one that crossed a state exit instead of being discarded.

One cycle takes 2 s. Expected per cycle: one requestForceFinish, two CURRENT STATE SCOPED EVENT DISCARDED warnings, zero TRAP ENTERED.

Running

ros2 launch sm_coretest_forced_finish_1 sm_coretest_forced_finish_1.launch.py
# output is teed to /tmp/sm_coretest_forced_finish_1_latest.log

Quick check of a log:

L=/tmp/sm_coretest_forced_finish_1_latest.log
echo "cycles: $(grep -ac '\[StRest\] Entered' $L)  discards: $(grep -ac 'EVENT DISCARDED' $L)  trap: $(grep -ac 'TRAP ENTERED' $L)"

Under sanitizers

Build the core and this package into a separate build/install base with -fsanitize=thread,undefined or -fsanitize=address,undefined -fsanitize-recover=address, then run the node binary directly (not through ros2 run with a stdbuf prefix, which preloads a library ahead of the sanitizer runtime). ThreadSanitizer needs setarch x86_64 -R on kernels with 32-bit mmap randomization. For LeakSanitizer to report, send SIGINT while the machine is in StRest, when no behavior thread is alive. The full procedure and the recorded results are in docs/smacc2_core_defect_fix_study.md at the repository root.

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_forced_finish_1 at Robotics Stack Exchange