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

fix: data range of euler angles for sensor-independent vehicle frame(#5676) #13494

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JeffYoung17
Copy link

@JeffYoung17 JeffYoung17 commented Mar 1, 2021

  1. make euler angles's data range symmetric for sensor-independent vehicle frame in gnss driver: from [-3pi/2,pi/2] to [-pi,pi]
  2. add derivation of formulas: conversion of euler angles between different frames
    Reference: https://github.com/JeffYoung17/Blog/blob/master/support_files/v2_gnssins_euler_angles.pdf

As mentioned in (#5676 (comment)) by @hillbrook ,the sensor-independent frame in novatel_parser.cc is FLU, and the frame is converted back to RFU in data_parser.cc.
In novatel_parser.cc, the euler angle around z axis equals (90-azimuth)*deg_to_rad, and its range is [-3pi/2, pi/2], although it’s orientation is right, but the code in novatel_parser.cc lacks of a common theoretical derivation, and the range of Euler angle is also not symmetric.
Meanwhile, in modules/localization/proto/pose.proto, the range of euler angle around z axis is in [-pi, pi), so I think that it is better to unify them.
@jilinzhou @fengqikai1414 @xmyqsh @JackFu123

…polloAuto#5676)

make euler angles's data range symmetric for sensor-independent vehicle frame in gnss driver: from [-3pi/2,pi/2] to [-pi,pi]
@CLAassistant
Copy link

CLAassistant commented Mar 1, 2021

CLA assistant check
All committers have signed the CLA.

@JeffYoung17 JeffYoung17 changed the title fix: data range of euler angles for sensor-independent vehicle frame(… fix: data range of euler angles for sensor-independent vehicle frame(#5676) Mar 1, 2021
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