rclcpp icon indicating copy to clipboard operation
rclcpp copied to clipboard

rclcpp::TimerBase::SharedPtr timer - behaivor change with ros jazzy for reset timer method

Open altineller opened this issue 10 months ago • 1 comments

Hello,

I have a rclcpp::TimerBase::SharedPtr timer_i2c; in my code, which I instantiate by
timer_i2c = this->create_wall_timer(1000ms / params_uint8[PARAM_UPDATE_RATE], std::bind(&ROSRider::timer_i2c_callback, this));

However while testing with jazzy I have found out the reset() function no longer works. Indeed, when reset is called timer stops, so reset acts like stop. in previous version, it just resetted the period of the timer.

And comments or ideas on this?

Best Regards, C.

altineller avatar Mar 11 '25 22:03 altineller