Skip to content

Conversation

@m3d
Copy link
Member

@m3d m3d commented Aug 8, 2025

There is new FW available for Matty platform supporting now IMU data (see robotika/matty#14). This is the first step to accept new (longer) messages with [roll, pitch, yaw] angles in 1/100th degrees resolution. This change should be fully backward compatible.

@m3d
Copy link
Member Author

m3d commented Aug 8, 2025

Added also option to plot the data:
imu-data-uphill

super().__init__(config, bus)
bus.register('esp_data', 'emergency_stop', 'pose2d', 'bumpers_front', 'bumpers_rear', 'gps_serial',
'joint_angle')
'joint_angle', 'rpy')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to keep some standard terminology. For this kinds of data we already have rotation. Please, could you use it instead of rpy?

@m3d
Copy link
Member Author

m3d commented Aug 8, 2025 via email

@tajgr
Copy link
Collaborator

tajgr commented Aug 9, 2025

According to this link:
https://github.com/robotika/osgar/blob/master/osgar/drivers/imu.py#L97
it should be [yaw, pitch, roll] 1/100deg (integers).

@m3d
Copy link
Member Author

m3d commented Aug 15, 2025

I remember that with the angles there was so much confusion that we started to use Quaternions - I would use that too in some later PR (terrain does not seem to be that critical for DTC). What I would like to have is if I go 20deg uphill, that it will be clear from the angles and the number will be the same if I go north or west, i.e. "yaw" is absolute heading here. Also the numbers I publish are 1:1 to what I receive from ESP32, no modifications. I could rename it to "rotation" and swap the order without taking care if applied order is the same, but it will be most probably wrong.

@m3d
Copy link
Member Author

m3d commented Aug 17, 2025

OK, added also rotation and orientation quaternion - I am not sure if that is correct, actually I am almost sure it is wrong, but at the moment I am more interested in calibration and proper raw values from ESP32 (i.e. to be fixed by some later PR?)

Copy link
Collaborator

@tajgr tajgr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. From my (formal) perspective, it's fine.

@m3d m3d merged commit fa4c2ca into master Aug 21, 2025
4 checks passed
@m3d m3d deleted the feature/matty-protocol-ver8 branch August 21, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants