Skip to content

Commit

Permalink
feat(default_ad_api): remove energy status (autowarefoundation#7464)
Browse files Browse the repository at this point in the history
Signed-off-by: Takagi, Isamu <[email protected]>
  • Loading branch information
isamu-takagi authored Jun 13, 2024
1 parent ccbdab6 commit be75f1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions system/default_ad_api/src/vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ void VehicleNode::publish_status()
{
if (
!steering_status_msgs_ || !gear_status_msgs_ || !turn_indicator_status_msgs_ ||
!hazard_light_status_msgs_ || !energy_status_msgs_)
!hazard_light_status_msgs_)
return;

autoware_ad_api::vehicle::VehicleStatus::Message vehicle_status;
Expand All @@ -178,7 +178,6 @@ void VehicleNode::publish_status()
mapping(turn_indicator_type_, turn_indicator_status_msgs_->report, ApiTurnIndicator::UNKNOWN);
vehicle_status.hazard_lights.status =
mapping(hazard_light_type_, hazard_light_status_msgs_->report, ApiHazardLight::UNKNOWN);
vehicle_status.energy_percentage = energy_status_msgs_->energy_level;
pub_status_->publish(vehicle_status);
}

Expand Down

0 comments on commit be75f1b

Please sign in to comment.