public void CheckForUrdfCompatibility_NoChildren_False() { var parent = new GameObject("Parent").transform; Assert.IsFalse(UrdfGeometry.CheckForUrdfCompatibility(parent, GeometryTypes.Box)); Object.DestroyImmediate(parent.gameObject); }
public void CheckForUrdfCompatibility_UnityPrimitive_True() { var parent = new GameObject("Parent").transform; var child = new GameObject("Child").transform; child.parent = parent; Assert.IsTrue(UrdfGeometry.CheckForUrdfCompatibility(parent, GeometryTypes.Box)); Object.DestroyImmediate(parent.gameObject); }
public void CheckForUrdfCompatibility_Transformed_False() { var parent = new GameObject("Parent").transform; var child = new GameObject("Child").transform; child.parent = parent; child.localPosition = Vector3.one; Assert.IsFalse(UrdfGeometry.CheckForUrdfCompatibility(parent, GeometryTypes.Box)); Object.DestroyImmediate(parent.gameObject); }
public void CheckForUrdfCompatibility_MultipleChildren_False() { var parent = new GameObject("Parent").transform; var child0 = new GameObject("Child0").transform; var child1 = new GameObject("Child1").transform; child0.parent = parent; child1.parent = parent; Assert.IsFalse(UrdfGeometry.CheckForUrdfCompatibility(parent, GeometryTypes.Box)); Object.DestroyImmediate(parent.gameObject); }