Skip to content

Commit

Permalink
removing torques values the model doesn't fly away
Browse files Browse the repository at this point in the history
  • Loading branch information
is2ac2 committed Jul 5, 2024
1 parent 4ab2f4d commit 815a901
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions sim/humanoid_gym/envs/stompy_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class terrain(LeggedRobotCfg.terrain):
restitution = 0.0

class noise:
add_noise = True
add_noise = False
noise_level = 0.6 # scales other values

class noise_scales:
Expand All @@ -86,7 +86,7 @@ class noise_scales:
height_measurements = 0.1

class init_state(LeggedRobotCfg.init_state):
pos = [0.0, 0.0, 1.05]
pos = [0.0, 0.0, 1.15] # THIS

default_joint_angles = {k: 0.0 for k in Stompy.all_joints()}

Expand All @@ -95,7 +95,7 @@ class init_state(LeggedRobotCfg.init_state):
default_joint_angles[joint] = default_positions[joint]

class control(LeggedRobotCfg.control):
# PD Drive parameters:
# PD Drive parameters: THIS
stiffness = {
"x10": 200,
"x8": 200,
Expand Down Expand Up @@ -129,11 +129,11 @@ class sim(LeggedRobotCfg.sim):

class physx(LeggedRobotCfg.sim.physx):
num_threads = 12
solver_type = 1 # 0: pgs, 1: tgs
num_position_iterations = 4
num_velocity_iterations = 0
contact_offset = 0.01 # [m]
rest_offset = -0.02 # [m]
solver_type = 1 # 0: pgs, 1: tgs THIS
num_position_iterations = 4 # THIS
num_velocity_iterations = 1 # THIS
contact_offset = 0.01 # [m] THIS
rest_offset = -0.02 # [m] THIS
bounce_threshold_velocity = 0.1 # [m/s]
max_depenetration_velocity = 1.0
max_gpu_contact_pairs = 2**23 # 2**24 -> needed for 8000 envs and more
Expand All @@ -142,12 +142,12 @@ class physx(LeggedRobotCfg.sim.physx):
contact_collection = 2

class domain_rand:
randomize_friction = True
randomize_friction = False
friction_range = [0.1, 2.0]

randomize_base_mass = True
randomize_base_mass = False
added_mass_range = [-1.0, 1.0]
push_robots = True
push_robots = False
push_interval_s = 4
max_push_vel_xy = 0.2
max_push_ang_vel = 0.4
Expand Down

0 comments on commit 815a901

Please sign in to comment.