File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,7 @@ namespace RGL
114
114
}
115
115
116
116
m_graph.ConfigureFieldNodes (m_rglRaycastResults.m_fields .data (), m_rglRaycastResults.m_fields .size ());
117
-
118
- m_graph.SetIsCompactEnabled (ShouldEnableCompact ());
117
+ m_graph.SetIsCompactEnabled (!m_returnNonHits);
119
118
}
120
119
121
120
AZ::Outcome<ROS2::RaycastResults, const char *> LidarRaycaster::PerformRaycast (const AZ::Transform& lidarTransform)
@@ -220,7 +219,7 @@ namespace RGL
220
219
UpdateNonHitValues ();
221
220
222
221
// We need to configure if points should be compacted to minimize the CPU operations when retrieving raycast results.
223
- m_graph.SetIsCompactEnabled (ShouldEnableCompact () );
222
+ m_graph.SetIsCompactEnabled (!returnNonHits );
224
223
}
225
224
226
225
AZStd::optional<size_t > LidarRaycaster::GetRglResultsSize (
@@ -284,9 +283,4 @@ namespace RGL
284
283
285
284
return resultsSize;
286
285
}
287
-
288
- bool LidarRaycaster::ShouldEnableCompact () const
289
- {
290
- return !m_raycastResults->IsFieldPresent <ROS2::RaycastResultFlags::Range>() && !m_returnNonHits;
291
- }
292
286
} // namespace RGL
Original file line number Diff line number Diff line change @@ -63,7 +63,5 @@ namespace RGL
63
63
AZStd::optional<ROS2::RaycastResults> m_raycastResults;
64
64
65
65
PipelineGraph m_graph;
66
-
67
- [[nodiscard]] bool ShouldEnableCompact () const ;
68
66
};
69
67
} // namespace RGL
You can’t perform that action at this time.
0 commit comments