sensors_print


Overview

The sensors_print application retrieves and logs the current values of all available sensors on the robot.

Execution

The application can be executed using:

python3 sensors_print/ --auto-run

Inputs

  • No user input is required.

  • The application automatically fetches and displays sensor data.

Outputs

  • A list of sensors along with their current values.

Behavior

  • The application starts and logs that it is running.

  • It retrieves the current state of all sensors.

  • It prints each sensor’s name along with its value.

  • The application finishes execution automatically.

Example Output

# python3 sensors_print/ --auto-run
[INFO] [timestamp] [pyraya.sensors_print]: Auto running the app
[INFO] [timestamp] [pyraya.sensors_print]: Sensors state:
[INFO] [timestamp] [pyraya.sensors_print]: - absolutestateofcharge: 99
[INFO] [timestamp] [pyraya.sensors_print]: - barometer: 761.9663696289062
...