add more files msgs

This commit is contained in:
2025-12-04 15:11:15 +07:00
parent a78034191c
commit 2c40e67e32
91 changed files with 3548 additions and 42 deletions

View File

@@ -60,4 +60,29 @@ struct BatteryState
std::string serial_number;
};
inline bool operator==(const sensor_msgs::BatteryState& lhs, const sensor_msgs::BatteryState& rhs)
{
return lhs.header == rhs.header &&
lhs.voltage == rhs.voltage &&
lhs.temperature == rhs.temperature &&
lhs.current == rhs.current &&
lhs.charge == rhs.charge &&
lhs.capacity == rhs.capacity &&
lhs.design_capacity == rhs.design_capacity &&
lhs.percentage == rhs.percentage &&
lhs.power_supply_status == rhs.power_supply_status &&
lhs.power_supply_health == rhs.power_supply_health &&
lhs.power_supply_technology == rhs.power_supply_technology &&
lhs.present == rhs.present &&
lhs.cell_voltage == rhs.cell_voltage &&
lhs.cell_temperature == rhs.cell_temperature &&
lhs.location == rhs.location &&
lhs.serial_number == rhs.serial_number;
}
inline bool operator!=(const sensor_msgs::BatteryState& lhs, const sensor_msgs::BatteryState& rhs)
{
return !(lhs == rhs);
}
} // namespace sensor_msgs