RapyutaSimulationPlugins
RRKinematicTricycleDriveComponent.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 
16 
17 #include "CoreMinimal.h"
18 
20 
22 
23 
24 
25 #include "RRKinematicTricycleDriveComponent.generated.h"
26 
27 
28 
29 DECLARE_LOG_CATEGORY_EXTERN(LogRRKinematicTricycleDriveComponent, Log, All);
30 
31 
32 
46 class RAPYUTASIMULATIONPLUGINS_API URRKinematicTricycleDriveComponent : public URobotVehicleMovementComponent
47 
48 {
49 
50 
51 
52 public:
53 
54  void BeginPlay();
55 
56 
57 
58  void TickComponent(float InDeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction);
59 
60 
61 
62 
67  void SetDriveJoints(URRJointComponent* InSteeringJoint, URRJointComponent* InDriveJoint);
68 
69 
70 
71 
76  URRJointComponent* SteeringJoint = nullptr;
77 
78 
79 
80 
85  URRJointComponent* DriveJoint = nullptr;
86 
87 
88 
89 
94  float WheelRadius = 12.7f;
95 
96 
97 
99 
100 
105  float WheelBase = 110.f;
106 
107 
108 
109 protected:
110 
112 
113 
118  float PrevWheeAngleRad = 0.f;
119 
120 };
121 
URobotVehicleMovementComponent
Base Robot vehicle movement class which is used as part of ARobotVehicle.
Definition: RobotVehicleMovementComponent.h:84
DECLARE_LOG_CATEGORY_EXTERN
DECLARE_LOG_CATEGORY_EXTERN(LogRRKinematicTricycleDriveComponent, Log, All)
RRJointComponent.h
URRJointComponent
Base Joints class. Other joint class should inherit from this class.
Definition: RRJointComponent.h:81
URobotVehicleMovementComponent::TickComponent
virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
Call UpdateMovement, and UpdateComponentVelocity.
RobotVehicleMovementComponent.h
Base Robot vehicle movement class which is used as part of ARobotVehicle.
URRKinematicTricycleDriveComponent
Kinematic Tricycle Drive component class.
Definition: RRKinematicTricycleDriveComponent.h:46