Skip to content

Commit ceae30c

Browse files
author
duc
committed
[ATurtlebotBurger] definition: cleaning up
1 parent 9abfd0d commit ceae30c

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

Source/RapyutaSimulationPlugins/Public/Robots/Turtlebot3/TurtlebotBurger.h

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,53 +30,51 @@ class RAPYUTASIMULATIONPLUGINS_API ATurtlebotBurger : public ARobotVehicle
3030

3131
virtual void EndPlay(const EEndPlayReason::Type EndPlayReason) override;
3232

33-
public:
3433
// Called every frame
3534
virtual void Tick(float DeltaTime) override;
3635

3736
UFUNCTION(BlueprintCallable)
3837
virtual void Init();
3938

4039
UPROPERTY(EditAnywhere, BlueprintReadWrite)
41-
UStaticMeshComponent* Base;
40+
UStaticMeshComponent* Base = nullptr;
4241

4342
UPROPERTY(EditAnywhere, BlueprintReadWrite)
44-
UStaticMeshComponent* LidarSensor;
43+
UStaticMeshComponent* LidarSensor = nullptr;
4544

4645
UPROPERTY(EditAnywhere, BlueprintReadWrite)
47-
UStaticMeshComponent* WheelLeft;
46+
UStaticMeshComponent* WheelLeft = nullptr;
4847

4948
UPROPERTY(EditAnywhere, BlueprintReadWrite)
50-
UStaticMeshComponent* WheelRight;
49+
UStaticMeshComponent* WheelRight = nullptr;
5150

5251
UPROPERTY(EditAnywhere, BlueprintReadWrite)
53-
UStaticMeshComponent* CasterBack;
52+
UStaticMeshComponent* CasterBack = nullptr;
5453

5554
UPROPERTY(EditAnywhere, BlueprintReadWrite)
56-
UPhysicsConstraintComponent* Base_LidarSensor;
55+
UPhysicsConstraintComponent* Base_LidarSensor = nullptr;
5756

5857
UPROPERTY(EditAnywhere, BlueprintReadWrite)
59-
UPhysicsConstraintComponent* Base_WheelLeft;
58+
UPhysicsConstraintComponent* Base_WheelLeft = nullptr;
6059

6160
UPROPERTY(EditAnywhere, BlueprintReadWrite)
62-
UPhysicsConstraintComponent* Base_WheelRight;
61+
UPhysicsConstraintComponent* Base_WheelRight = nullptr;
6362

6463
UPROPERTY(EditAnywhere, BlueprintReadWrite)
65-
UPhysicsConstraintComponent* Base_CasterBack;
64+
UPhysicsConstraintComponent* Base_CasterBack = nullptr;
6665

6766
UPROPERTY(EditAnywhere, BlueprintReadWrite)
68-
float MaxForce = 1000;
67+
float MaxForce = 1000.f;
6968

7069
UPROPERTY(EditAnywhere, BlueprintReadWrite)
71-
UMaterial* VehicleMaterial;
70+
UMaterial* VehicleMaterial = nullptr;
7271

7372
UPROPERTY(EditAnywhere, BlueprintReadWrite)
74-
UMaterial* BallMaterial;
73+
UMaterial* BallMaterial = nullptr;
7574

7675
UPROPERTY(VisibleAnywhere)
7776
bool IsInitialized = false;
7877

79-
protected:
8078
UFUNCTION()
8179
void SetupConstraintsAndPhysics();
8280

0 commit comments

Comments
 (0)