Package Summary

Version 2.3.20
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The cl_ros2_timer package

Maintainers

  • Brett Aldrich

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

Changelog for package cl_ros2_timer

::: note ::: title Note :::

This package was refactored in September 2025 from ros_timer_client. For historical changes prior to 2.3.20, see ros_timer_client/CHANGELOG.rst. The ros_timer_client package is now deprecated in favor of cl_ros2_timer. :::

2.3.20 (2025-11-01)

  • New cl_ros2_timer unit test (#616)
  • Refactoring cl_ros2_timer to header-lite (#617)
  • Refactoring cl_ros2_timer to component-based architecture (#618)
  • Refactored cl_ros2_timer components to header-only (#619)
  • Refactor of cl_ros2_timer namespace structure (include paths) (#623)
  • Update include path for cl_ros2_timer (#629)
  • Moving reference library from ros_timer_client and keyboard_client to cl_ros2_timer and cl_keyboard (#645)
  • Contributors: Brett Aldrich, Pablo Iñigo Blasco

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cl_ros2_timer at Robotics Stack Exchange

Package symbol

cl_ros2_timer package from SMACC2 repo

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

ROS Distro
jazzy

Package Summary

Version 3.1.0
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The cl_ros2_timer package

Maintainers

  • Brett Aldrich

Authors

No additional authors.

cl_ros2_timer

Timer-based orthogonal behaviors for SMACC2 state machines. The OrTimer orthogonal holds a ClRos2Timer client; each behavior (CbTimerCountdownOnce, CbTimerCountdownLoop) creates its own dedicated wall timer for accurate, period-independent firing.

Setting Up the Orthogonal

Define an OrTimer orthogonal in your state machine:

// orthogonals/or_timer.hpp
#include "cl_ros2_timer/cl_ros2_timer.hpp"
#include "smacc2/smacc.hpp"

class OrTimer : public smacc2::Orthogonal<OrTimer>
{
public:
  void onInitialize() override
  {
    this->createClient<cl_ros2_timer::ClRos2Timer>();
  }
};

Register it in your state machine’s onInitialize():

void onInitialize() override
{
  this->createOrthogonal<OrTimer>();
}

CbTimerCountdownOnce

Header: cl_ros2_timer/client_behaviors/cb_timer_countdown_once.hpp

Posts EvTimer once after the specified duration, then stops. Use this to drive a timed transition out of a state.

// In state's staticConfigure():
configure_orthogonal<OrTimer, CbTimerCountdownOnce>(5s);    // fire once after 5 seconds
configure_orthogonal<OrTimer, CbTimerCountdownOnce>(4min);  // fire once after 4 minutes
configure_orthogonal<OrTimer, CbTimerCountdownOnce>(500ms); // fire once after 500 ms

Full state example:

struct StWaitForSensor : smacc2::SmaccState<StWaitForSensor, MyStateMachine>
{
  using reactions = mpl::list<
    Transition<EvTimer<CbTimerCountdownOnce, OrTimer>, StNextState, SUCCESS>>;

  static void staticConfigure()
  {
    configure_orthogonal<OrTimer, CbTimerCountdownOnce>(10s);
  }
};

CbTimerCountdownLoop

Header: cl_ros2_timer/client_behaviors/cb_timer_countdown_loop.hpp

Posts EvTimer repeatedly at the specified interval. Use this for periodic actions within a state.

configure_orthogonal<OrTimer, CbTimerCountdownLoop>(3s);    // fire every 3 seconds
configure_orthogonal<OrTimer, CbTimerCountdownLoop>(500ms); // fire every 500 ms
configure_orthogonal<OrTimer, CbTimerCountdownLoop>(1min);  // fire every minute

Chrono Literal Reference

Requires using namespace std::chrono_literals; — already in scope via rclcpp headers in standard SMACC2 state files.

Literal Meaning Example
ms milliseconds 500ms
s seconds 5s
min minutes 4min
h hours 2h
CHANGELOG

Changelog for package cl_ros2_timer

::: note ::: title Note :::

This package was refactored in September 2025 from ros_timer_client. For historical changes prior to 2.3.20, see ros_timer_client/CHANGELOG.rst. The ros_timer_client package is now deprecated in favor of cl_ros2_timer. :::

3.1.0 (2026-05-31)

### Changed (Breaking) - cl_ros2_timer duration-based API (#61)

CbTimerCountdownOnce and CbTimerCountdownLoop now accept rclcpp::Duration via C++ chrono literals (5s, 500ms, 4min) instead of raw tick counts. Each behavior creates its own dedicated rclcpp::WallTimer, giving exact, period-independent timing with ~50ms residual from the SMACC2 SignalDetector 20 Hz polling loop.

Migration:

// Before (tick count, period-dependent)
configure_orthogonal<OrTimer, CbTimerCountdownOnce>(10);  // 10 ticks × timer period

// After (duration, period-independent)
configure_orthogonal<OrTimer, CbTimerCountdownOnce>(10s); // exactly 10 seconds
  • ClRos2Timer is now a pure marker client — the duration constructor argument has been removed. or_timer.hpp files simply call createClient<ClRos2Timer>() with no args.

### Removed - CbRos2Timer — was unused in all reference state machines; removed. - CpTimerListener1 — now orphaned after the tick-stack removal; removed.

### Contributors - Brett Aldrich

2.3.20 (2025-11-01)

  • New cl_ros2_timer unit test (#616)
  • Refactoring cl_ros2_timer to header-lite (#617)
  • Refactoring cl_ros2_timer to component-based architecture (#618)
  • Refactored cl_ros2_timer components to header-only (#619)
  • Refactor of cl_ros2_timer namespace structure (include paths) (#623)
  • Update include path for cl_ros2_timer (#629)
  • Moving reference library from ros_timer_client and keyboard_client to cl_ros2_timer and cl_keyboard (#645)
  • Contributors: Brett Aldrich, Pablo Iñigo Blasco

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cl_ros2_timer at Robotics Stack Exchange

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

Package Summary

Version 2.3.20
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The cl_ros2_timer package

Maintainers

  • Brett Aldrich

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

Changelog for package cl_ros2_timer

::: note ::: title Note :::

This package was refactored in September 2025 from ros_timer_client. For historical changes prior to 2.3.20, see ros_timer_client/CHANGELOG.rst. The ros_timer_client package is now deprecated in favor of cl_ros2_timer. :::

2.3.20 (2025-11-01)

  • New cl_ros2_timer unit test (#616)
  • Refactoring cl_ros2_timer to header-lite (#617)
  • Refactoring cl_ros2_timer to component-based architecture (#618)
  • Refactored cl_ros2_timer components to header-only (#619)
  • Refactor of cl_ros2_timer namespace structure (include paths) (#623)
  • Update include path for cl_ros2_timer (#629)
  • Moving reference library from ros_timer_client and keyboard_client to cl_ros2_timer and cl_keyboard (#645)
  • Contributors: Brett Aldrich, Pablo Iñigo Blasco

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cl_ros2_timer at Robotics Stack Exchange

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

Package Summary

Version 2.3.20
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The cl_ros2_timer package

Maintainers

  • Brett Aldrich

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

Changelog for package cl_ros2_timer

::: note ::: title Note :::

This package was refactored in September 2025 from ros_timer_client. For historical changes prior to 2.3.20, see ros_timer_client/CHANGELOG.rst. The ros_timer_client package is now deprecated in favor of cl_ros2_timer. :::

2.3.20 (2025-11-01)

  • New cl_ros2_timer unit test (#616)
  • Refactoring cl_ros2_timer to header-lite (#617)
  • Refactoring cl_ros2_timer to component-based architecture (#618)
  • Refactored cl_ros2_timer components to header-only (#619)
  • Refactor of cl_ros2_timer namespace structure (include paths) (#623)
  • Update include path for cl_ros2_timer (#629)
  • Moving reference library from ros_timer_client and keyboard_client to cl_ros2_timer and cl_keyboard (#645)
  • Contributors: Brett Aldrich, Pablo Iñigo Blasco

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cl_ros2_timer at Robotics Stack Exchange

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

Package Summary

Version 2.3.20
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The cl_ros2_timer package

Maintainers

  • Brett Aldrich

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

Changelog for package cl_ros2_timer

::: note ::: title Note :::

This package was refactored in September 2025 from ros_timer_client. For historical changes prior to 2.3.20, see ros_timer_client/CHANGELOG.rst. The ros_timer_client package is now deprecated in favor of cl_ros2_timer. :::

2.3.20 (2025-11-01)

  • New cl_ros2_timer unit test (#616)
  • Refactoring cl_ros2_timer to header-lite (#617)
  • Refactoring cl_ros2_timer to component-based architecture (#618)
  • Refactored cl_ros2_timer components to header-only (#619)
  • Refactor of cl_ros2_timer namespace structure (include paths) (#623)
  • Update include path for cl_ros2_timer (#629)
  • Moving reference library from ros_timer_client and keyboard_client to cl_ros2_timer and cl_keyboard (#645)
  • Contributors: Brett Aldrich, Pablo Iñigo Blasco

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cl_ros2_timer at Robotics Stack Exchange

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

Package Summary

Version 2.3.20
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The cl_ros2_timer package

Maintainers

  • Brett Aldrich

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

Changelog for package cl_ros2_timer

::: note ::: title Note :::

This package was refactored in September 2025 from ros_timer_client. For historical changes prior to 2.3.20, see ros_timer_client/CHANGELOG.rst. The ros_timer_client package is now deprecated in favor of cl_ros2_timer. :::

2.3.20 (2025-11-01)

  • New cl_ros2_timer unit test (#616)
  • Refactoring cl_ros2_timer to header-lite (#617)
  • Refactoring cl_ros2_timer to component-based architecture (#618)
  • Refactored cl_ros2_timer components to header-only (#619)
  • Refactor of cl_ros2_timer namespace structure (include paths) (#623)
  • Update include path for cl_ros2_timer (#629)
  • Moving reference library from ros_timer_client and keyboard_client to cl_ros2_timer and cl_keyboard (#645)
  • Contributors: Brett Aldrich, Pablo Iñigo Blasco

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cl_ros2_timer at Robotics Stack Exchange

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

Package Summary

Version 2.3.20
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The cl_ros2_timer package

Maintainers

  • Brett Aldrich

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

Changelog for package cl_ros2_timer

::: note ::: title Note :::

This package was refactored in September 2025 from ros_timer_client. For historical changes prior to 2.3.20, see ros_timer_client/CHANGELOG.rst. The ros_timer_client package is now deprecated in favor of cl_ros2_timer. :::

2.3.20 (2025-11-01)

  • New cl_ros2_timer unit test (#616)
  • Refactoring cl_ros2_timer to header-lite (#617)
  • Refactoring cl_ros2_timer to component-based architecture (#618)
  • Refactored cl_ros2_timer components to header-only (#619)
  • Refactor of cl_ros2_timer namespace structure (include paths) (#623)
  • Update include path for cl_ros2_timer (#629)
  • Moving reference library from ros_timer_client and keyboard_client to cl_ros2_timer and cl_keyboard (#645)
  • Contributors: Brett Aldrich, Pablo Iñigo Blasco

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cl_ros2_timer at Robotics Stack Exchange

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

Package Summary

Version 2.3.20
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The cl_ros2_timer package

Maintainers

  • Brett Aldrich

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

Changelog for package cl_ros2_timer

::: note ::: title Note :::

This package was refactored in September 2025 from ros_timer_client. For historical changes prior to 2.3.20, see ros_timer_client/CHANGELOG.rst. The ros_timer_client package is now deprecated in favor of cl_ros2_timer. :::

2.3.20 (2025-11-01)

  • New cl_ros2_timer unit test (#616)
  • Refactoring cl_ros2_timer to header-lite (#617)
  • Refactoring cl_ros2_timer to component-based architecture (#618)
  • Refactored cl_ros2_timer components to header-only (#619)
  • Refactor of cl_ros2_timer namespace structure (include paths) (#623)
  • Update include path for cl_ros2_timer (#629)
  • Moving reference library from ros_timer_client and keyboard_client to cl_ros2_timer and cl_keyboard (#645)
  • Contributors: Brett Aldrich, Pablo Iñigo Blasco

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cl_ros2_timer at Robotics Stack Exchange

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

Package Summary

Version 2.3.20
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The cl_ros2_timer package

Maintainers

  • Brett Aldrich

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

Changelog for package cl_ros2_timer

::: note ::: title Note :::

This package was refactored in September 2025 from ros_timer_client. For historical changes prior to 2.3.20, see ros_timer_client/CHANGELOG.rst. The ros_timer_client package is now deprecated in favor of cl_ros2_timer. :::

2.3.20 (2025-11-01)

  • New cl_ros2_timer unit test (#616)
  • Refactoring cl_ros2_timer to header-lite (#617)
  • Refactoring cl_ros2_timer to component-based architecture (#618)
  • Refactored cl_ros2_timer components to header-only (#619)
  • Refactor of cl_ros2_timer namespace structure (include paths) (#623)
  • Update include path for cl_ros2_timer (#629)
  • Moving reference library from ros_timer_client and keyboard_client to cl_ros2_timer and cl_keyboard (#645)
  • Contributors: Brett Aldrich, Pablo Iñigo Blasco

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cl_ros2_timer at Robotics Stack Exchange

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

Package Summary

Version 2.3.20
License Apache-2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The cl_ros2_timer package

Maintainers

  • Brett Aldrich

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

Changelog for package cl_ros2_timer

::: note ::: title Note :::

This package was refactored in September 2025 from ros_timer_client. For historical changes prior to 2.3.20, see ros_timer_client/CHANGELOG.rst. The ros_timer_client package is now deprecated in favor of cl_ros2_timer. :::

2.3.20 (2025-11-01)

  • New cl_ros2_timer unit test (#616)
  • Refactoring cl_ros2_timer to header-lite (#617)
  • Refactoring cl_ros2_timer to component-based architecture (#618)
  • Refactored cl_ros2_timer components to header-only (#619)
  • Refactor of cl_ros2_timer namespace structure (include paths) (#623)
  • Update include path for cl_ros2_timer (#629)
  • Moving reference library from ros_timer_client and keyboard_client to cl_ros2_timer and cl_keyboard (#645)
  • Contributors: Brett Aldrich, Pablo Iñigo Blasco

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged cl_ros2_timer at Robotics Stack Exchange