robot-control-stack icon indicating copy to clipboard operation
robot-control-stack copied to clipboard

Objects disappear in Rendering GUI

Open juelg opened this issue 1 year ago • 1 comments

When too many geoms are added to the scene, they disappear in the redering GUI. They remain in the simulation as they are still visiable in the camera rendering and when using the mujoco viewer.

From models/scenes/lab_simple_pick_up_digit_hand/scene.xml:

       ...
	<worldbody>
        <site name="world_origin" rgba="1 0 0 1"/>
		<light pos="0 0 2.2" dir="0 0 -1" directional="true"/>
		<geom name="floor" size="0 0 0.05" type="plane" material="groundplane"/>
		<!-- table surface is at 0.813 (last 0.3mm is the plate), robot is at 0.8217, that means that the difference between robot origin hight and table is  0.0087-->
		<geom type="box" name="styrophome" size="0.4 0.6 0.025" rgba="0 0 0 1" pos="0.098 0.0 0.8255"/>

        <geom type="box" name="curtain_long_side" size="0.95 0.001 0.7" rgba="0 0 0 1" pos="0.0 -0.655 1.5"/>
        <!-- <geom type="box" name="curtain_short_side_1" size="0.001 0.655 0.7" rgba="0 0 0 1" pos="-0.95 -0.001 1.5"/> -->
        <geom type="box" name="curtain_short_side_2" size="0.001 0.655 0.7" rgba="0 0 0 1" pos="0.95 -0.001 1.5"/>

		<body name="yellow_box_geom" pos="0.44 0.1 0.9" quat="0 0 0 1">
			<geom type="box" size="0.03 0.03 0.03" rgba="1 1 0 1" name="yellow_box_geom" friction="1 0.3 0.1" density="50" />
			<joint type="free" name="yellow-box-joint" />
    	</body>
	</worldbody>
       ...

with the rcs example python/examples/grasp_demo_lab.py the yellow cube is not visiable in the rendering GUI. When the styrophome is commented out, the cube suddenly becomes visable.

Rendering GUI

Cube is not visible here.

Image

Camera

Cube is visible in the camera rendering.

Image

Mujoco Viewer

Cube is also visible here Image

juelg avatar Mar 24 '25 09:03 juelg

Fixed by #171

juelg avatar Apr 11 '25 08:04 juelg