Skip to content

Commit

Permalink
fix(behavior_velocity): add guard for empty stop pose (#1245)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
  • Loading branch information
TomohitoAndo committed Jul 6, 2022
1 parent 6247671 commit b190ea7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ visualization_msgs::msg::MarkerArray StopLineModule::createVirtualWallMarkerArra
{
const auto now = this->clock_->now();
visualization_msgs::msg::MarkerArray wall_marker;
if (!debug_data_.stop_pose) {
return wall_marker;
}
const auto p_front = tier4_autoware_utils::calcOffsetPose(
*debug_data_.stop_pose, debug_data_.base_link2front, 0.0, 0.0);
if (state_ == State::APPROACH) {
Expand Down

0 comments on commit b190ea7

Please sign in to comment.