Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the correct sense to all lateral axis definitions #3

Open
moorepants opened this issue Dec 13, 2024 · 12 comments
Open

Add the correct sense to all lateral axis definitions #3

moorepants opened this issue Dec 13, 2024 · 12 comments
Assignees

Comments

@moorepants
Copy link
Contributor

moorepants commented Dec 13, 2024

In https://github.com/mechmotum/baby-vibration/blob/master/data/vehicles.yml each vehicle has the lateral axis of each IMU defined:

  imu_lateral_axis:
    BotTrike: x
    FrontWheel: z
    RearWheel: -z
    SeatBot: x
    SeatHead: x

The IMUs are oriented on the vehicle such that one of the three body fixed sensor axes are approximately lined up with the horizontal lateral axis of the vehicle. These have to be added for each vehicle. The correct sense of each axis needs to be recorded for the rotation and gravity subtraction to work correctly. If the positive sensor axis is pointing to the right of the vehicle (when facing forward) it should indicated as x, y, or z. If the positive sense of the sensor axis is pointing to the left of the vehicle, it should be -x, -y, or -z.

@GabrieleDello
Copy link
Contributor

Travelling direction (Longitudinal direction)

Maxicosi_3_0months
BotTrike: +y
FrontWheel: -x
RearWheel: /
SeatBot: -y
SeatHead: +y

Maxicosi_5_9months
BotTrike: +y
FrontWheel: -x
RearWheel: /
SeatBot: -y
SeatHead: +y

Bugaboo_5_9months
BotTrike: +y
FrontWheel: -x
RearWheel: /
SeatBot: -x
SeatHead: +y

Bugaboo_3_0months
BotTrike: -y
FrontWheel: +x
RearWheel: /
SeatBot: +y
SeatHead: +y

Maxicosi_4_0months
BotTrike: -y
FrontWheel: +x
RearWheel: /
SeatBot: +y
SeatHead: +y

@moorepants
Copy link
Contributor Author

I don't want the "longitudinal" direction. This is for the lateral direction (pitch axis). I need to know what axis on the sensor aligns with the vehicle's pitch axis and which direction is positive (sensor axis points to the right) or negative (sensor axis points to the left).

@GabrieleDello
Copy link
Contributor

--- Lateral direction ---
*** Positive pointing to the right (wrt direction of travelling); Negative pointing to the left ***
PS For some tests, we don't take all the pictures for sensor orientation. Unfortunately. They are labelled with (?)

Maxicosi_3_0months
front_wheel: -Z
Rear_wheel: -Z
SeatHead: +X
SeatBot: -X
BotTrike: +X

Maxicosi_4_0months
front_wheel: -Z
Rear_wheel: -Z
SeatHead: +X
SeatBot: +X
BotTrike: -X

Maxicosi_5_9months
front_wheel: -Z
Rear_wheel: -Z
SeatHead: X (?)
SeatBot: X (?)
BotTrike: +X

YOYO_0months:
front_wheel: -Z
Rear_wheel: -Z
SeatHead: -X
SeatBot: -X
BotTrike: -X

Bugaboo_3_0months:
front_wheel: -Z
Rear_wheel: -Z
SeatHead: +X
SeatBot: -X
BotTrike: +X

Bugaboo_4_0months:
front_wheel: -Z
Rear_wheel: -Z
SeatHead: +X (?)
SeatBot: +X (?)
BotTrike: +X

Bugaboo_7_9months:
front_wheel: -Z
Rear_wheel: -Z
SeatHead: +X
SeatBot: +X
BotTrike: -Y (?)

Trike_0months (Maxicosi cot)Trike_3months (Melia baby shell)
front_wheel: -X
Rear_wheel: -X
SeatHead: -X
SeatBot: -X
BotTrike: -Y

Trike_3months (Melia baby shell)
front_wheel: -X
Rear_wheel: -X
SeatHead: +X
SeatBot: +X
BotTrike: -Y

@moorepants
Copy link
Contributor Author

You have Trike_3months twice in:

Trike_0months (Maxicosi cot)Trike_3months (Melia baby shell)
front_wheel: -X
Rear_wheel: -X
SeatHead: -X
SeatBot: -X
BotTrike: -Y

Trike_3months (Melia baby shell)
front_wheel: -X
Rear_wheel: -X
SeatHead: +X
SeatBot: +X
BotTrike: -Y

Typo?

@moorepants
Copy link
Contributor Author

Also Maxicos_1_0months is missing.

@moorepants
Copy link
Contributor Author

Also Maxicos_6_9months missing.

@moorepants
Copy link
Contributor Author

Also Bugaboo_5_9months missing.

@GabrieleDello
Copy link
Contributor

You have Trike_3months twice in:

Trike_0months (Maxicosi cot)Trike_3months (Melia baby shell) Here is Trike_1 and Trike_2 (0months)
front_wheel: -X
Rear_wheel: -X
SeatHead: -X
SeatBot: -X
BotTrike: -Y
Trike_3months (Melia baby shell) Here is Trike_5 (3months)
front_wheel: -X
Rear_wheel: -X
SeatHead: +X
SeatBot: +X
BotTrike: -Y

Typo?

No, it is correct. NOTE: Trike_4 misses the data for the the rear wheel sensor. Please only refer to Trike_5 (Trike_4 is a backup, "better than nothing")

@GabrieleDello
Copy link
Contributor

Lateral direction & orientation

2024-12-17_UrbanA_1_0months
2024-12-18_UrbanA_2_0months
2024-12-18_UrbanA_3_0months
front_wheel: +Z
Rear_wheel: -X
SeatHead: -X
SeatBot: -X
BotTrike: +Y

2024-12-18_UrbanA_4_3months
front_wheel: +Z
Rear_wheel: -X
SeatHead: +X
SeatBot: +X
BotTrike: +Y

@moorepants
Copy link
Contributor Author

I've gone through and checked all the orientations to make sure I have them matching what you have written here. It is all detailed in this file:

https://github.com/mechmotum/baby-vibration/blob/master/data/sessions.yml

I left note with "checked with" pointing to the relevant comments here and then many "TODO" notes pointing out the missing or unsure data.

@moorepants
Copy link
Contributor Author

moorepants commented Dec 20, 2024

Sessions that need axes to be confirmed and input/edited still:

  • session001: 2024-11-28_Maxicos_1_0months
  • session005: 2024-11-28_Maxicos_1_0months
  • session006: 2024-11-29_Bugaboo_5_9months
  • session012: 2024-12-10_Maxicosi_7_9months
  • session013: 2024-12-10_YOYO_5_0months
  • session020: 2024-12-18_UrbanA_2_3months

@moorepants moorepants added this to the Draft Report Deadline milestone Dec 20, 2024
@moorepants
Copy link
Contributor Author

If you check off the list in the prior comment, also add a comment to the sessions.yml file of the form "checked: ..." that's how I was logging in that file that I had done a triple check on the axes.

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

No branches or pull requests

2 participants