MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / ToString

Method ToString

Source/URLab/Public/MuJoCo/Utils/MjBind.h:775–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

773 TArray<JointView> Joints() const;
774
775 FString ToString() const
776 {
777 FString Info = FString::Printf(TEXT("=== Body ID: %d (%s) ===\n"), id, name ? *MjUtils::MjToString(name) : TEXT("None"));
778
779 Info += TEXT(" [Config]\n");
780 Info += FString::Printf(TEXT(" Mass: %.4f\n"), *body_mass);
781 Info += FString::Printf(TEXT(" Rel Pos: %s\n"), *FormatVec3(body_pos));
782
783 Info += TEXT(" [State]\n");
784 Info += FString::Printf(TEXT(" World Pos: %s\n"), *FormatVec3(xpos));
785 return Info;
786 }
787};
788
789// --- Body View ---

Callers

nothing calls this directly

Calls 1

FormatVec3Function · 0.85

Tested by

no test coverage detected