RapyutaSimulationPlugins
RRDifferentialDriveComponent.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 <random>
26 
27 
28 
29 #include "RRDifferentialDriveComponent.generated.h"
30 
31 
32 
50 class RAPYUTASIMULATIONPLUGINS_API URRDifferentialDriveComponent : public UDifferentialDriveComponentBase
51 
52 {
53 
54 
55 
56 public:
57 
66  virtual void UpdateMovement(float DeltaTime) override;
67 
68 
69 
87  void SetWheels(URRPhysicsJointComponent* InWheelLeft, URRPhysicsJointComponent* InWheelRight);
88 
89 
90 
101  virtual float GetWheelVelocity(const EDiffDriveWheel WheelIndex) override;
102 
103 
104 
105 
110  URRPhysicsJointComponent* WheelLeft = nullptr;
111 
112 
113 
114 
119  URRPhysicsJointComponent* WheelRight = nullptr;
120 
121 };
122 
UDifferentialDriveComponentBase
Differential Drive component base class.
Definition: DifferentialDriveComponentBase.h:73
UDifferentialDriveComponentBase::UpdateMovement
virtual void UpdateMovement(float DeltaTime) override
Calculate wheel velocity from Velocity(member of UMovementComponent) and AngularVelocity,...
URRDifferentialDriveComponent
Differential Drive component class.
Definition: RRDifferentialDriveComponent.h:50
EDiffDriveWheel
EDiffDriveWheel
Wheel type of differential drive.
Definition: DifferentialDriveComponentBase.h:48
UDifferentialDriveComponentBase::GetWheelVelocity
virtual float GetWheelVelocity(const EDiffDriveWheel WheelIndex)
Get the Wheel Velocity [cm/s].
DifferentialDriveComponentBase.h
Differential Drive component base class.
URRPhysicsJointComponent
Physics Joint component.
Definition: RRPhysicsJointComponent.h:64
RRPhysicsJointComponent.h