py_trees_ros_tutorials.mock.battery module
Mock the state of a battery component.
- class py_trees_ros_tutorials.mock.battery.Battery[source]
Bases:
objectMocks 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
dashboardto dynamically reconfigure parameters.