How to get all sensor data using raspberry pi
I am trying to train Bittle using Reinforcement Learning.
Is there a way I can get all the sensor information using Python? (some command like getSensorData()?) I believe it is possible, as I have seen multiple posts here referring to that. Most refer to the imu.h file, but that is not accessible to me since I am using Python. In particular, I am interested in yaw, pitch, roll, but if there is more, I'd love to have it.
Currently, I use the examples shown in serialMaster in the main Github repo as a reference to run the robot, specifically, from Bittle's perspective, my code is a copy of SerialMaster/example.py.
82 Views



I am using Pi 5. Also, I didn't connect the Pi using the socket as described https://docs.petoi.com/apis/raspberry-pi-serial-port-as-an-interface I simply connected the USB adapter to the NyBoard and the Pi. I don't know if that would be an issue.