Go to the documentation of this file.
19 #include "Camera/CameraComponent.h"
21 #include "Components/SceneCaptureComponent2D.h"
23 #include "CoreMinimal.h"
25 #include "Engine/TextureRenderTarget2D.h"
31 #include <Msgs/ROS2Img.h>
43 #include "RRROS2CameraComponent.generated.h"
175 void CaptureNonBlocking();
191 int32 QueueCount = 0;
204 UCameraComponent* CameraComponent =
nullptr;
213 USceneCaptureComponent2D* SceneCaptureComponent =
nullptr;
222 UTextureRenderTarget2D* RenderTarget =
nullptr;
279 virtual FROSImg GetROS2Data();
293 virtual void SetROS2Msg(UROS2GenericMsg* InMessage)
override;
302 FString Encoding = TEXT(
"rgb8");
TArray< FColor > Image
Definition: RRROS2CameraComponent.h:64
virtual void SetROS2Msg(UROS2GenericMsg *InMessage)
Set sensor data to ROS 2 msg. This method should be overwritten by child class.
Definition: RRROS2BaseSensorComponent.h:367
virtual void SensorUpdate()
Update Sensor data. This method should be overwritten by child class.
Definition: RRROS2BaseSensorComponent.h:348
FRenderCommandFence RenderFence
Definition: RRROS2CameraComponent.h:66
TQueue< FRenderRequest * > RenderRequestQueue
Definition: RRROS2CameraComponent.h:181
used in ::CaptureNonBlocking of URRROS2CameraComponent
Definition: RRROS2CameraComponent.h:60
EROS2CameraType
Definition: RRROS2CameraComponent.h:77
ROS 2 Camera component. Uses USceneCaptureComponent2D.
Definition: RRROS2CameraComponent.h:110
Base ROS 2 Sensor Component class. Other sensors class should inherit from this class.
virtual void PreInitializePublisher(UROS2NodeComponent *InROS2Node, const FString &InTopicName=TEXT(""))
Set publish frequency, topic name and FrameId.
@ RGB
UMETA(DisplayName = "RGB"),.
Base ROS 2 Sensor Component class. Other sensors class should inherit from this class.
Definition: RRROS2BaseSensorComponent.h:175
Convertions between ROS and UE, i.e.
FROSImg Data
Definition: RRROS2CameraComponent.h:187