add modified sru-navigation-sim (added go2 code)
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2022-2025, Fan Yang and Per Frivik, ETH Zurich.
|
||||
# All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
"""Custom robot configurations and assets for navigation tasks."""
|
||||
|
||||
import os
|
||||
|
||||
# Path to the local data directory containing robots and policies
|
||||
ISAACLAB_NAV_TASKS_ASSETS_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data")
|
||||
"""Path to the navigation tasks assets data directory."""
|
||||
|
||||
from .b2w import *
|
||||
from .aow_d import *
|
||||
from .go2 import *
|
||||
|
||||
__all__ = ["ISAACLAB_NAV_TASKS_ASSETS_DIR", "B2W_CFG", "ANYMAL_D_ON_WHEELS_CFG", "GO2_CFG"]
|
||||
@@ -0,0 +1,70 @@
|
||||
# Copyright (c) 2022-2025, Fan Yang and Per Frivik, ETH Zurich.
|
||||
# All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
"""Configuration for the ANYbotics robots with wheels.
|
||||
|
||||
The following configuration parameters are available:
|
||||
|
||||
* :obj:`ANYMAL_D_ON_WHEELS_CFG`: The ANYmal-D on wheels with ImplicitActuatorCfg.
|
||||
|
||||
"""
|
||||
|
||||
from . import ISAACLAB_NAV_TASKS_ASSETS_DIR
|
||||
|
||||
import isaaclab.sim as sim_utils
|
||||
from isaaclab.actuators import ImplicitActuatorCfg
|
||||
from isaaclab.assets.articulation import ArticulationCfg
|
||||
|
||||
__all__ = ["ANYMAL_D_ON_WHEELS_CFG"]
|
||||
|
||||
|
||||
ANYMAL_D_ON_WHEELS_CFG = ArticulationCfg(
|
||||
spawn=sim_utils.UsdFileCfg(
|
||||
usd_path=f"{ISAACLAB_NAV_TASKS_ASSETS_DIR}/Robots/AoW-D/aow_d.usd",
|
||||
activate_contact_sensors=True,
|
||||
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
||||
disable_gravity=False,
|
||||
retain_accelerations=False,
|
||||
linear_damping=0.0,
|
||||
angular_damping=0.0,
|
||||
max_linear_velocity=None,
|
||||
max_angular_velocity=None,
|
||||
max_depenetration_velocity=1.0,
|
||||
enable_gyroscopic_forces=True,
|
||||
),
|
||||
articulation_props=sim_utils.ArticulationRootPropertiesCfg(
|
||||
enabled_self_collisions=True, solver_position_iteration_count=4, solver_velocity_iteration_count=0
|
||||
),
|
||||
),
|
||||
init_state=ArticulationCfg.InitialStateCfg(
|
||||
pos=(0.0, 0.0, 0.65),
|
||||
joint_pos={
|
||||
".*HAA": 0.0, # all HAA
|
||||
".*F_HFE": 0.4, # both front HFE
|
||||
".*H_HFE": -0.4, # both hind HFE
|
||||
".*F_KFE": -0.8, # both front KFE
|
||||
".*H_KFE": 0.8, # both hind KFE
|
||||
".*WHEEL": 0.0, # all WHEEL
|
||||
},
|
||||
),
|
||||
actuators={
|
||||
"legs": ImplicitActuatorCfg(
|
||||
joint_names_expr=[".*HAA", ".*HFE", ".*KFE"],
|
||||
effort_limit_sim=80.0, # From URDF: HAA, HFE, KFE joints all have 80.0 Nm effort limit
|
||||
velocity_limit_sim=8.5, # From URDF: HAA, HFE, KFE joints all have 8.5 rad/s velocity limit
|
||||
stiffness={".*": 100.0}, # Typical stiffness value for legged robots
|
||||
damping={".*": 3.5}, # Typical damping value for legged robots
|
||||
),
|
||||
"wheels": ImplicitActuatorCfg(
|
||||
joint_names_expr=[".*WHEEL"],
|
||||
effort_limit_sim=28.0, # From URDF: wheel joints have 28.0 Nm effort limit
|
||||
velocity_limit_sim=200.0, # From URDF: wheel joints have 200.0 rad/s velocity limit
|
||||
stiffness={".*": 0.0}, # Wheels typically have no stiffness (direct velocity control)
|
||||
damping={".*": 5.0}, # From original configuration
|
||||
),
|
||||
},
|
||||
soft_joint_pos_limit_factor=0.95,
|
||||
)
|
||||
"""Configuration of wheelified ANYmal-D using ImplicitActuatorCfg."""
|
||||
@@ -0,0 +1,80 @@
|
||||
# Copyright (c) 2022-2025, Fan Yang and Per Frivik, ETH Zurich.
|
||||
# All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
"""Configuration for the B2W (Unitree B2W) robot.
|
||||
|
||||
The following configuration parameters are available:
|
||||
|
||||
* :obj:`B2W_CFG`: The B2W robot with wheels.
|
||||
|
||||
Reference:
|
||||
The B2W is a bipedal wheeled robot.
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
import isaaclab.sim as sim_utils
|
||||
from isaaclab.actuators import ImplicitActuatorCfg
|
||||
from isaaclab.assets.articulation import ArticulationCfg
|
||||
|
||||
# Local assets directory for this extension
|
||||
_ASSETS_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "data")
|
||||
|
||||
__all__ = ["B2W_CFG"]
|
||||
|
||||
|
||||
B2W_CFG = ArticulationCfg(
|
||||
spawn=sim_utils.UsdFileCfg(
|
||||
usd_path=f"{_ASSETS_DIR}/Robots/B2W/b2w_rsl.usd",
|
||||
activate_contact_sensors=True,
|
||||
rigid_props=sim_utils.RigidBodyPropertiesCfg(
|
||||
disable_gravity=False,
|
||||
retain_accelerations=False,
|
||||
linear_damping=0.0,
|
||||
angular_damping=0.0,
|
||||
max_linear_velocity=None,
|
||||
max_angular_velocity=None,
|
||||
max_depenetration_velocity=1.0,
|
||||
enable_gyroscopic_forces=True,
|
||||
),
|
||||
articulation_props=sim_utils.ArticulationRootPropertiesCfg(
|
||||
enabled_self_collisions=True, solver_position_iteration_count=4, solver_velocity_iteration_count=0
|
||||
),
|
||||
),
|
||||
init_state=ArticulationCfg.InitialStateCfg(
|
||||
pos=(0.0, 0.0, 0.75),
|
||||
joint_pos={
|
||||
".*hip_joint": 0.0,
|
||||
".*thigh_joint": 0.4,
|
||||
".*foot_joint": 0.0,
|
||||
".*calf_joint": -1.3,
|
||||
},
|
||||
),
|
||||
actuators={
|
||||
"legs": ImplicitActuatorCfg(
|
||||
joint_names_expr=[".*hip_joint", ".*thigh_joint"],
|
||||
effort_limit_sim=200.0,
|
||||
velocity_limit_sim=23.0,
|
||||
stiffness={".*": 100.0},
|
||||
damping={".*": 3.5},
|
||||
),
|
||||
"legs_calf": ImplicitActuatorCfg(
|
||||
joint_names_expr=[".*calf_joint"],
|
||||
effort_limit_sim=320.0,
|
||||
velocity_limit_sim=14.0,
|
||||
stiffness={".*": 100.0},
|
||||
damping={".*": 3.5},
|
||||
),
|
||||
"wheels": ImplicitActuatorCfg(
|
||||
joint_names_expr=[".*foot_joint"],
|
||||
effort_limit_sim=20.0,
|
||||
velocity_limit_sim=50.0,
|
||||
stiffness={".*": 0.0},
|
||||
damping={".*": 3.0},
|
||||
),
|
||||
},
|
||||
soft_joint_pos_limit_factor=0.95,
|
||||
)
|
||||
"""Configuration of B2W robot using ImplicitActuatorCfg."""
|
||||
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 449 KiB |
|
After Width: | Height: | Size: 175 KiB |
|
After Width: | Height: | Size: 157 KiB |
|
After Width: | Height: | Size: 223 KiB |
|
After Width: | Height: | Size: 225 KiB |
|
After Width: | Height: | Size: 201 KiB |
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 200 KiB |
|
After Width: | Height: | Size: 302 KiB |
|
After Width: | Height: | Size: 114 KiB |
|
After Width: | Height: | Size: 97 KiB |
@@ -0,0 +1,17 @@
|
||||
asset_path: /home/passutte/Developer/leggedrobotics/rsl_assets/Alma-D-Wheels-No-Arm/urdf/alma_manual_wheels.urdf
|
||||
usd_dir: /home/passutte/Developer/leggedrobotics/orbit/source/extensions/omni.isaac.orbit_assets/data/Robots/RSL-ETHZ/AoW-D
|
||||
usd_file_name: aow_d.usd
|
||||
force_usd_conversion: true
|
||||
make_instanceable: true
|
||||
import_inertia_tensor: true
|
||||
fix_base: false
|
||||
merge_fixed_joints: true
|
||||
self_collision: false
|
||||
default_drive_type: none
|
||||
default_drive_stiffness: 0.0
|
||||
default_drive_damping: 0.0
|
||||
link_density: 0.0
|
||||
convex_decompose_mesh: false
|
||||
##
|
||||
# Generated by UrdfConverter on 2024-06-08 at 15:27:00.
|
||||
##
|
||||
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2022-2025, Fan Yang and Per Frivik, ETH Zurich.
|
||||
# All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
print("hi")
|
||||
@@ -0,0 +1,18 @@
|
||||
asset_path: /home/fanyang1/Desktop/catkin_ws/src/b2w_description/urdf/b2w_description_rsl.urdf
|
||||
usd_dir: /home/fanyang1/IsaacLab-Internal/source/standalone/tools
|
||||
usd_file_name: b2w_rsl.usd
|
||||
force_usd_conversion: true
|
||||
make_instanceable: true
|
||||
import_inertia_tensor: true
|
||||
fix_base: false
|
||||
merge_fixed_joints: true
|
||||
self_collision: false
|
||||
default_drive_type: none
|
||||
override_joint_dynamics: false
|
||||
default_drive_stiffness: 0.0
|
||||
default_drive_damping: 0.0
|
||||
link_density: 0.0
|
||||
convex_decompose_mesh: false
|
||||
##
|
||||
# Generated by UrdfConverter on 2024-11-04 at 15:36:52.
|
||||
##
|
||||
@@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2022-2025, Fan Yang and Per Frivik, ETH Zurich.
|
||||
# All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
"""Configuration for the Unitree Go2 robot (reuses IsaacLab built-in USD).
|
||||
|
||||
* :obj:`GO2_CFG`: Unitree Go2 quadruped (12 leg joints, no wheels).
|
||||
"""
|
||||
|
||||
from isaaclab_assets.robots.unitree import UNITREE_GO2_CFG
|
||||
|
||||
__all__ = ["GO2_CFG"]
|
||||
|
||||
# Reuse the upstream IsaacLab Go2 articulation cfg verbatim. The locomotion
|
||||
# checkpoint we converted (policy_go2_jit.pt) was trained on this exact USD
|
||||
# (Isaac-Velocity-Flat-Unitree-Go2-v0), so joint order and joint count match.
|
||||
GO2_CFG = UNITREE_GO2_CFG.copy()
|
||||
"""Configuration of Unitree Go2 robot for navigation tasks."""
|
||||