RapyutaSimulationPlugins
RRKinematicJointComponent.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 
16 
17 #include "Components/ActorComponent.h"
18 
19 #include "CoreMinimal.h"
20 
21 
22 
23 // RapyutaSimulationPlugins
24 
26 
27 
28 
29 #include "RRKinematicJointComponent.generated.h"
30 
31 
32 
58 class RAPYUTASIMULATIONPLUGINS_API URRKinematicJointComponent : public URRJointComponent
59 
60 {
61 
62 
63 
64 public:
65 
66  // Sets default values for this component's properties
67 
69 
70 
71 
80  virtual void InitializeComponent() override;
81 
82 
83 
84 public:
85 
98  virtual void SetVelocityTarget(const FVector& InLinearVelocity, const FVector& InAngularVelocity) override;
99 
100 
101 
108  virtual void SetPose(const FVector& InPosition, const FRotator& InOrientation) override;
109 
110 
111 
124  virtual void SetPoseTarget(const FVector& InPosition, const FRotator& InOrientation) override;
125 
126 
127 
136  virtual void UpdatePose();
137 
138 
139 
150  virtual void Teleport(const FVector& InPosition, const FRotator& InOrientation) override;
151 
152 
153 
154  virtual void MoveToInitPose();
155 
156 
157 
158 protected:
159 
160  virtual void UpdateState(const float DeltaTime) override;
161 
162 
163 
164  virtual void UpdateControl(const float DeltaTime) override;
165 
166 };
167 
URRJointComponent::SetVelocityTarget
virtual void SetVelocityTarget(const FVector &InLinearVelocity, const FVector &InAngularVelocity)
Set velocity target.
URRJointComponent::UpdateControl
virtual void UpdateControl(const float DeltaTime)
RRJointComponent.h
URRJointComponent::SetPose
virtual void SetPose(const FVector &InPosition, const FRotator &InOrientation)
Directly set pose.
URRJointComponent
Base Joints class. Other joint class should inherit from this class.
Definition: RRJointComponent.h:81
URRJointComponent::MoveToInitPose
virtual void MoveToInitPose()
URRKinematicJointComponent
Kinematic Joint component. Uses K2_SetWorldTransform to move joint.
Definition: RRKinematicJointComponent.h:58
URRJointComponent::UpdateState
virtual void UpdateState(const float DeltaTime)
URRJointComponent::InitializeComponent
virtual void InitializeComponent() override
Initialize JointToChildLink and ParentLinkToJoint.
URRJointComponent::Teleport
virtual void Teleport(const FVector &InPosition, const FRotator &InOrientation)
Teleport robot to given pose. Implementation is in child class.
URRJointComponent::SetPoseTarget
virtual void SetPoseTarget(const FVector &InPosition, const FRotator &InOrientation)
Set Pose Target.