Go to the documentation of this file.
19 #include "CoreMinimal.h"
35 #include "RRBaseOdomComponent.generated.h"
116 TWeakObjectPtr<ARRBaseRobot> RobotVehicle =
nullptr;
131 bool bManualUpdate =
false;
151 FString ChildFrameId = TEXT(
"base_footprint");
167 void SetFrameIds(
const FString& InFrameId,
const FString& InChildFrameId);
176 FTransform InitialTransform = FTransform::Identity;
185 FTransform GetOdomTF()
const;
194 virtual void InitOdom();
217 virtual void UpdateOdom(
float InDeltaTime);
230 bool bPublishOdomTf =
false;
239 bool bIsOdomInitialized =
false;
250 FTransform RootOffset = FTransform::Identity;
277 float NoiseMeanPosition = 0.f;
286 float NoiseVariancePosition = 0.001f;
295 float NoiseMeanRot = 0.f;
304 float NoiseVarianceRot = 0.005f;
315 bool bWithNoise =
true;
321 float LastUpdatedTime = 0.f;
330 FTransform PreviousTransform = FTransform::Identity;
339 FTransform PreviousNoisyTransform = FTransform::Identity;
EOdomSource
Type of odometry frame origin.
Definition: RRBaseOdomComponent.h:56
Base Odom Component which provide actor pose changes.
Definition: RRBaseOdomComponent.h:85
virtual void SensorUpdate()
Update Sensor data. This method should be overwritten by child class.
Definition: RRROS2BaseSensorComponent.h:348
@ ENCODER
UMETA(DisplayName = "Encoder")
Odometry Topic and TF publisher of ARRBaseRobot.
@ WORLD
UMETA(DisplayName = "World"),.
SimulationState class provides ROS 2 interface implementation to interact with UE4.
EntityState sensor components which publish entitystate relative to a specific actor.
TObjectPtr< URRGaussianNoise > RotNoise
Definition: RRBaseOdomComponent.h:268
FROSOdom OdomData
Definition: RRBaseOdomComponent.h:140
TObjectPtr< URRGaussianNoise > PositionNoise
Definition: RRBaseOdomComponent.h:259
virtual void PreInitializePublisher(UROS2NodeComponent *InROS2Node, const FString &InTopicName=TEXT(""))
Set publish frequency, topic name and FrameId.
Base ROS 2 Sensor Component class. Other sensors class should inherit from this class.
Definition: RRROS2BaseSensorComponent.h:175
Base Robot class. Other robot class should inherit from this class.
Definition: RRBaseRobot.h:161