def __init__(self, port: int = 1071, all_flex_objects=True, use_cloth=False, use_squishy=False, use_fluid=False, step_physics=False, middle_scale_range=0.5, **kwargs): Dominoes.__init__(self, port=port, **kwargs) self._clear_flex_data() self.all_flex_objects = all_flex_objects self._set_add_physics_object() self.step_physics = step_physics self.use_cloth = use_cloth self.use_squishy = use_squishy self.use_fluid = use_fluid self.middle_scale_range = middle_scale_range print("MIDDLE SCALE RANGE", self.middle_scale_range) if self.use_fluid: self.ft_selection = random.choice(self.FLUID_TYPES.fluid_type_names)
def __init__(self, port: int = 1071, all_flex_objects=True, use_cloth=False, use_squishy=False, use_fluid=False, step_physics=False, tether_stiffness_range = [0.0, 1.0], bend_stiffness_range = [0.0, 1.0],#[0.0, 1.0], stretch_stiffness_range = [0.0, 1.0], min_distance_ratio = 0.5, max_distance_ratio = 0.5, min_anchorloc = -0.4, max_anchorloc = 0.4, anchor_height = 0.5, anchor_jitter = 0.2,#0.2, height_jitter = 0.2,#0.3, collision_label_threshold=0.1, **kwargs): Dominoes.__init__(self, port=port, **kwargs) self._clear_flex_data() self.all_flex_objects = all_flex_objects self._set_add_physics_object() self.step_physics = step_physics self.use_cloth = use_cloth self.use_squishy = use_squishy self.use_fluid = use_fluid if self.use_fluid: self.ft_selection = random.choice(self.FLUID_TYPES.fluid_type_names) self.tether_stiffness_range = tether_stiffness_range self.bend_stiffness_range = bend_stiffness_range self.stretch_stiffness_range = stretch_stiffness_range self.min_distance_ratio = min_distance_ratio self.max_distance_ratio = max_distance_ratio self.min_anchorloc = min_anchorloc self.max_anchorloc = max_anchorloc self.anchor_height = anchor_height self.anchor_jitter = anchor_jitter self.height_jitter = height_jitter # for detecting collisions self.collision_label_thresh = collision_label_threshold
def __init__(self, port: int = 1071, middle_scale_range=1.0, middle_color=None, middle_material=None, middle_friction=0.1, remove_middle=False, **kwargs): Dominoes.__init__(self, port=port, **kwargs) # always use a ramp for probe self.use_ramp = True # middle self.middle_color = middle_color self.middle_material = middle_material self.middle_friction = middle_friction self.middle_objects = [] self.remove_middle = remove_middle