ROS电池信息

sensor_msgs/BatteryState Message

Power supply status constants 充电状态
uint8 POWER_SUPPLY_STATUS_UNKNOWN = 0 #未知
uint8 POWER_SUPPLY_STATUS_CHARGING = 1 #充电中
uint8 POWER_SUPPLY_STATUS_DISCHARGING = 2 #放电中
uint8 POWER_SUPPLY_STATUS_NOT_CHARGING = 3 #没有充电
uint8 POWER_SUPPLY_STATUS_FULL = 4 #电池电量已满

Power supply health constants 电源健康状态
uint8 POWER_SUPPLY_HEALTH_UNKNOWN = 0 #未知
uint8 POWER_SUPPLY_HEALTH_GOOD = 1 #电源健康
uint8 POWER_SUPPLY_HEALTH_OVERHEAT = 2 #电源过热
uint8 POWER_SUPPLY_HEALTH_DEAD = 3 #电源已损坏
uint8 POWER_SUPPLY_HEALTH_OVERVOLTAGE = 4 #电压过大
uint8 POWER_SUPPLY_HEALTH_UNSPEC_FAILURE = 5 #未知错误
uint8 POWER_SUPPLY_HEALTH_COLD = 6 #电源过冷
uint8 POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE = 7 #看门狗定时器到期
uint8 POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE = 8 #安全运行时间到期

Power supply technology (chemistry) constants 电源技术(化学)
uint8 POWER_SUPPLY_TECHNOLOGY_UNKNOWN = 0 #未知
uint8 POWER_SUPPLY_TECHNOLOGY_NIMH = 1 #镍氢电池
uint8 POWER_SUPPLY_TECHNOLOGY_LION = 2 #锂电池
uint8 POWER_SUPPLY_TECHNOLOGY_LIPO = 3 #锂聚合物电池
uint8 POWER_SUPPLY_TECHNOLOGY_LIFE = 4 #锂铁电池
uint8 POWER_SUPPLY_TECHNOLOGY_NICD = 5 # 镍镉电池
uint8 POWER_SUPPLY_TECHNOLOGY_LIMN = 6 #锂离子电池

内容

  • Header header
  • float32 voltage # Voltage in Volts (Mandatory) 电压(伏特)(必需)
  • float32 current # Negative when discharging (A) (If unmeasured NaN) 电流 放电时为负值(A)(如果未测量的NaN)
  • float32 charge # Current charge in Ah (If unmeasured NaN) 当前的电源容量(以Ah计)
  • float32 capacity # Capacity in Ah (last full capacity) (If unmeasured NaN) 容量,Ah(上一次满容量)(如果未测量,NaN)
  • float32 design_capacity # Capacity in Ah (design capacity) (If unmeasured NaN) 容量(设计容量)(如果未测量的NaN)
  • float32 percentage # Charge percentage on 0 to 1 range (If unmeasured NaN) 电量百分比在0到1的范围内(如果未测量的NaN)
  • uint8 power_supply_status # The charging status as reported. Values defined above 充电状态,上面定义的值
  • uint8 power_supply_health # The battery health metric. Values defined above 电源健康状态, 上面定义的值
  • uint8 power_supply_technology # The battery chemistry. Values defined above 电源技术(化学),上面定义的值
  • bool present # True if the battery is present 如果有电池,则为真
  • float32[] cell_voltage # An array of individual cell voltages for each cell in the pack 电池组中每个电池的单个电池电压的阵列 # If individual voltages unknown but number of cells known set each to NaN 如果单个电压未知,但已知电池数,将每个电池电压设置为NaN
  • string location # The location into which the battery is inserted. (slot number or plug) 电池插入的位置。 (插槽号或插头)
  • string serial_number # The best approximation of the battery serial number 电池序列号的最佳近似值
  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

RobotWoods

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值