Skip to content

Commit

Permalink
fix: set callback group to timer (#516)
Browse files Browse the repository at this point in the history
* fix(ad_service_state_monitor): fix callback group

Signed-off-by: Shinnosuke Hirakawa <shinnosuke.hirakawa@tier4.jp>

* fix(external_cmd_selector): fix callback grouop

Signed-off-by: Shinnosuke Hirakawa <shinnosuke.hirakawa@tier4.jp>

* chore: clang-format

Signed-off-by: Shinnosuke Hirakawa <shinnosuke.hirakawa@tier4.jp>
  • Loading branch information
0x126 committed Mar 15, 2022
1 parent f92e938 commit e59f79a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ ExternalCmdSelector::ExternalCmdSelector(const rclcpp::NodeOptions & node_option
// Timer
const auto period_ns = rclcpp::Rate(update_rate).period();
timer_ = rclcpp::create_timer(
this, get_clock(), period_ns, std::bind(&ExternalCmdSelector::onTimer, this));
this, get_clock(), period_ns, std::bind(&ExternalCmdSelector::onTimer, this),
callback_group_subscribers_);
}

void ExternalCmdSelector::onLocalControlCmd(const ExternalControlCommand::ConstSharedPtr msg)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,5 +462,6 @@ AutowareStateMonitorNode::AutowareStateMonitorNode()
// Timer
const auto period_ns = rclcpp::Rate(update_rate_).period();
timer_ = rclcpp::create_timer(
this, get_clock(), period_ns, std::bind(&AutowareStateMonitorNode::onTimer, this));
this, get_clock(), period_ns, std::bind(&AutowareStateMonitorNode::onTimer, this),
callback_group_subscribers_);
}

0 comments on commit e59f79a

Please sign in to comment.