py_trees_ros_tutorials.mock.battery module
Mock the state of a battery component.
- class py_trees_ros_tutorials.mock.battery.Battery[source]
Bases:
object
Mocks the processed battery state for a robot (/battery/sensor_state).
- Node Name:
battery
- Publishers:
~state (
sensor_msgs.msg.BatteryState
)full battery state information
- Dynamic Parameters:
On startup it is in a DISCHARGING state and updates every 200ms. Use the
dashboard
to dynamically reconfigure parameters.