Giter Club home page Giter Club logo

Comments (5)

ncgaehle avatar ncgaehle commented on July 29, 2024

Please checkout the following files:

and see
All GT annotations are given in the ISO coordinate system V and hence, the evaluation requires the data to be available in this coordinate system.. The used Euler angles are the ones in coordinate system V.

from cityscapesscripts.

prismformore avatar prismformore commented on July 29, 2024

@ncgaehle Thank you very much for your reply. The definition of yaw-pitch-roll is important for me because I am considering the transformation between the local yaw-pitch-roll angles and global yaw-pitch-roll angles.

I have read these files before and since there is still no clear definition of the yaw, pitch and roll in them may I confirm whether my understanding is correct:

For rotation_V obtained from box3d_annotation.get_parameters(coordinate_system=CRS_V), we can get yaw, pitch and roll by transforming the quaternion into Eular angles with rotation_V.yaw_pitch_roll. The obtained yaw is defined as the angle between vehicle direction and x-axis (on x-y plane), pitch is the angle between vehicle direction and z-axis (on z-x plane), roll is the angle between vehicle direction and y-axis (on z-y plane).

After we get rotation_S with box3d_annotation.get_parameters(coordinate_system=CRS_S) , we can get yaw, pitch and roll by transforming the quaternion into Eular angles with rotation_S.yaw_pitch_roll.

Here (under CRS_S), the obtained yaw is defined as the angle between vehicle direction and z-axis (under z-x plane), the pitch is the angle between vehicle direction and the negative y-axis (y-z plane), roll is the angle between vehicle direction and negative x-axis (on x-y plane).

If so the definition of this yaw is different from that used in mmdetection3D, right?

Your help is really appreciated!

from cityscapesscripts.

ncgaehle avatar ncgaehle commented on July 29, 2024

CRS_V is the coordinate frame in which all calculations (including yaw, pitch, and roll) are done for the evaluation. In CRS_V it is like this:
image Please note, that the coordinate frame in this image is different than CRS_V. It's just to visualize what "yaw", "pitch", and "roll" means: in particular "yaw" is the heading while "pitch" is how much the nose is pointing upwards or downwards. Finally, "roll" refers to the inclination to the left or right.

If you do the calculations in another coordinate frame the angles for sure are different.

from cityscapesscripts.

prismformore avatar prismformore commented on July 29, 2024

@ncgaehle thank you. I understand the concept of these three angles. But I am not sure about the exact definition of them in CRS_V e.g. the definition of yaw in CRS_V can be the angle between the vehicle direction and x-axis (on x-y plane), or the angle between the vehicle direction and negative y-axis (on x-y plane), this should influence how we calculate the gobal-local yaw transformation, right?

image

As a reference, in MMdetection3D the camera coordinate system defines this yaw angle explicitly:
image

from cityscapesscripts.

ncgaehle avatar ncgaehle commented on July 29, 2024

As described, "yaw" is the rotation around the z axis in CRS V. Yaw = 0 means a vehicle is moving in the same direction as the x axis.
"roll" is the rotation around the x axis, and "pitch" around the y axis.

from cityscapesscripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.