RapyutaSimulationPlugins
RobotVehicle.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 
18 
19 // UE
20 
21 #include "Components/SkeletalMeshComponent.h"
22 
23 #include "CoreMinimal.h"
24 
25 
26 
27 // RapyutaSimulationPlugins
28 
29 #include "Robots/RRBaseRobot.h"
30 
31 
32 
33 // rclUE
34 
35 #include "ROS2NodeComponent.h"
36 
37 
38 
39 #include "RobotVehicle.generated.h"
40 
41 
42 
58 class RAPYUTASIMULATIONPLUGINS_API ARobotVehicle : public ARRBaseRobot
59 
60 {
61 
62 
63 
64 public:
65 
74  ARobotVehicle();
75 
76 
77 
88  ARobotVehicle(const FObjectInitializer& ObjectInitializer);
89 
90 
91 
93 
94 
99  USkeletalMeshComponent* SkeletalMeshComp = nullptr;
100 
101 
102 
111  void SetupDefaultRootSkeletal();
112 
113 
114 
127  virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const;
128 
129 
130 
131 protected:
132 
139  void PreInitializeComponents() override;
140 
141 };
142 
RRBaseRobot.h
Base Robot class. Other robot class can inherit from this class.
ARRBaseRobot::PreInitializeComponents
virtual void PreInitializeComponents() override
Instantiate default child components.
ARRBaseRobot::GetLifetimeReplicatedProps
virtual void GetLifetimeReplicatedProps(TArray< FLifetimeProperty > &OutLifetimeProps) const override
Returns the properties used for network replication, this needs to be overridden by all actor classes...
ARobotVehicle
RobotVehicle class.
Definition: RobotVehicle.h:58
ARRBaseRobot
Base Robot class. Other robot class should inherit from this class.
Definition: RRBaseRobot.h:161