upload am
Browse files- .gitignore +2 -0
- __init__.py +2 -1
- aerial_manipulator/__init__.py +12 -0
- aerial_manipulator/aerial_manipulator.usd +3 -0
- aerial_manipulator/aerial_manipulator_cfg.py +130 -0
- aerial_manipulator/config.yaml +23 -0
- aerial_manipulator/configuration/aerial_manipulator_base.usd +3 -0
- aerial_manipulator/configuration/aerial_manipulator_physics.usd +3 -0
- aerial_manipulator/configuration/aerial_manipulator_sensor.usd +3 -0
- five_inch_drone.py → five_inch_drone/five_inch_drone_cfg.py +1 -1
.gitignore
CHANGED
|
@@ -21,3 +21,5 @@ __pycache__/
|
|
| 21 |
*~
|
| 22 |
.idea/
|
| 23 |
.vscode/
|
|
|
|
|
|
|
|
|
| 21 |
*~
|
| 22 |
.idea/
|
| 23 |
.vscode/
|
| 24 |
+
|
| 25 |
+
aerial_manipulator/kinematics/
|
__init__.py
CHANGED
|
@@ -6,4 +6,5 @@
|
|
| 6 |
# This project uses the IsaacLab framework (https://github.com/isaac-sim/IsaacLab),
|
| 7 |
# which is licensed under the BSD-3-Clause License.
|
| 8 |
|
| 9 |
-
from .five_inch_drone import FIVE_INCH_DRONE_CFG
|
|
|
|
|
|
| 6 |
# This project uses the IsaacLab framework (https://github.com/isaac-sim/IsaacLab),
|
| 7 |
# which is licensed under the BSD-3-Clause License.
|
| 8 |
|
| 9 |
+
from .five_inch_drone.five_inch_drone_cfg import FIVE_INCH_DRONE_CFG
|
| 10 |
+
from .aerial_manipulator.aerial_manipulator_cfg import AERIAL_MANIPULATOR_CFG
|
aerial_manipulator/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Top-level package for the aerial manipulator asset."""
|
| 2 |
+
|
| 3 |
+
from .aerial_manipulator_cfg import AERIAL_MANIPULATOR_CFG, ACTIVE_JOINTS, PASSIVE_JOINTS
|
| 4 |
+
from .kinematics import DeltaUrdfKinematics, DeltaWorkspace
|
| 5 |
+
|
| 6 |
+
__all__ = [
|
| 7 |
+
"AERIAL_MANIPULATOR_CFG",
|
| 8 |
+
"ACTIVE_JOINTS",
|
| 9 |
+
"PASSIVE_JOINTS",
|
| 10 |
+
"DeltaUrdfKinematics",
|
| 11 |
+
"DeltaWorkspace",
|
| 12 |
+
]
|
aerial_manipulator/aerial_manipulator.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c20bb305f5cb163ef6628b708fc42fcdc210b0db5e7ba0ad7b11e2aeeffa0622
|
| 3 |
+
size 3835
|
aerial_manipulator/aerial_manipulator_cfg.py
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) 2022-2025, The Isaac Lab Project Developers.
|
| 2 |
+
# All rights reserved.
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: BSD-3-Clause
|
| 5 |
+
|
| 6 |
+
"""
|
| 7 |
+
Configuration for the aerial manipulator.
|
| 8 |
+
|
| 9 |
+
Design intent (very explicit):
|
| 10 |
+
- This mechanism is controlled ONLY by 3 active joints: joint1, joint2, joint3.
|
| 11 |
+
- All other joints are treated as passive / follower joints in the simulation:
|
| 12 |
+
- We DO NOT attach any actuator/drive to them in Isaac Lab (i.e., they will not receive PD targets).
|
| 13 |
+
- Many of them may be "Exclude from Articulation" on the USD side for closed-loop handling.
|
| 14 |
+
- Initial state only sets the 3 active joints to avoid the impression we are commanding followers.
|
| 15 |
+
|
| 16 |
+
Why are the 3 active joints named joint1/joint2/joint3?
|
| 17 |
+
- This file assumes your USD joint names for the 3 actuated DOFs are literally: "joint1", "joint2", "joint3".
|
| 18 |
+
(If the USD uses different names, change ACTIVE_JOINTS below to match exactly.)
|
| 19 |
+
"""
|
| 20 |
+
|
| 21 |
+
from __future__ import annotations
|
| 22 |
+
|
| 23 |
+
import os
|
| 24 |
+
|
| 25 |
+
import isaaclab.sim as sim_utils
|
| 26 |
+
from isaaclab.actuators import ImplicitActuatorCfg
|
| 27 |
+
from isaaclab.assets import ArticulationCfg
|
| 28 |
+
|
| 29 |
+
from .kinematics import DeltaUrdfKinematics
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
# -----------------------------------------------------------------------------
|
| 33 |
+
# Joint name lists (for clarity; only ACTIVE_JOINTS are actuated by this cfg)
|
| 34 |
+
# -----------------------------------------------------------------------------
|
| 35 |
+
|
| 36 |
+
# ✅ Active (actuated) joints: ONLY these 3 receive position-drive (PD) via ImplicitActuatorCfg.
|
| 37 |
+
ACTIVE_JOINTS = ("joint1", "joint2", "joint3")
|
| 38 |
+
|
| 39 |
+
# ℹ️ Passive/follower joints (NOT actuated here).
|
| 40 |
+
# They are listed to avoid misunderstanding and to document the robot's joint inventory.
|
| 41 |
+
# We intentionally do NOT include them in any actuator joint_names_expr.
|
| 42 |
+
PASSIVE_JOINTS = (
|
| 43 |
+
# Two-DOF sub joints on each arm branch (example names from your original cfg)
|
| 44 |
+
"joint1_1_horizon",
|
| 45 |
+
"joint1_1_vertical",
|
| 46 |
+
"joint1_2_horizon",
|
| 47 |
+
"joint1_2_vertical",
|
| 48 |
+
"joint2_1_horizon",
|
| 49 |
+
"joint2_1_vertical",
|
| 50 |
+
"joint2_2_horizon",
|
| 51 |
+
"joint2_2_vertical",
|
| 52 |
+
"joint3_1_horizon",
|
| 53 |
+
"joint3_1_vertical",
|
| 54 |
+
"joint3_2_horizon",
|
| 55 |
+
"joint3_2_vertical",
|
| 56 |
+
# End-effector follower joints
|
| 57 |
+
"ee_joint_x",
|
| 58 |
+
"ee_joint_y",
|
| 59 |
+
"ee_joint_z",
|
| 60 |
+
)
|
| 61 |
+
# NOTE:
|
| 62 |
+
# - Some/most of PASSIVE_JOINTS may be excluded from articulation (maximal joints) on the USD.
|
| 63 |
+
# - Regardless, this cfg DOES NOT add any drive/actuator to them.
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
ALL_JOINTS = ACTIVE_JOINTS + PASSIVE_JOINTS
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
def _build_default_joint_state() -> dict[str, float]:
|
| 70 |
+
"""Use the kinematics helper to align all joints at the zero configuration."""
|
| 71 |
+
defaults: dict[str, float] = {name: 0.0 for name in ALL_JOINTS}
|
| 72 |
+
kin = DeltaUrdfKinematics()
|
| 73 |
+
fk = kin.forward_kinematics(0.0, 0.0, 0.0) or {}
|
| 74 |
+
for name in ALL_JOINTS:
|
| 75 |
+
if name in fk:
|
| 76 |
+
defaults[name] = float(fk[name])
|
| 77 |
+
else:
|
| 78 |
+
raise ValueError(f"Joint {name} not found in forward kinematics")
|
| 79 |
+
return defaults
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
DEFAULT_JOINT_STATE = _build_default_joint_state() # dict
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
# -----------------------------------------------------------------------------
|
| 86 |
+
# Main robot config
|
| 87 |
+
# -----------------------------------------------------------------------------
|
| 88 |
+
|
| 89 |
+
AERIAL_MANIPULATOR_CFG = ArticulationCfg(
|
| 90 |
+
prim_path="{ENV_REGEX_NS}/Robot",
|
| 91 |
+
spawn=sim_utils.UsdFileCfg(
|
| 92 |
+
# Keep your original collision setting
|
| 93 |
+
collision_props=sim_utils.CollisionPropertiesCfg(collision_enabled=True),
|
| 94 |
+
usd_path=os.path.abspath(os.path.join(os.path.dirname(__file__), "aerial_manipulator.usd")),
|
| 95 |
+
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 96 |
+
disable_gravity=False,
|
| 97 |
+
max_depenetration_velocity=10.0,
|
| 98 |
+
enable_gyroscopic_forces=True,
|
| 99 |
+
),
|
| 100 |
+
articulation_props=sim_utils.ArticulationRootPropertiesCfg(
|
| 101 |
+
enabled_self_collisions=False,
|
| 102 |
+
# Closed-loop / constraint-heavy systems typically need higher iterations for stability.
|
| 103 |
+
# Start here; tune later based on observed jitter / drift.
|
| 104 |
+
solver_position_iteration_count=16,
|
| 105 |
+
solver_velocity_iteration_count=4,
|
| 106 |
+
sleep_threshold=0.005,
|
| 107 |
+
stabilization_threshold=0.001,
|
| 108 |
+
),
|
| 109 |
+
copy_from_source=False,
|
| 110 |
+
),
|
| 111 |
+
init_state=ArticulationCfg.InitialStateCfg(
|
| 112 |
+
pos=(0.0, 0.0, 0.5),
|
| 113 |
+
joint_pos=DEFAULT_JOINT_STATE,
|
| 114 |
+
joint_vel={name: 0.0 for name in ALL_JOINTS},
|
| 115 |
+
),
|
| 116 |
+
actuators={
|
| 117 |
+
"active_pos_pd": ImplicitActuatorCfg(
|
| 118 |
+
joint_names_expr=[f"^{name}$" for name in ACTIVE_JOINTS],
|
| 119 |
+
stiffness=1000.0,
|
| 120 |
+
damping=1000.0,
|
| 121 |
+
),
|
| 122 |
+
"passive_pos_pd": ImplicitActuatorCfg(
|
| 123 |
+
joint_names_expr=[f"^{name}$" for name in PASSIVE_JOINTS],
|
| 124 |
+
stiffness=10000.0,
|
| 125 |
+
damping=10000.0,
|
| 126 |
+
),
|
| 127 |
+
},
|
| 128 |
+
)
|
| 129 |
+
|
| 130 |
+
"""Configuration for the aerial manipulator with 3 active joints position-driven; all other joints passive (no drives)."""
|
aerial_manipulator/config.yaml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
asset_path: /home/dwl/aerial_manipulator_urdf/urdf/urdf/aerial_manipulator.urdf
|
| 2 |
+
usd_dir: /home/dwl/aerial_manipulator_urdf/urdf/urdf/usd
|
| 3 |
+
usd_file_name: aerial_manipulator.usd
|
| 4 |
+
force_usd_conversion: true
|
| 5 |
+
make_instanceable: true
|
| 6 |
+
fix_base: false
|
| 7 |
+
root_link_name: null
|
| 8 |
+
link_density: 0.0
|
| 9 |
+
merge_fixed_joints: false
|
| 10 |
+
convert_mimic_joints_to_normal_joints: false
|
| 11 |
+
joint_drive:
|
| 12 |
+
drive_type: force
|
| 13 |
+
target_type: position
|
| 14 |
+
gains:
|
| 15 |
+
stiffness: 100.0
|
| 16 |
+
damping: 1.0
|
| 17 |
+
collider_type: convex_hull
|
| 18 |
+
self_collision: false
|
| 19 |
+
replace_cylinders_with_capsules: false
|
| 20 |
+
collision_from_visuals: false
|
| 21 |
+
##
|
| 22 |
+
# Generated by UrdfConverter on 2026-01-27 at 19:29:05.
|
| 23 |
+
##
|
aerial_manipulator/configuration/aerial_manipulator_base.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa87cc95560c87bb52397ea6b97a48b41d58bd7e00e59e1771c3caed2613c8e1
|
| 3 |
+
size 30848478
|
aerial_manipulator/configuration/aerial_manipulator_physics.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7d5dcaf86833c6b82efb8be3d85dbd6a5f334df22ed0563d6ce782e70e85cc48
|
| 3 |
+
size 6204
|
aerial_manipulator/configuration/aerial_manipulator_sensor.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a75bc1b7ec9d209e37dcd57451760b1ba9b157593649f01335d00b5e06728d87
|
| 3 |
+
size 658
|
five_inch_drone.py → five_inch_drone/five_inch_drone_cfg.py
RENAMED
|
@@ -21,7 +21,7 @@ FIVE_INCH_DRONE_CFG = ArticulationCfg(
|
|
| 21 |
prim_path="{ENV_REGEX_NS}/Robot",
|
| 22 |
spawn=sim_utils.UsdFileCfg(
|
| 23 |
collision_props=sim_utils.CollisionPropertiesCfg(collision_enabled=False),
|
| 24 |
-
usd_path=os.path.abspath(os.path.join(os.path.dirname(__file__), "five_inch_drone
|
| 25 |
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 26 |
disable_gravity=False,
|
| 27 |
max_depenetration_velocity=10.0,
|
|
|
|
| 21 |
prim_path="{ENV_REGEX_NS}/Robot",
|
| 22 |
spawn=sim_utils.UsdFileCfg(
|
| 23 |
collision_props=sim_utils.CollisionPropertiesCfg(collision_enabled=False),
|
| 24 |
+
usd_path=os.path.abspath(os.path.join(os.path.dirname(__file__), "five_inch_drone.usd")),
|
| 25 |
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
| 26 |
disable_gravity=False,
|
| 27 |
max_depenetration_velocity=10.0,
|