File tree Expand file tree Collapse file tree
source/isaaclab_tasks/isaaclab_tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33#
44# SPDX-License-Identifier: BSD-3-Clause
55
6- from isaaclab_newton .physics import KaminoPADMMSolverCfg , MJWarpSolverCfg , NewtonCfg
7-
8- from isaaclab .sim import SimulationCfg
96from isaaclab .utils .configclass import configclass
107
11- from isaaclab_tasks .core .velocity .velocity_env_cfg import RoughPhysicsCfg
12-
138from .rough_env_cfg import UnitreeA1RoughEnvCfg
149
1510
16- @configclass
17- class PhysicsCfg (RoughPhysicsCfg ):
18- newton_mjwarp = NewtonCfg (
19- solver_cfg = MJWarpSolverCfg (
20- njmax = 60 ,
21- nconmax = 30 ,
22- cone = "pyramidal" ,
23- impratio = 1 ,
24- integrator = "implicitfast" ,
25- ),
26- num_substeps = 1 ,
27- debug_mode = False ,
28- )
29- newton_kamino = NewtonCfg (solver_cfg = KaminoPADMMSolverCfg (max_contacts_per_world = 64 ))
30- default = RoughPhysicsCfg ().isaacsim_physx
31-
32-
3311@configclass
3412class UnitreeA1FlatEnvCfg (UnitreeA1RoughEnvCfg ):
35- sim : SimulationCfg = SimulationCfg (physics = PhysicsCfg ())
36-
3713 def __post_init__ (self ):
3814 super ().__post_init__ ()
3915
16+ # physics
17+ newton_mjwarp = self .sim .physics .newton_mjwarp
18+ newton_mjwarp .solver_cfg .njmax = 60
19+ newton_mjwarp .solver_cfg .nconmax = 30
20+ newton_mjwarp .num_substeps = 1
21+ self .sim .physics .default = self .sim .physics .isaacsim_physx
4022 # scene
4123 self .scene .terrain .terrain_type = "plane"
4224 self .scene .terrain .terrain_generator = None
Original file line number Diff line number Diff line change 33#
44# SPDX-License-Identifier: BSD-3-Clause
55
6- from isaaclab_newton .physics import KaminoPADMMSolverCfg , MJWarpSolverCfg , NewtonCfg
7-
8- from isaaclab .sim import SimulationCfg
96from isaaclab .utils .configclass import configclass
107
11- from isaaclab_tasks .core .velocity .velocity_env_cfg import RoughPhysicsCfg
12-
138from .rough_env_cfg import AnymalBRoughEnvCfg
149
1510
16- @configclass
17- class PhysicsCfg (RoughPhysicsCfg ):
18- newton_mjwarp = NewtonCfg (
19- solver_cfg = MJWarpSolverCfg (
20- njmax = 75 ,
21- nconmax = 15 ,
22- cone = "elliptic" ,
23- impratio = 100 ,
24- integrator = "implicitfast" ,
25- ),
26- num_substeps = 1 ,
27- debug_mode = False ,
28- )
29- newton_kamino = NewtonCfg (solver_cfg = KaminoPADMMSolverCfg (max_contacts_per_world = 64 ))
30- default = RoughPhysicsCfg ().isaacsim_physx
31-
32-
3311@configclass
3412class AnymalBFlatEnvCfg (AnymalBRoughEnvCfg ):
35- sim : SimulationCfg = SimulationCfg (physics = PhysicsCfg ())
36-
3713 def __post_init__ (self ):
3814 super ().__post_init__ ()
3915
16+ # physics
17+ newton_mjwarp = self .sim .physics .newton_mjwarp
18+ newton_mjwarp .solver_cfg .njmax = 75
19+ newton_mjwarp .solver_cfg .nconmax = 15
20+ newton_mjwarp .solver_cfg .cone = "elliptic"
21+ newton_mjwarp .solver_cfg .impratio = 100.0
22+ newton_mjwarp .num_substeps = 1
23+ self .sim .physics .default = self .sim .physics .isaacsim_physx
4024 # scene
4125 self .scene .terrain .terrain_type = "plane"
4226 self .scene .terrain .terrain_generator = None
Original file line number Diff line number Diff line change 33#
44# SPDX-License-Identifier: BSD-3-Clause
55
6- from isaaclab_newton .physics import KaminoPADMMSolverCfg , MJWarpSolverCfg , NewtonCfg
7-
8- from isaaclab .sim import SimulationCfg
96from isaaclab .utils .configclass import configclass
107
11- from isaaclab_tasks .core .velocity .velocity_env_cfg import RoughPhysicsCfg
12-
138from .rough_env_cfg import AnymalCRoughEnvCfg
149
1510
16- @configclass
17- class PhysicsCfg (RoughPhysicsCfg ):
18- newton_mjwarp = NewtonCfg (
19- solver_cfg = MJWarpSolverCfg (
20- njmax = 120 ,
21- nconmax = 15 ,
22- cone = "elliptic" ,
23- impratio = 100 ,
24- integrator = "implicitfast" ,
25- ),
26- num_substeps = 1 ,
27- debug_mode = False ,
28- )
29- newton_kamino = NewtonCfg (solver_cfg = KaminoPADMMSolverCfg (max_contacts_per_world = 64 ))
30- default = RoughPhysicsCfg ().isaacsim_physx
31-
32-
3311@configclass
3412class AnymalCFlatEnvCfg (AnymalCRoughEnvCfg ):
35- sim : SimulationCfg = SimulationCfg (physics = PhysicsCfg ())
36-
3713 def __post_init__ (self ):
3814 super ().__post_init__ ()
3915
16+ # physics
17+ newton_mjwarp = self .sim .physics .newton_mjwarp
18+ newton_mjwarp .solver_cfg .njmax = 120
19+ newton_mjwarp .solver_cfg .nconmax = 15
20+ newton_mjwarp .solver_cfg .cone = "elliptic"
21+ newton_mjwarp .solver_cfg .impratio = 100.0
22+ newton_mjwarp .num_substeps = 1
23+ self .sim .physics .default = self .sim .physics .isaacsim_physx
4024 # scene
4125 self .scene .terrain .terrain_type = "plane"
4226 self .scene .terrain .terrain_generator = None
Original file line number Diff line number Diff line change 33#
44# SPDX-License-Identifier: BSD-3-Clause
55
6- from isaaclab_newton .physics import KaminoPADMMSolverCfg , MJWarpSolverCfg , NewtonCfg
7-
8- from isaaclab .sim import SimulationCfg
96from isaaclab .utils .configclass import configclass
107
11- from isaaclab_tasks .core .velocity .velocity_env_cfg import RoughPhysicsCfg
12-
138from .rough_env_cfg import UnitreeGo1RoughEnvCfg
149
1510
16- @configclass
17- class PhysicsCfg (RoughPhysicsCfg ):
18- newton_mjwarp = NewtonCfg (
19- solver_cfg = MJWarpSolverCfg (
20- njmax = 60 ,
21- nconmax = 25 ,
22- cone = "pyramidal" ,
23- impratio = 1 ,
24- integrator = "implicitfast" ,
25- ),
26- num_substeps = 1 ,
27- debug_mode = False ,
28- )
29- newton_kamino = NewtonCfg (solver_cfg = KaminoPADMMSolverCfg (max_contacts_per_world = 64 ))
30- default = RoughPhysicsCfg ().isaacsim_physx
31-
32-
3311@configclass
3412class UnitreeGo1FlatEnvCfg (UnitreeGo1RoughEnvCfg ):
35- sim : SimulationCfg = SimulationCfg (physics = PhysicsCfg ())
36-
3713 def __post_init__ (self ):
3814 super ().__post_init__ ()
3915
16+ # physics
17+ newton_mjwarp = self .sim .physics .newton_mjwarp
18+ newton_mjwarp .solver_cfg .njmax = 60
19+ newton_mjwarp .solver_cfg .nconmax = 25
20+ newton_mjwarp .num_substeps = 1
21+ self .sim .physics .default = self .sim .physics .isaacsim_physx
4022 # scene
4123 self .scene .terrain .terrain_type = "plane"
4224 self .scene .terrain .terrain_generator = None
Original file line number Diff line number Diff line change 33#
44# SPDX-License-Identifier: BSD-3-Clause
55
6- from isaaclab_newton .physics import KaminoPADMMSolverCfg , MJWarpSolverCfg , NewtonCfg
7-
8- from isaaclab .sim import SimulationCfg
96from isaaclab .utils .configclass import configclass
107
11- from isaaclab_tasks .core .velocity .velocity_env_cfg import RoughPhysicsCfg
12-
138from .rough_env_cfg import AnymalDRoughEnvCfg
149
1510
16- @configclass
17- class PhysicsCfg (RoughPhysicsCfg ):
18- newton_mjwarp = NewtonCfg (
19- solver_cfg = MJWarpSolverCfg (
20- njmax = 60 ,
21- nconmax = 25 ,
22- cone = "elliptic" ,
23- impratio = 100.0 ,
24- ),
25- num_substeps = 1 ,
26- debug_mode = False ,
27- )
28- newton_kamino = NewtonCfg (solver_cfg = KaminoPADMMSolverCfg (max_contacts_per_world = 64 ))
29- default = newton_mjwarp
30-
31-
3211@configclass
3312class AnymalDFlatEnvCfg (AnymalDRoughEnvCfg ):
34- sim : SimulationCfg = SimulationCfg (physics = PhysicsCfg ())
35-
3613 def __post_init__ (self ):
3714 super ().__post_init__ ()
3815
16+ # physics
17+ newton_mjwarp = self .sim .physics .newton_mjwarp
18+ newton_mjwarp .solver_cfg .njmax = 60
19+ newton_mjwarp .solver_cfg .nconmax = 25
20+ newton_mjwarp .solver_cfg .cone = "elliptic"
21+ newton_mjwarp .solver_cfg .impratio = 100.0
22+ newton_mjwarp .num_substeps = 1
23+ self .sim .physics .default = newton_mjwarp
3924 # scene
4025 self .scene .terrain .terrain_type = "plane"
4126 self .scene .terrain .terrain_generator = None
Original file line number Diff line number Diff line change 33#
44# SPDX-License-Identifier: BSD-3-Clause
55
6- from isaaclab_newton .physics import KaminoPADMMSolverCfg , MJWarpSolverCfg , NewtonCfg
7-
8- from isaaclab .sim import SimulationCfg
96from isaaclab .utils .configclass import configclass
107
11- from isaaclab_tasks .core .velocity .velocity_env_cfg import RoughPhysicsCfg
12-
138from .rough_env_cfg import CassieRoughEnvCfg
149
1510
16- @configclass
17- class PhysicsCfg (RoughPhysicsCfg ):
18- newton_mjwarp = NewtonCfg (
19- solver_cfg = MJWarpSolverCfg (
20- njmax = 52 ,
21- nconmax = 15 ,
22- cone = "pyramidal" ,
23- impratio = 1.0 ,
24- integrator = "implicitfast" ,
25- ),
26- num_substeps = 1 ,
27- debug_mode = False ,
28- )
29- newton_kamino = NewtonCfg (solver_cfg = KaminoPADMMSolverCfg (max_contacts_per_world = 64 ))
30- default = newton_mjwarp
31-
32-
3311@configclass
3412class CassieFlatEnvCfg (CassieRoughEnvCfg ):
35- sim : SimulationCfg = SimulationCfg (physics = PhysicsCfg ())
36-
3713 def __post_init__ (self ):
3814 super ().__post_init__ ()
3915
16+ # physics
17+ newton_mjwarp = self .sim .physics .newton_mjwarp
18+ newton_mjwarp .solver_cfg .njmax = 52
19+ newton_mjwarp .solver_cfg .nconmax = 15
20+ newton_mjwarp .num_substeps = 1
21+ self .sim .physics .default = newton_mjwarp
4022 # scene
4123 self .scene .terrain .terrain_type = "plane"
4224 self .scene .terrain .terrain_generator = None
Original file line number Diff line number Diff line change 33#
44# SPDX-License-Identifier: BSD-3-Clause
55
6- from isaaclab_newton .physics import KaminoPADMMSolverCfg , MJWarpSolverCfg , NewtonCfg
7-
86from isaaclab .managers import SceneEntityCfg
9- from isaaclab .sim import SimulationCfg
107from isaaclab .utils .configclass import configclass
118
12- from isaaclab_tasks .core .velocity .velocity_env_cfg import RoughPhysicsCfg
13-
149from .rough_env_cfg import G1RoughEnvCfg
1510
1611
17- @configclass
18- class PhysicsCfg (RoughPhysicsCfg ):
19- newton_mjwarp = NewtonCfg (
20- solver_cfg = MJWarpSolverCfg (
21- njmax = 95 ,
22- nconmax = 10 ,
23- cone = "pyramidal" ,
24- impratio = 1.0 ,
25- integrator = "implicitfast" ,
26- ),
27- num_substeps = 1 ,
28- debug_mode = False ,
29- )
30- newton_kamino = NewtonCfg (solver_cfg = KaminoPADMMSolverCfg (max_contacts_per_world = 64 ))
31- default = newton_mjwarp
32-
33-
3412@configclass
3513class G1FlatEnvCfg (G1RoughEnvCfg ):
36- sim : SimulationCfg = SimulationCfg (physics = PhysicsCfg ())
37-
3814 def __post_init__ (self ):
3915 super ().__post_init__ ()
4016
17+ # physics
18+ newton_mjwarp = self .sim .physics .newton_mjwarp
19+ newton_mjwarp .solver_cfg .njmax = 95
20+ newton_mjwarp .solver_cfg .nconmax = 10
21+ newton_mjwarp .num_substeps = 1
22+ self .sim .physics .default = newton_mjwarp
4123 # scene
4224 self .scene .terrain .terrain_type = "plane"
4325 self .scene .terrain .terrain_generator = None
Original file line number Diff line number Diff line change 33#
44# SPDX-License-Identifier: BSD-3-Clause
55
6- from isaaclab_newton .physics import KaminoPADMMSolverCfg , MJWarpSolverCfg , NewtonCfg
7-
8- from isaaclab .sim import SimulationCfg
96from isaaclab .utils .configclass import configclass
107
11- from isaaclab_tasks .core .velocity .velocity_env_cfg import RoughPhysicsCfg
12-
138from .rough_env_cfg import UnitreeGo2RoughEnvCfg
149
1510
16- @configclass
17- class PhysicsCfg (RoughPhysicsCfg ):
18- newton_mjwarp = NewtonCfg (
19- solver_cfg = MJWarpSolverCfg (
20- njmax = 65 ,
21- nconmax = 35 ,
22- cone = "pyramidal" ,
23- impratio = 1.0 ,
24- integrator = "implicitfast" ,
25- ),
26- num_substeps = 1 ,
27- debug_mode = False ,
28- )
29- newton_kamino = NewtonCfg (solver_cfg = KaminoPADMMSolverCfg (max_contacts_per_world = 64 ))
30- default = newton_mjwarp
31-
32-
3311@configclass
3412class UnitreeGo2FlatEnvCfg (UnitreeGo2RoughEnvCfg ):
35- sim : SimulationCfg = SimulationCfg (physics = PhysicsCfg ())
36-
3713 def __post_init__ (self ):
3814 super ().__post_init__ ()
3915
16+ # physics
17+ newton_mjwarp = self .sim .physics .newton_mjwarp
18+ newton_mjwarp .solver_cfg .njmax = 65
19+ newton_mjwarp .solver_cfg .nconmax = 35
20+ newton_mjwarp .num_substeps = 1
21+ self .sim .physics .default = newton_mjwarp
4022 # scene
4123 self .scene .terrain .terrain_type = "plane"
4224 self .scene .terrain .terrain_generator = None
You can’t perform that action at this time.
0 commit comments