apply transform for mesh_prim of ray caster sensor #1448
+3
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Currently, ray-saster does not apply transform to the mesh that is cast against by ray.
As a result, no matter where the mesh is, the ray caster get data as same as when the mesh is in the pos (0,0,0) with quat (1,0,0,0).
Type of change
Screenshots
I use a red cube to mark the position of ray caster sensor, and use LidarPattern to generate ray for more intuitive visual effects.
Before fixed, when the mesh is in the center with pos=(0.0, 0.0, 0.0), rot=(1.0, 0.0, 0.0, 0.0), the result will be right.
However, if pos=(1.0, -2.0, 0.0), rot=(0.816, 0.577, 0.0, 0.0), it causes bug as:
After fixed, the result will be right:
Checklist
pre-commit
checks with./isaaclab.sh --format
config/extension.toml
fileCONTRIBUTORS.md
or my name already exists there