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

sm_coretest_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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

Package symbol

sm_coretest_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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_callback_rate_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_callback_rate_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 0.0.1
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: measures how many callbacks per second the signal detector's polling loop delivers to a subscription and to a node timer that run faster than the loop. A client publishes on a thread at publish_rate_hz, subscribes to the same topic, runs a node timer at timer_rate_hz and reports the counts once a second from update().

Maintainers

  • Brett Aldrich

Authors

No additional authors.

sm_coretest_callback_rate_1

Core test for the rate at which the signal detector’s polling loop delivers callbacks to the entities of the state machine node. It measures, once a second, how many messages a subscription received and how many times a node timer fired, against how many messages were published, when both run faster than the polling loop.

Design

  • ClCallbackCounter (in OrCounter) publishes std_msgs/UInt32 on /callback_rate_test from its own thread at publish_rate_hz (default 200), subscribes to the same topic with a history depth of subscription_depth (default 10) and callback_work_us (default 0) of busy work per message, and runs a node wall timer at timer_rate_hz (default 100). The subscription and timer callbacks run wherever the polling loop spins the node’s executor; the publishing thread runs regardless.
  • update(), called by SignalDetector::pollOnce once per loop iteration on the polling thread, logs the counts of the last second: published, received, timer ticks and loop iterations, plus the totals since start.
  • StIdle is the only state and has no transitions; the state machine thread is idle.
  • The polling rate is the core parameter signal_detector_loop_freq (default 20 Hz).

What it shows

With the loop spinning the executor once per iteration (spin_some), a subscription receives at most one message per iteration, whatever its rate: at 20 Hz polling the report reads about 20 received per second against 200 published. A loop that drains the executor each iteration (spin_all bounded by the loop period) delivers every message the subscription’s history holds: about 200 received per second, with the same 20 loop iterations. A timer fires at most once per iteration either way, because callbacks run only while the loop spins and an overdue timer fires once: the 100 Hz timer ticks about 20 times a second under both loops.

The saturation case needs a backlog that costs real time: publish_rate_hz:=5000 subscription_depth:=1000 callback_work_us:=300 queues about 250 messages per 50 ms period at 300 us each, more than the period can drain. It shows what the loop iterations per second, the received count and the process CPU do when the drain hits its budget, and the core’s throttled saturation warning. With the default depth of 10 the backlog is capped at 10 messages per iteration and the loop never saturates, whatever the publishing rate.

Running

ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py
ros2 launch sm_coretest_callback_rate_1 sm_coretest_callback_rate_1.launch.py publish_rate_hz:=5000.0 subscription_depth:=1000 callback_work_us:=300

The launch file tees the node output to /tmp/sm_coretest_callback_rate_1_latest.log. The test is a measurement, not a pass/fail gate: read the [ClCallbackCounter] last ... s: lines.

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