| 230 | } |
| 231 | |
| 232 | void TurtleBot3::publish_timer(const std::chrono::milliseconds timeout) |
| 233 | { |
| 234 | publish_timer_ = this->create_wall_timer( |
| 235 | timeout, |
| 236 | [this]() -> void |
| 237 | { |
| 238 | rclcpp::Time now = this->now(); |
| 239 | |
| 240 | dxl_sdk_wrapper_->read_data_set(); |
| 241 | |
| 242 | for (const auto & sensor : sensors_) { |
| 243 | sensor->publish(now, dxl_sdk_wrapper_); |
| 244 | } |
| 245 | } |
| 246 | ); |
| 247 | } |
| 248 | |
| 249 | void TurtleBot3::heartbeat_timer(const std::chrono::milliseconds timeout) |
| 250 | { |
nothing calls this directly
no test coverage detected