Gazebo Physics

API Reference

9.5.1
GetBatchRayIntersection.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2026 Open Source Robotics Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16*/
17
18#ifndef GZ_PHYSICS_GETBATCHRAYINTERSECTION_HH_
19#define GZ_PHYSICS_GETBATCHRAYINTERSECTION_HH_
20
21#include <vector>
22
28
29namespace gz
30{
31namespace physics
32{
33
38 : public virtual FeatureWithRequirements<ForwardStep>
39{
41 public: template <typename PolicyT>
43
44 public: template <typename PolicyT>
45 struct RayT
46 {
47 public: using VectorType =
48 typename FromPolicy<PolicyT>::template Use<LinearVector>;
49
52
55 };
56
60 public: template <typename PolicyT>
63
64 public: template <typename PolicyT, typename FeaturesT>
65 class World : public virtual Feature::World<PolicyT, FeaturesT>
66 {
68 public: using RayQuery = RayT<PolicyT>;
71
79 const std::vector<RayQuery> &_rays,
80 BatchedRayIntersectionData &_output) const;
81 };
82
83 public: template <typename PolicyT>
84 class Implementation : public virtual Feature::Implementation<PolicyT>
85 {
87 public: using RayQuery = RayT<PolicyT>;
90
92 const Identity &_worldID,
93 const std::vector<RayQuery> &_rays,
94 BatchedRayIntersectionData &_output) const = 0;
95 };
96};
97
98} // namespace physics
99} // namespace gz
100
101#include "gz/physics/detail/GetBatchRayIntersection.hh"
102
103#endif // GZ_PHYSICS_GETBATCHRAYINTERSECTION_HH_