You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] Question about applying vertical drift of raycaster to hit point instead of starting pos #4144
In source/isaaclab/isaaclab/sensors/ray_caster/ray_caster.py --> _update_buffers_impl() --> line 307~308, the comment says that "apply vertical drift to ray starting position" but the vertical drift is applied to hit points instead of sensor pos i.e. starting position, is this a trick or bug?
# apply vertical drift to ray starting position in ray caster frame
self._data.ray_hits_w[env_ids, :, 2] += self.ray_cast_drift[env_ids, 2].unsqueeze(-1)
Build Info
Describe the versions that you are currently using:
This is intended. The z coordinate of the ray_hits_w can be independent of the vertical starting position of the raycaster (take the case of a height scanner with ray directions [0, 0, -1], then any change to the z-start position does not affect the z-position of the ray hits). To make sure that the vertical drift is correct applied, we add it directly to the ray_hits_w
Thank you for following up. Could you please post a new issue as a feature request, that is, a Proposal, for the team to consider this behavior? Thank you.
Thank you for following up. Could you please post a new issue as a feature request, that is, a Proposal, for the team to consider this behavior? Thank you.
Activity
RandomOakForest commentedon Dec 8, 2025
Thank you for posting this. The comment may need updating. The team will review it.
RandomOakForest commentedon Dec 23, 2025
@pascal-roth for vis. Thanks.
pascal-roth commentedon Dec 24, 2025
This is intended. The z coordinate of the
ray_hits_wcan be independent of the vertical starting position of the raycaster (take the case of a height scanner with ray directions [0, 0, -1], then any change to the z-start position does not affect the z-position of the ray hits). To make sure that the vertical drift is correct applied, we add it directly to theray_hits_wAngLi-00 commentedon Dec 25, 2025
Thanks for the clarification!
While I'm still confused why
drift_rangecan added to starting point directly?Code in ray_caster.py line 245~246: https://github.com/isaac-sim/IsaacLab/blob/main/source/isaaclab/isaaclab/sensors/ray_caster/ray_caster.py#L245C1-L246C37
Besides, typically we got height_scan observation through
maybe add drift to pos_w still works?
RandomOakForest commentedon Jan 2, 2026
Thank you for following up. Could you please post a new issue as a feature request, that is, a Proposal, for the team to consider this behavior? Thank you.
AngLi-00 commentedon Jan 5, 2026
Already posted an issue #4333