@@ -1060,7 +1060,7 @@ def test_batched_mounted_camera_rendering(show_viewer, tol):
10601060 morph = gs .morphs .Mesh (
10611061 file = "meshes/sphere.obj" ,
10621062 scale = 0.1 ,
1063- pos = (- 0.2 , - 0.8 , 0.2 ),
1063+ pos = (- 0.2 , - 0.5 , 0.2 ),
10641064 fixed = True ,
10651065 ),
10661066 surface = gs .surfaces .Rough (
@@ -1069,93 +1069,6 @@ def test_batched_mounted_camera_rendering(show_viewer, tol):
10691069 ),
10701070 ),
10711071 )
1072- scene .add_entity (
1073- morph = gs .morphs .Mesh (
1074- file = "meshes/sphere.obj" ,
1075- scale = 0.1 ,
1076- pos = (- 0.2 , - 0.5 , 0.2 ),
1077- fixed = True ,
1078- ),
1079- surface = gs .surfaces .Rough (
1080- color = (1.0 , 1.0 , 1.0 ),
1081- ),
1082- )
1083- scene .add_entity (
1084- morph = gs .morphs .Mesh (
1085- file = "meshes/sphere.obj" ,
1086- scale = 0.1 ,
1087- pos = (- 0.2 , - 0.2 , 0.2 ),
1088- fixed = True ,
1089- ),
1090- surface = gs .surfaces .Smooth (
1091- color = (0.6 , 0.8 , 1.0 ),
1092- ),
1093- )
1094- scene .add_entity (
1095- morph = gs .morphs .Mesh (
1096- file = "meshes/sphere.obj" ,
1097- scale = 0.1 ,
1098- pos = (- 0.2 , 0.2 , 0.2 ),
1099- fixed = True ,
1100- ),
1101- surface = gs .surfaces .Iron (
1102- color = (1.0 , 1.0 , 1.0 ),
1103- ),
1104- )
1105- scene .add_entity (
1106- morph = gs .morphs .Mesh (
1107- file = "meshes/sphere.obj" ,
1108- scale = 0.1 ,
1109- pos = (- 0.2 , 0.5 , 0.2 ),
1110- fixed = True ,
1111- ),
1112- surface = gs .surfaces .Gold (
1113- color = (1.0 , 1.0 , 1.0 ),
1114- ),
1115- )
1116- scene .add_entity (
1117- morph = gs .morphs .Mesh (
1118- file = "meshes/sphere.obj" ,
1119- scale = 0.1 ,
1120- pos = (- 0.2 , 0.8 , 0.2 ),
1121- fixed = True ,
1122- ),
1123- surface = gs .surfaces .Glass (
1124- color = (1.0 , 1.0 , 1.0 ),
1125- ),
1126- )
1127- scene .add_entity (
1128- morph = gs .morphs .Mesh (
1129- file = "meshes/sphere.obj" ,
1130- scale = 0.1 ,
1131- pos = (0.2 , - 0.8 , 0.2 ),
1132- fixed = True ,
1133- ),
1134- surface = gs .surfaces .Smooth (
1135- color = (1.0 , 1.0 , 1.0 , 0.5 ),
1136- ),
1137- )
1138- scene .add_entity (
1139- morph = gs .morphs .Mesh (
1140- file = "meshes/wooden_sphere_OBJ/wooden_sphere.obj" ,
1141- scale = 0.025 ,
1142- pos = (0.2 , - 0.5 , 0.2 ),
1143- fixed = True ,
1144- ),
1145- )
1146- scene .add_entity (
1147- morph = gs .morphs .Mesh (
1148- file = "meshes/wooden_sphere_OBJ/wooden_sphere.obj" ,
1149- scale = 0.025 ,
1150- pos = (0.2 , - 0.2 , 0.2 ),
1151- fixed = True ,
1152- ),
1153- surface = gs .surfaces .Rough (
1154- diffuse_texture = gs .textures .ImageTexture (
1155- image_path = "textures/checker.png" ,
1156- )
1157- ),
1158- )
11591072 robot = scene .add_entity (
11601073 gs .morphs .MJCF (file = "xml/franka_emika_panda/panda.xml" ),
11611074 )
@@ -1208,7 +1121,7 @@ def test_batched_mounted_camera_rendering(show_viewer, tol):
12081121 steps_rgb_queue .put (robots_rgb_arrays )
12091122
12101123 if steps_rgb_queue .full (): # we have a set of 2 consecutive frames
1211- diff_tol = 0.05 # expect atlest 5 % difference between each frame
1124+ diff_tol = 0.02 # expect atlest 2 % difference between each frame
12121125 frames_t_minus_1 = steps_rgb_queue .get ()
12131126 frames_t = steps_rgb_queue .get ()
12141127 for i in range (n_envs ):
0 commit comments