Go to the documentation of this file.
19 #include "Components/LineBatchComponent.h"
21 #include "CoreMinimal.h"
23 #include "GameFramework/Actor.h"
25 #include "Kismet/KismetMathLibrary.h"
27 #include "PhysicalMaterials/PhysicalMaterial.h"
33 #include "Msgs/ROS2LaserScan.h"
49 #include "RR2DLidarComponent.generated.h"
110 virtual void TickComponent(
float DeltaTime,
enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
override;
160 bool Visible(AActor* TargetActor)
override;
181 FROSLaserScan GetROS2Data();
195 virtual void SetROS2Msg(UROS2GenericMsg* InMessage)
override;
204 float GetMinAngleRadians()
const;
213 float GetMaxAngleRadians()
const;
ROS 2 2D lidar components.
Definition: RR2DLidarComponent.h:74
virtual void SetROS2Msg(UROS2GenericMsg *InMessage)
Set sensor data to ROS 2 msg. This method should be overwritten by child class.
Definition: RRROS2BaseSensorComponent.h:367
Base ROS 2 LIDAR Component class. Other lidar class should inherit from this class.
virtual void SensorUpdate()
Update Sensor data. This method should be overwritten by child class.
Definition: RRROS2BaseSensorComponent.h:348
virtual bool Visible(AActor *TargetActor)
Return true if laser hits the target actor. This method should be overwritten by child class.
Definition: RRBaseLidarComponent.h:103
Base ROS 2 LIDAR Component class. Other lidar class should inherit from this class.
Definition: RRBaseLidarComponent.h:66
virtual void Run()
Start timer to update and publish sensor data by using SetTimer.