File tree Expand file tree Collapse file tree 4 files changed +26
-7
lines changed
Expand file tree Collapse file tree 4 files changed +26
-7
lines changed Original file line number Diff line number Diff line change 9898 soft_joint_pos_limit_factor = 1.0 ,
9999)
100100
101- """Configuration of SO-ARM robot arm more adapted for sim2real."""
101+ """Configuration of SO-ARM robot more adapted for sim2real."""
102+
103+ SO_ARM100_ROSCON_HIGH_PD_CFG = SO_ARM100_ROSCON_CFG .copy ()
104+ SO_ARM100_ROSCON_HIGH_PD_CFG .spawn .rigid_props .disable_gravity = True
105+ SO_ARM100_ROSCON_HIGH_PD_CFG .actuators ["arm" ].stiffness = {
106+ "shoulder_pan_joint" : 500.0 , # Highest - moves all mass
107+ "shoulder_lift_joint" : 500.0 , # Slightly less than rotation
108+ "elbow_joint" : 400.0 , # Reduced based on less mass
109+ "wrist_pitch_joint" : 300.0 , # Reduced for less mass
110+ "wrist_roll_joint" : 300.0 , # Low mass to move
111+ }
112+ SO_ARM100_ROSCON_HIGH_PD_CFG .actuators ["arm" ].damping = {
113+ "shoulder_pan_joint" : 150.0 ,
114+ "shoulder_lift_joint" : 150.0 ,
115+ "elbow_joint" : 120.0 ,
116+ "wrist_pitch_joint" : 90.0 ,
117+ "wrist_roll_joint" : 90.0 ,
118+ }
119+
120+ """Configuration of SO-ARM robot with stiffer PD control."""
Original file line number Diff line number Diff line change 1515##
1616# Pre-defined configs
1717##
18- from SO_100 .robots import SO_ARM100_CFG , SO_ARM100_ROSCON_CFG # noqa: F401
18+ from SO_100 .robots import SO_ARM100_ROSCON_HIGH_PD_CFG # noqa: F401
1919
2020from .joint_pos_env_cfg import SoArm100ReachRosConEnvCfg
2121
@@ -32,7 +32,7 @@ def __post_init__(self):
3232
3333 # Set Franka as robot
3434 # We switch here to a stiffer PD controller for IK tracking to be better.
35- self .scene .robot = SO_ARM100_ROSCON_CFG .replace (prim_path = "{ENV_REGEX_NS}/Robot" )
35+ self .scene .robot = SO_ARM100_ROSCON_HIGH_PD_CFG .replace (prim_path = "{ENV_REGEX_NS}/Robot" )
3636
3737 # Set actions for the specific robot type (franka)
3838 self .actions .arm_action = DifferentialInverseKinematicsActionCfg (
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def __post_init__(self):
4242 self .rewards .end_effector_position_tracking_fine_grained .params ["asset_cfg" ].body_names = ["Fixed_Gripper" ]
4343 self .rewards .end_effector_orientation_tracking .params ["asset_cfg" ].body_names = ["Fixed_Gripper" ]
4444
45- self . rewards . end_effector_orientation_tracking . weight = 0.0
45+ # TODO: reorient command target
4646
4747 # override actions
4848 self .actions .arm_action = mdp .JointPositionActionCfg (
@@ -103,7 +103,7 @@ def __post_init__(self):
103103
104104
105105@configclass
106- class SoArm100ReachRosConEnvCfg_PLAY (SoArm100ReachEnvCfg ):
106+ class SoArm100ReachRosConEnvCfg_PLAY (SoArm100ReachRosConEnvCfg ):
107107 def __post_init__ (self ):
108108 # post init of parent
109109 super ().__post_init__ ()
Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ class CommandsCfg:
7979 debug_vis = True ,
8080 ranges = mdp .UniformPoseCommandCfg .Ranges (
8181 pos_x = (- 0.1 , 0.1 ),
82- pos_y = (- 0.3 , - 0.1 ),
83- pos_z = (0.2 , 0.35 ),
82+ pos_y = (- 0.25 , - 0.1 ),
83+ pos_z = (0.1 , 0.3 ),
8484 roll = (0.0 , 0.0 ),
8585 pitch = (0.0 , 0.0 ),
8686 yaw = (0.0 , 0.0 ),
You can’t perform that action at this time.
0 commit comments