@@ -166,6 +166,9 @@ class Primitive(Morph):
166166 Defaults to False. **This is only used for RigidEntity.**
167167 fixed : bool, optional
168168 Whether the baselink of the entity should be fixed. Defaults to False. **This is only used for RigidEntity.**
169+ batch_fixed_verts : bool, optional
170+ Whether to batch fixed vertices. This will allow setting env-specific poses to fixed geometries, at the cost of
171+ significantly increasing memory usage. Default to true. **This is only used for RigidEntity.**
169172 contype : int, optional
170173 The 32-bit integer bitmasks used for contact filtering of contact pairs. When the contype of one geom and the
171174 conaffinity of the other geom share a common bit set to 1, two geoms can collide. Defaults to 0xFFFF.
@@ -176,6 +179,7 @@ class Primitive(Morph):
176179
177180 # Rigid specific
178181 fixed : bool = False
182+ batch_fixed_verts : bool = True
179183 contype : int = 0xFFFF
180184 conaffinity : int = 0xFFFF
181185
@@ -215,6 +219,9 @@ class Box(Primitive, TetGenMixin):
215219 **This is only used for RigidEntity.**
216220 fixed : bool, optional
217221 Whether the baselink of the entity should be fixed. Defaults to False. **This is only used for RigidEntity.**
222+ batch_fixed_verts : bool, optional
223+ Whether to batch fixed vertices. This will allow setting env-specific poses to fixed geometries, at the cost of
224+ significantly increasing memory usage. Default to true. **This is only used for RigidEntity.**
218225 contype : int, optional
219226 The 32-bit integer bitmasks used for contact filtering of contact pairs. When the contype of one geom and the
220227 conaffinity of the other geom share a common bit set to 1, two geoms can collide. Defaults to 0xFFFF.
@@ -297,6 +304,9 @@ class Cylinder(Primitive, TetGenMixin):
297304 **This is only used for RigidEntity.**
298305 fixed : bool, optional
299306 Whether the baselink of the entity should be fixed. Defaults to False. **This is only used for RigidEntity.**
307+ batch_fixed_verts : bool, optional
308+ Whether to batch fixed vertices. This will allow setting env-specific poses to fixed geometries, at the cost of
309+ significantly increasing memory usage. Default to true. **This is only used for RigidEntity.**
300310 contype : int, optional
301311 The 32-bit integer bitmasks used for contact filtering of contact pairs. When the contype of one geom and the
302312 conaffinity of the other geom share a common bit set to 1, two geoms can collide. Defaults to 0xFFFF.
@@ -359,6 +369,9 @@ class Sphere(Primitive, TetGenMixin):
359369 **This is only used for RigidEntity.**
360370 fixed : bool, optional
361371 Whether the baselink of the entity should be fixed. Defaults to False. **This is only used for RigidEntity.**
372+ batch_fixed_verts : bool, optional
373+ Whether to batch fixed vertices. This will allow setting env-specific poses to fixed geometries, at the cost of
374+ significantly increasing memory usage. Default to true. **This is only used for RigidEntity.**
362375 contype : int, optional
363376 The 32-bit integer bitmasks used for contact filtering of contact pairs. When the contype of one geom and the
364377 conaffinity of the other geom share a common bit set to 1, two geoms can collide. Defaults to 0xFFFF.
@@ -422,6 +435,9 @@ class Plane(Primitive):
422435 `visualization` and `collision` cannot both be False. **This is only used for RigidEntity.**
423436 fixed : bool, optional
424437 Whether the baselink of the entity should be fixed. Defaults to False. **This is only used for RigidEntity.**
438+ batch_fixed_verts : bool, optional
439+ Whether to batch fixed vertices. This will allow setting env-specific poses to fixed geometries, at the cost of
440+ significantly increasing memory usage. Default to false. **This is only used for RigidEntity.**
425441 contype : int, optional
426442 The 32-bit integer bitmasks used for contact filtering of contact pairs. When the contype of one geom and the
427443 conaffinity of the other geom share a common bit set to 1, two geoms can collide. Defaults to 0xFFFF.
@@ -435,6 +451,7 @@ class Plane(Primitive):
435451 """
436452
437453 fixed : bool = True
454+ batch_fixed_verts : bool = False
438455 normal : tuple = (0 , 0 , 1 )
439456 plane_size : tuple = (1e3 , 1e3 )
440457 tile_size : tuple = (1 , 1 )
@@ -510,6 +527,9 @@ class FileMorph(Morph):
510527 collision : bool, optional
511528 Whether the entity needs to be considered for collision checking. Defaults to True.
512529 `visualization` and `collision` cannot both be False. **This is only used for RigidEntity.**
530+ batch_fixed_verts : bool, optional
531+ Whether to batch fixed vertices. This will allow setting env-specific poses to fixed geometries, at the cost of
532+ significantly increasing memory usage. Default to true. **This is only used for RigidEntity.**
513533 requires_jac_and_IK : bool, optional
514534 Whether this morph, if created as `RigidEntity`, requires jacobian and inverse kinematics. Defaults to False.
515535 **This is only used for RigidEntity.**
@@ -526,6 +546,7 @@ class FileMorph(Morph):
526546 decompose_robot_error_threshold : float = float ("inf" )
527547 coacd_options : Optional [CoacdOptions ] = None
528548 recompute_inertia : bool = False
549+ batch_fixed_verts : bool = False
529550
530551 def __init__ (self , ** data ):
531552 super ().__init__ (** data )
@@ -646,6 +667,9 @@ class Mesh(FileMorph, TetGenMixin):
646667 Whether to use zup to load glb files. Defaults to False.
647668 fixed : bool, optional
648669 Whether the baselink of the entity should be fixed. Defaults to False. **This is only used for RigidEntity.**
670+ batch_fixed_verts : bool, optional
671+ Whether to batch fixed vertices. This will allow setting env-specific poses to fixed geometries, at the cost of
672+ significantly increasing memory usage. Default to false. **This is only used for RigidEntity.**
649673 contype : int, optional
650674 The 32-bit integer bitmasks used for contact filtering of contact pairs. When the contype of one geom and the
651675 conaffinity of the other geom share a common bit set to 1, two geoms can collide. Defaults to 0xFFFF.
@@ -779,6 +803,9 @@ class MJCF(FileMorph):
779803 `visualization` and `collision` cannot both be False.
780804 requires_jac_and_IK : bool, optional
781805 Whether this morph, if created as `RigidEntity`, requires jacobian and inverse kinematics. Defaults to True.
806+ batch_fixed_verts : bool, optional
807+ Whether to batch fixed vertices. This will allow setting env-specific poses to fixed geometries, at the cost of
808+ significantly increasing memory usage. Default to true. **This is only used for RigidEntity.**
782809 default_armature : float, optional
783810 Default rotor inertia of the actuators. In practice it is applied to all joints regardless of whether they are
784811 actuated. None to disable. Default to 0.1.
@@ -882,6 +909,9 @@ class URDF(FileMorph):
882909 Whether this morph, if created as `RigidEntity`, requires jacobian and inverse kinematics. Defaults to True.
883910 fixed : bool, optional
884911 Whether the baselink of the entity should be fixed. Defaults to False.
912+ batch_fixed_verts : bool, optional
913+ Whether to batch fixed vertices. This will allow setting env-specific poses to fixed geometries, at the cost of
914+ significantly increasing memory usage. Default to true. **This is only used for RigidEntity.**
885915 prioritize_urdf_material : bool, optional
886916 Sometimes a geom in a urdf file will be assigned a color, and the geom asset file also contains its own visual
887917 material. This parameter controls whether to prioritize the URDF-defined material over the asset's own material.
@@ -1103,8 +1133,12 @@ class Terrain(Morph):
11031133 This parameter is deprecated.
11041134 subterrain_parameters : dictionary, optional
11051135 Lets users pick their own subterrain parameters.
1136+ batch_fixed_verts : bool, optional
1137+ Whether to batch fixed vertices. This will allow setting env-specific poses to fixed geometries, at the cost of
1138+ significantly increasing memory usage. Default to false. **This is only used for RigidEntity.**
11061139 """
11071140
1141+ batch_fixed_verts : bool = False
11081142 randomize : bool = False # whether to randomize the terrain
11091143 n_subterrains : Tuple [int , int ] = (3 , 3 ) # number of subterrains in x and y directions
11101144 subterrain_size : Tuple [float , float ] = (12.0 , 12.0 ) # meter
0 commit comments