Skip to content

Commit

Permalink
Updated with Identity,ZeroVector and OneVector functions
Browse files Browse the repository at this point in the history
  • Loading branch information
praphulkallakuri committed Nov 4, 2021
1 parent 22557ed commit c7c94c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ void URobotVehicleMovementComponent::InitOdom()
InitialTransform.SetTranslation(PawnOwner->GetActorLocation());
InitialTransform.SetRotation(FQuat(PawnOwner->GetActorRotation()));

PreviousTransform = FTransform(FQuat(0, 0, 0, 1), FVector(0, 0, 0), FVector(1, 1, 1));
PreviousTransform = FTransform(FQuat::Identity, FVector::ZeroVector, FVector::OneVector);

OdomData.pose_pose_position_x = 0;
OdomData.pose_pose_position_y = 0;
OdomData.pose_pose_position_z = 0;
OdomData.pose_pose_orientation = FQuat(0, 0, 0, 1);
OdomData.pose_pose_orientation = FQuat::Identity;

// todo temporary hardcoded
OdomData.pose_covariance.Init(0, 36);
Expand Down

0 comments on commit c7c94c8

Please sign in to comment.