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
[Proposal] Inconsistent Application of ray_cast_drift vs. drift_range #4333
As discussed in #4144, the current implementation of ray_cast_drift is confusing because it implent differently from drift_range about z-drift.
Specifically:
drift_range is applied to the ray origin (pos_w) in world coordinates (see [ray_caster.py#L245–L246]):
apply drift to ray starting position in world frame
pos_w += self.drift[env_ids]
however ray_cast_drift is applied directly to the hit point’s z-coordinate in world frame (see [ray_caster.py@8ccebfe#L307]):
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)
If ray_cast_drift is intended as an enhanced version of drift_range, its effect should be implemented in a consistent way.
Besides, typically we got height_scan observation through
Adding drift to pos_w (the sensor height) would naturally and correctly affect the final height reading.
Suggested Change
Consider applying ray_cast_drift to the ray origin (pos_w) instead of the hit point, aligning its implementation with drift. This would improve conceptual consistency.
Checklist
[x] I have checked that there is no similar issue in the repo (required)
I also sawed the original PR 2556 , the intention to add drift to hit points was visualized drift in z-axis. Maybe change implementation of drift_range is more reasonable?
Activity
Mayankm96 commentedon Jan 5, 2026
@jtigue-bdai Any idea on the above? I believe @jsmith-bdai initially merged this drifting feature.
AngLi-00 commentedon Jan 6, 2026
I also sawed the original PR 2556 , the intention to add drift to hit points was visualized drift in z-axis. Maybe change implementation of drift_range is more reasonable?
Fix ray mesh triangulation and query shape validation (#8781)