Skip to content

Commit

Permalink
update null joint controller default args in robot classes
Browse files Browse the repository at this point in the history
  • Loading branch information
cremebrule committed Dec 19, 2024
1 parent 8faa0a9 commit 1c67bba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion omnigibson/robots/active_camera_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _default_camera_null_joint_controller_config(self):
"motor_type": "position",
"control_limits": self.control_limits,
"dof_idx": self.camera_control_idx,
"default_command": self.reset_joint_pos[self.camera_control_idx],
"default_goal": self.reset_joint_pos[self.camera_control_idx],
"use_impedances": False,
}

Expand Down
2 changes: 1 addition & 1 deletion omnigibson/robots/articulated_trunk_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _default_trunk_null_joint_controller_config(self):
"motor_type": "position",
"control_limits": self.control_limits,
"dof_idx": self.trunk_control_idx,
"default_command": self.reset_joint_pos[self.trunk_control_idx],
"default_goal": self.reset_joint_pos[self.trunk_control_idx],
"use_impedances": False,
}

Expand Down
2 changes: 1 addition & 1 deletion omnigibson/robots/locomotion_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _default_base_null_joint_controller_config(self):
"motor_type": "velocity",
"control_limits": self.control_limits,
"dof_idx": self.base_control_idx,
"default_command": th.zeros(len(self.base_control_idx)),
"default_goal": th.zeros(len(self.base_control_idx)),
"use_impedances": False,
}

Expand Down
4 changes: 2 additions & 2 deletions omnigibson/robots/manipulation_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ def _default_arm_null_joint_controller_configs(self):
"motor_type": "position",
"control_limits": self.control_limits,
"dof_idx": self.arm_control_idx[arm],
"default_command": self.reset_joint_pos[self.arm_control_idx[arm]],
"default_goal": self.reset_joint_pos[self.arm_control_idx[arm]],
"use_impedances": False,
}
return dic
Expand Down Expand Up @@ -1153,7 +1153,7 @@ def _default_gripper_null_controller_configs(self):
"motor_type": "velocity",
"control_limits": self.control_limits,
"dof_idx": self.gripper_control_idx[arm],
"default_command": th.zeros(len(self.gripper_control_idx[arm])),
"default_goal": th.zeros(len(self.gripper_control_idx[arm])),
"use_impedances": False,
}
return dic
Expand Down

0 comments on commit 1c67bba

Please sign in to comment.