-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'og-develop' into remove-global-config
- Loading branch information
Showing
13 changed files
with
125 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import os | ||
import numpy as np | ||
|
||
from omnigibson.macros import gm | ||
from omnigibson.robots.manipulation_robot import ManipulationRobot, GraspingPoint | ||
from omnigibson.robots.franka import FrankaPanda | ||
from omnigibson.utils.transform_utils import euler2quat | ||
|
||
|
||
class FrankaMounted(FrankaPanda): | ||
""" | ||
The Franka Emika Panda robot mounted on a custom chassis with a custom gripper | ||
""" | ||
|
||
@property | ||
def model_name(self): | ||
return "FrankaMounted" | ||
|
||
@property | ||
def controller_order(self): | ||
return ["arm_{}".format(self.default_arm), "gripper_{}".format(self.default_arm)] | ||
|
||
@property | ||
def _default_controllers(self): | ||
controllers = super()._default_controllers | ||
controllers["arm_{}".format(self.default_arm)] = "InverseKinematicsController" | ||
controllers["gripper_{}".format(self.default_arm)] = "MultiFingerGripperController" | ||
return controllers | ||
|
||
@property | ||
def finger_lengths(self): | ||
return {self.default_arm: 0.15} | ||
|
||
@property | ||
def usd_path(self): | ||
return os.path.join(gm.ASSET_PATH, "models/franka/franka_mounted.usd") | ||
|
||
@property | ||
def robot_arm_descriptor_yamls(self): | ||
return {self.default_arm: os.path.join(gm.ASSET_PATH, "models/franka/franka_mounted_description.yaml")} | ||
|
||
@property | ||
def urdf_path(self): | ||
return os.path.join(gm.ASSET_PATH, "models/franka/franka_mounted.urdf") | ||
|
||
@property | ||
def eef_usd_path(self): | ||
# TODO: Update! | ||
return {self.default_arm: os.path.join(gm.ASSET_PATH, "models/franka/franka_panda_eef.usd")} | ||
|
||
@property | ||
def assisted_grasp_start_points(self): | ||
return { | ||
self.default_arm: [ | ||
GraspingPoint(link_name="panda_rightfinger", position=[0.0, 0.001, 0.045]), | ||
] | ||
} | ||
|
||
@property | ||
def assisted_grasp_end_points(self): | ||
return { | ||
self.default_arm: [ | ||
GraspingPoint(link_name="panda_leftfinger", position=[0.0, 0.001, 0.045]), | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters