AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
LidarRayDistortionHandler.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
20
21namespace agxSensor
22{
24
32 {
33 public:
38
45 bool add( LidarRayDistortion* distortion );
46
53 bool remove(LidarRayDistortion* distortion);
54
59 bool contains( const LidarRayDistortion* distortion) const;
60
65
67
68 public:
69 virtual RtNode* createNode() final override;
70
71 virtual void onParentConnect( RtSystemNode& parent ) override;
72
74
76
77 private:
78 template<typename LidarRayModifier>
79 struct LidarRayDistortionData
80 {
81 LidarRayModifier node;
82 RtSystemNodeRef proxy;
83 };
84
85 private:
86 using LidarRayDistortionDataVector = std::vector<LidarRayDistortionData<LidarRayDistortionRef>>;
87
88 private:
89 LidarRayDistortionDataVector m_distortions;
90 };
91
92}
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition: Serializable.h:207
#define AGXSENSOR_EXPORT
Ray noise handler is responsible for all distortion application to rays before raytrace.
bool contains(const LidarRayDistortion *distortion) const
bool remove(LidarRayDistortion *distortion)
Remove the given distortion configuration from the lidar.
bool add(LidarRayDistortion *distortion)
Add distortion, angle noise etc, to the ray.
LidarRayDistortionRefVector getDistortions() const
LidarRayDistortionHandler()
Default constructor.
Base type for distortions applied to the lidar rays before raytrace.
A system node focused on raytracing.
Templated vector class.
Definition: agx/Vector.h:53
#define DOXYGEN_END_INTERNAL_BLOCK()
Definition: macros.h:89
#define DOXYGEN_START_INTERNAL_BLOCK()
Definition: macros.h:88
The agxSensor namespace contains components to model real-time sensors connected to the physics of AG...
A node performs a single operation, e.g., raycast, gaussian blur, merging etc.