Using the Robot State Service
This example program demonstrates how to query the robot state service for the hardware config, the current robot state, or the robot metrics.
Setup Dependencies
This example requires the bosdyn API and client to be installed, and must be run using python3. Using pip, these dependencies can be installed using:
python3 -m pip install -r requirements.txt
Running the Example
To run the example:
python3 get_robot_state.py ROBOT_IP {state, hardware, metrics}
As well, the program requires one of {state, hardware, metrics}
as a command line argument to specify which robot state request to issue when running the example program.