Skip to content

Commit

Permalink
feat(tier4_adapi_rviz_plugin, tier4_state_rviz_plugin): set timestamp…
Browse files Browse the repository at this point in the history
… to velocity_limit msg from rviz panels (#8548)

set timestamp to velocity_limit msg

Signed-off-by: Autumn60 <harada.akiro@gmail.com>
  • Loading branch information
Autumn60 committed Aug 21, 2024
1 parent f047525 commit 098da32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/tier4_adapi_rviz_plugin/src/state_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ void StatePanel::onEmergencyStatus(
void StatePanel::onClickVelocityLimit()
{
auto velocity_limit = std::make_shared<tier4_planning_msgs::msg::VelocityLimit>();
velocity_limit->stamp = raw_node_->now();
velocity_limit->max_velocity = pub_velocity_limit_input_->value() / 3.6;
pub_velocity_limit_->publish(*velocity_limit);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ void AutowareStatePanel::onSwitchStateChanged(int state)
void AutowareStatePanel::onClickVelocityLimit()
{
auto velocity_limit = std::make_shared<tier4_planning_msgs::msg::VelocityLimit>();
velocity_limit->stamp = raw_node_->now();
velocity_limit->max_velocity = velocity_limit_value_label_->text().toDouble() / 3.6;
pub_velocity_limit_->publish(*velocity_limit);
}
Expand Down

0 comments on commit 098da32

Please sign in to comment.