add more files msgs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user