AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
LidarRayAngleGaussianNoise.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#pragma once
17
19
20namespace agxSensor
21{
23
30 {
31 public:
36 {
37 AXIS_X = 1,
38 AXIS_Y = 2,
39 AXIS_Z = 3
40 };
41
42 public:
48
58
67 explicit LidarRayAngleGaussianNoise(agx::Real mean, agx::Real std, agx::Vec3 axisVector, agx::UInt32 seed = 783u);
68
73 void setMean(agx::Real mean);
74
79
85
90
96
101
106 void setAxisVector(const agx::Vec3& axisVector);
107
111 const agx::Vec3& getAxisVector() const;
112
118
123
125
126 public:
127 virtual RtNode* createNode() override;
128 virtual void synchronize(RtSystemNodeProxy& node, const CallbackData& data) override;
129
131
132 private:
133 RtNode* updatePerturbation(RtNode* node);
134
136
137 private:
138 agx::Real m_mean = 0.0f;
139 agx::Real m_std = 0.01f;
140 agx::Vec3 m_axisVector = {1.0, 0.0, 0.0};
141 agx::UInt32 m_seed = 783u;
142 };
143}
#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
Gaussian distributed perturbation of lidar ray emission and detection angle.
void setMean(agx::Real mean)
Set new mean of the Gaussian random perturbation applied to the rays.
LidarRayAngleGaussianNoise()=default
Default constructor, where the default perturbation is non-offset 0.01 radians standard deviation aro...
void setAxisVector(const agx::Vec3 &axisVector)
Set axis, local to the ray frame, around which the perturbation should be applied.
const agx::Vec3 & getAxisVector() const
LidarRayAngleGaussianNoise(agx::Real mean, agx::Real std, LidarRayAngleGaussianNoise::Axis axis, agx::UInt32 seed=783u)
Construct using the given perturbation parameters.
LidarRayAngleGaussianNoise(agx::Real mean, agx::Real std, agx::Vec3 axisVector, agx::UInt32 seed=783u)
Construct using the given perturbation parameters.
Axis
Axis, local to the ray frame, around which the perturbation should be applied.
void setAxis(LidarRayAngleGaussianNoise::Axis axis)
Set axis, local to the ray frame, around which the perturbation should be applied.
LidarRayAngleGaussianNoise::Axis getAxis() const
void setStandardDeviation(agx::Real std)
Set new standard deviation of the Gaussian random perturbation applied to the rays.
void setSeed(agx::UInt32 seed)
Set seed used to configure the pseudo-random perturbation generation.
Base type for distortions applied to the lidar rays before raytrace.
Raytrace system node acting as a clone of model specific implementations.
#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...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
uint32_t UInt32
Definition: Integer.h:32
double Real
Definition: Real.h:41
uint8_t UInt8
Definition: Integer.h:30
STL namespace.
A node performs a single operation, e.g., raycast, gaussian blur, merging etc.