gz/rendering/base/BaseLidarVisual.hh
virtual MaterialPtr CreateMaterial(const std::string &_name="")=0
Create new material with the given name. Created material will have default properties.
virtual double Size() const override
Get size of the lidar visualization.
Definition: gz/rendering/base/BaseLidarVisual.hh:453
virtual unsigned int VerticalRayCount() const override
Get number of vertical rays.
Definition: gz/rendering/base/BaseLidarVisual.hh:329
A LidarVisual geometry class. The visual appearance is based on the type specified.
Definition: gz/rendering/LidarVisual.hh:55
@ LVT_TRIANGLE_STRIPS
Triangle strips visual.
Definition: gz/rendering/LidarVisual.hh:49
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: gz/rendering/base/BaseLidarVisual.hh:216
BaseLidarVisual()
Definition: gz/rendering/base/BaseLidarVisual.hh:204
virtual double MinVerticalAngle() const override
Get minimum vertical angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:290
virtual unsigned int PointCount() const override
Get number of points in laser data.
Definition: gz/rendering/base/BaseLidarVisual.hh:237
virtual ignition::math::Pose3d Offset() const override
Get offset of visual.
Definition: gz/rendering/base/BaseLidarVisual.hh:425
virtual void SetOffset(const ignition::math::Pose3d _offset) override
Set offset of visual.
Definition: gz/rendering/base/BaseLidarVisual.hh:418
virtual unsigned int HorizontalRayCount() const override
Get number of horizontal rays.
Definition: gz/rendering/base/BaseLidarVisual.hh:383
virtual double MinRange() const override
Get minimum range of lidar rays.
Definition: gz/rendering/base/BaseLidarVisual.hh:397
virtual void SetHorizontalRayCount(unsigned int _horizontalRayCount) override
Set number of horizontal rays.
Definition: gz/rendering/base/BaseLidarVisual.hh:366
double verticalAngleStep
Angle between two vertical rays.
Definition: gz/rendering/base/BaseLidarVisual.hh:166
virtual void SetSize(double _size) override
Set size of the lidar visualization, e.g. size of rasterized lidar points in pixels.
Definition: gz/rendering/base/BaseLidarVisual.hh:446
virtual double MaxVerticalAngle() const override
Get minimum vertical angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:305
Base implementation of a Lidar Visual.
Definition: gz/rendering/base/BaseLidarVisual.hh:34
virtual void CreateMaterials()
Create predefined materials for lidar visual.
Definition: gz/rendering/base/BaseLidarVisual.hh:474
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node....
Definition: gz/rendering/Scene.hh:49
virtual LidarVisualType Type() const override
Get the type for lidar visual.
Definition: gz/rendering/base/BaseLidarVisual.hh:439
virtual void Update() override
Update the Visual.
Definition: gz/rendering/base/BaseLidarVisual.hh:252
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: gz/rendering/base/BaseLidarVisual.hh:223
double size
Size of lidar visualisation.
Definition: gz/rendering/base/BaseLidarVisual.hh:197
virtual double MinHorizontalAngle() const override
Get minimum horizontal angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:344
LidarVisualType
Enum for LidarVisual types.
Definition: gz/rendering/LidarVisual.hh:37
virtual void ClearPoints() override
Clear the points of the lidar visual.
Definition: gz/rendering/base/BaseLidarVisual.hh:230
virtual void SetPoints(const std::vector< double > &_points) override
Set lidar points to be visualised.
Definition: gz/rendering/base/BaseLidarVisual.hh:259
LidarVisualType lidarVisualType
Type of lidar visualisation.
Definition: gz/rendering/base/BaseLidarVisual.hh:193
virtual std::vector< double > Points() const override
Get the points in laser data.
Definition: gz/rendering/base/BaseLidarVisual.hh:244
#define ignwarn
unsigned int horizontalCount
Horizontal laser count.
Definition: gz/rendering/base/BaseLidarVisual.hh:175
virtual void SetMinHorizontalAngle(double _minHorizontalAngle) override
Set minimum horizontal angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:336
virtual void SetMaxRange(double _maxRange) override
Set maximum range of lidar rays.
Definition: gz/rendering/base/BaseLidarVisual.hh:404
virtual ~BaseLidarVisual()
Definition: gz/rendering/base/BaseLidarVisual.hh:210
virtual void Init() override
Definition: gz/rendering/base/BaseLidarVisual.hh:274
unsigned int verticalCount
Vertical laser count.
Definition: gz/rendering/base/BaseLidarVisual.hh:163
T endl(T... args)
virtual void SetMaxHorizontalAngle(double _maxHorizontalAngle) override
Set maximum horizontal angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:351
double minVerticalAngle
Vertical minimal angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:157
double maxVerticalAngle
Vertical maximum angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:160
virtual void SetMinRange(double _minRange) override
Set minimum range of lidar rays.
Definition: gz/rendering/base/BaseLidarVisual.hh:390
virtual void SetMinVerticalAngle(double _minVerticalAngle) override
Set minimum vertical angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:282
virtual void SetDisplayNonHitting(bool _display) override
Set if non-hitting rays will be displayed (this does not work for TRIANGLE_STRIPS visual)
Definition: gz/rendering/base/BaseLidarVisual.hh:460
virtual double MaxHorizontalAngle() const override
Get maximum horizontal angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:359
double maxRange
Maximum Range.
Definition: gz/rendering/base/BaseLidarVisual.hh:184
virtual void SetMaxVerticalAngle(double _maxVerticalAngle) override
Set maximum vertical angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:297
double horizontalAngleStep
Angle between two horizontal rays.
Definition: gz/rendering/base/BaseLidarVisual.hh:178
virtual double MaxRange() const override
Get maximum range of lidar rays.
Definition: gz/rendering/base/BaseLidarVisual.hh:411
double maxHorizontalAngle
Horizontal maximum angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:172
double minRange
Minimum Range.
Definition: gz/rendering/base/BaseLidarVisual.hh:181
virtual void SetVerticalRayCount(unsigned int _verticalRayCount) override
Set number of vertical rays.
Definition: gz/rendering/base/BaseLidarVisual.hh:312
bool displayNonHitting
Option to display non-hitting rays.
Definition: gz/rendering/base/BaseLidarVisual.hh:187
static const Pose3< T > Zero
ignition::math::Pose3d offset
Offset of visual.
Definition: gz/rendering/base/BaseLidarVisual.hh:190
virtual bool DisplayNonHitting() const override
Get if non-hitting rays will be displayed.
Definition: gz/rendering/base/BaseLidarVisual.hh:467
double minHorizontalAngle
Horizontal minimal angle.
Definition: gz/rendering/base/BaseLidarVisual.hh:169
virtual void SetType(const LidarVisualType _type) override
Set type for lidar visual.
Definition: gz/rendering/base/BaseLidarVisual.hh:432