Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bvallon-sl committed Apr 13, 2023
1 parent 8074232 commit 328d5d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions zed-livelink-fusion/Source/Private/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,10 @@ StreamedSkeletonData BuildSkeletonsTransformFromZEDObjects(SL_BodyData& bodyData
FQuat global_rotation = FQuat(bodyRotation.x, bodyRotation.y, bodyRotation.z, bodyRotation.w);
if (rootPosition.ContainsNaN())
{
std::cout << "rootPosition of index : 0 is nan " << std::endl;
rootPosition = FVector::ZeroVector;
}
if (global_rotation.ContainsNaN())
{
std::cout << "global_rotation of index : 0 is nan " << std::endl;
global_rotation = FQuat::Identity;
}

Expand All @@ -326,13 +324,11 @@ StreamedSkeletonData BuildSkeletonsTransformFromZEDObjects(SL_BodyData& bodyData
FVector position = FVector(worldTranslation.x, worldTranslation.y, worldTranslation.z);
if (position.ContainsNaN())
{
std::cout << "worldTranslation of index : "<< i <<" is nan " << std::endl;
position = FVector::ZeroVector;
}
FQuat rotation = FQuat(localRotation.x, localRotation.y, localRotation.z, localRotation.w);
if (rotation.ContainsNaN())
{
std::cout << "rotation of index " << i << "is nan " << std::endl;
rotation = FQuat::Identity;
}

Expand Down Expand Up @@ -384,9 +380,6 @@ void PopulateSkeletonsData(SL_Bodies& bodies) {
remainingKeyList.Remove(bodyData.id);
}
}
else
{
}
}
for (int index = 0; index < remainingKeyList.Num(); index++)
{
Expand Down
3 changes: 0 additions & 3 deletions zed-livelink-mono/Source/Private/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ StreamedSkeletonData BuildSkeletonsTransformFromZEDObjects(SL_BodyData& bodyData

if (position.ContainsNaN())
{
std::cout << "position of index : 0 is nan " << std::endl;
position = FVector::ZeroVector;
}

Expand All @@ -311,15 +310,13 @@ StreamedSkeletonData BuildSkeletonsTransformFromZEDObjects(SL_BodyData& bodyData
position = FVector(worldTranslation.x, worldTranslation.y, worldTranslation.z);
if (position.ContainsNaN())
{
std::cout << "position of index : " << i << " is nan " << std::endl;
position = FVector::ZeroVector;
}

FQuat jointRotation = FQuat(localRotation.x, localRotation.y, localRotation.z, localRotation.w).GetNormalized();

if (jointRotation.ContainsNaN())
{
std::cout << "rotation of index : " << i << " is nan " << std::endl;
position = FVector::ZeroVector;
}

Expand Down

0 comments on commit 328d5d7

Please sign in to comment.