Skip to content
Open
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
3672d6e
added basic interface for isaacsim
LeaStef Apr 22, 2025
0a7b3d6
create world with dt
LeaStef Apr 24, 2025
73d07bb
implemented method connect in interface for isaacsim
LeaStef Apr 25, 2025
f34bf78
implemented method get_feedback to provide joint angles and joint ang…
LeaStef Apr 25, 2025
e2fe8ac
implemented sned_target_angles
LeaStef Apr 28, 2025
6578760
add method to provide pose
LeaStef May 1, 2025
b953b7f
example script to make arm follow cube
LeaStef May 1, 2025
a2ca838
added methods getOreintation() and set_xyz to isaac interface
LeaStef May 6, 2025
0362a48
switched urdf import to xml import
LeaStef May 13, 2025
6e1e766
interface adapted to h1, locked robote pelvis orientation so it does …
LeaStef May 16, 2025
8149846
fixed getfeedback to work only for arm DOFs
LeaStef May 20, 2025
4e70b1a
added config file for H1
LeaStef May 21, 2025
25ab5ca
added matrix for segment lengths of arm
LeaStef May 23, 2025
59d3925
added articulation view
LeaStef May 23, 2025
fb9445b
working example with floating robot
LeaStef Jun 17, 2025
0d70a58
implementation method quaternion, Tx, R
LeaStef Jun 20, 2025
adfa03d
floating control now works for ur5 and jaco2
LeaStef Jun 24, 2025
9e412b8
adapted tu num of controlled DOF
LeaStef Jun 24, 2025
bc7a01e
generalized send u
LeaStef Jun 24, 2025
361b35c
new implementation of the method connect, following the structure of …
LeaStef Jun 25, 2025
00471ef
Create a visual-only cube (no collision)
LeaStef Jun 27, 2025
96b2151
fixed gains of arm joints, which were to stiff for force control
LeaStef Jul 7, 2025
04d54a8
fixed def M
LeaStef Jul 7, 2025
823aa6f
Example with force_osc working
LeaStef Jul 8, 2025
c2593a2
added example linear path gaussian velocity
LeaStef Jul 8, 2025
1da42b9
adaptations for no EE
LeaStef Jul 10, 2025
fc6bd28
force control working for UR5 and jaco2
LeaStef Jul 10, 2025
f7bbb1e
adapted mass matrix to extract the correct, controlled joints
LeaStef Jul 14, 2025
4ec172c
added torso joint and used standing method in setup for h1
LeaStef Jul 15, 2025
53067fb
integrated robot H1 with hands
LeaStef Jul 16, 2025
62cdbec
fixed method set_gains_force_control so it adresses the right joints
LeaStef Jul 16, 2025
ff9299a
adapted method send_forces to work with abritary list of joint indices
LeaStef Jul 16, 2025
b1cb9ea
fixed helper methods for arbitrary indices
LeaStef Jul 17, 2025
15dca0a
removed coriolis forces from function for gravity compensation
LeaStef Jul 30, 2025
4d51236
fixed indexing of jacobian due to non-fixed base
LeaStef Aug 6, 2025
0e1a270
fixed method M
LeaStef Aug 7, 2025
24db8ef
force control OSC working for H1 without gravity
LeaStef Aug 11, 2025
090944b
fixed offset for virtual EE
LeaStef Aug 14, 2025
e6df5fe
fixed calc of body_link in J() and removed obsolete h1 setup
LeaStef Aug 15, 2025
429213d
works with gravity now on all 4 robots (weird fix for h1)
LeaStef Aug 19, 2025
be900e3
example force_osc_xyz_linear_path_gaussian_velocity works with ur5 an…
LeaStef Aug 20, 2025
c503fbe
added documentation
LeaStef Aug 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
implemented method connect in interface for isaacsim
  • Loading branch information
LeaStef committed Aug 21, 2025
commit 73d07bbc31b2d11141ec12e6e311585809f67370
55 changes: 52 additions & 3 deletions abr_control/interfaces/isaacsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ def __init__(self, robot_config, dt=0.001):
self.dt = dt # time step
self.count = 0 # keep track of how many times send forces is called

self.q = np.zeros(self.robot_config.N_JOINTS) # joint angles
self.dq = np.zeros(self.robot_config.N_JOINTS) # joint_velocities

#self.misc_handles = {} # for tracking miscellaneous object handles

'''
self.q = np.zeros(self.robot_config.N_JOINTS) # joint angles
self.dq = np.zeros(self.robot_config.N_JOINTS) # joint_velocities
Expand All @@ -34,11 +39,55 @@ def __init__(self, robot_config, dt=0.001):
'''




def connect(self):
def connect(self, load_scene=True):
"""All initial setup."""
self.simulation_app = SimulationApp({"headless": False})
from isaacsim.core.api import World # type: ignore
from isaacsim.core.utils.extensions import get_extension_path_from_name # type: ignore
from isaacsim.asset.importer.urdf import _urdf # type: ignore
import omni.kit.commands # type: ignore
import omni.usd # type: ignore

self.robot_model = None
self.urdf_path = None
self.import_config = None
self.world = None
if load_scene:
# Create a world
self.world = World(physics_dt=self.dt,rendering_dt=self.dt)
self.world.scene.add_default_ground_plane()

# Acquire the URDF extension interface for parsing and importing URDF files
urdf_interface = _urdf.acquire_urdf_interface()

# Configure the settings for importing the URDF file
self.import_config = _urdf.ImportConfig()
self.import_config.convex_decomp = False # Disable convex decomposition for simplicity
self.import_config.fix_base = True # Fix the base of the robot to the ground
self.import_config.make_default_prim = True # Make the robot the default prim in the scene
self.import_config.self_collision = False # Disable self-collision for performance
self.import_config.distance_scale = 1 # Set distance scale for the robot
self.import_config.density = 0.0 # Set density to 0 (use default values)

# Retrieve the path of the URDF file from the extension
extension_path = get_extension_path_from_name("isaacsim.asset.importer.urdf")
root_path = extension_path + "/data/urdf/robots/ur10/urdf"
#root_path = extension_path + "/data/urdf/robots/ur5/urdf"
file_name = "ur10.urdf"
#file_name = "ur5.urdf"

# Parse the robot's URDF file to generate a robot model
result, self.robot_model = omni.kit.commands.execute(
"URDFParseFile",
urdf_path="{}/{}".format(root_path, file_name),
import_config=self.import_config
)

# Resetting the world needs to be called before querying anything related to an articulation specifically.
# Its recommended to always do a reset after adding your assets, for physics handles to be propagated properly
self.world.reset()


print("Started Isaacsim as stand alone app...")

def disconnect(self):
Expand Down