Skip to content

Commit be75f1b

Browse files
authored
feat(default_ad_api): remove energy status (autowarefoundation#7464)
Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
1 parent ccbdab6 commit be75f1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

system/default_ad_api/src/vehicle.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void VehicleNode::publish_status()
167167
{
168168
if (
169169
!steering_status_msgs_ || !gear_status_msgs_ || !turn_indicator_status_msgs_ ||
170-
!hazard_light_status_msgs_ || !energy_status_msgs_)
170+
!hazard_light_status_msgs_)
171171
return;
172172

173173
autoware_ad_api::vehicle::VehicleStatus::Message vehicle_status;
@@ -178,7 +178,6 @@ void VehicleNode::publish_status()
178178
mapping(turn_indicator_type_, turn_indicator_status_msgs_->report, ApiTurnIndicator::UNKNOWN);
179179
vehicle_status.hazard_lights.status =
180180
mapping(hazard_light_type_, hazard_light_status_msgs_->report, ApiHazardLight::UNKNOWN);
181-
vehicle_status.energy_percentage = energy_status_msgs_->energy_level;
182181
pub_status_->publish(vehicle_status);
183182
}
184183

0 commit comments

Comments
 (0)