Skip to content

Semantic tags into Class IDs Conversion #8835

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

Open
oskarnatan opened this issue Apr 14, 2025 · 0 comments
Open

Semantic tags into Class IDs Conversion #8835

oskarnatan opened this issue Apr 14, 2025 · 0 comments

Comments

@oskarnatan
Copy link

Is your feature request related to a problem? Please describe.
How to convert semantic tag into class ID. Case: observation gathered by semantic lidar sensor.

Describe the solution you'd like
Directly retrieve the class ID instead of the semantic tag.

Describe alternatives you've considered
a script to convert semantic tags into class IDs

Additional context
I read https://carla.readthedocs.io/en/latest/python_api/#carla.SemanticLidarMeasurement
It said that each point consists of [x,y,z] coordinates plus the cosine of the incident angle, the index of the hit actor, and its semantic tag.

Is there a way to convert semantic tags (I think it is uint32) into class IDs?
I am getting this data when I print the semantic tags
[1.4e-45 1.4e-45 1.4e-45 ... 1.1e-44 1.1e-44 1.1e-44] [0.0e+00 1.4e-45 2.8e-45 4.2e-45 7.0e-45 9.8e-45 1.1e-44 1.3e-44 1.4e-44 1.5e-44 2.1e-44 2.5e-44 2.7e-44 2.8e-44 2.9e-44]

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

1 participant