Repository navigation
Adds DisplayPort cable insertion envs - #6398
shauryadNv wants to merge 75 commits into
Conversation
Greptile SummaryThis PR adds DisplayPort cable insertion environments and tooling. The main changes are:
Confidence Score: 4/5The task-space training path needs a config fix before merging.
source/isaaclab_tasks/isaaclab_tasks/contrib/deploy/cable_insertion/config/displayport_rizon_4s/task_space_env_cfg.py Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[DisplayPort Gym task id] --> B[DisplayportInsertionEnv]
B --> C[Environment config]
C --> D[Reset events]
D --> E[reset_scene_to_default]
E --> F[randomize_socket_pose]
F --> G[reset_plug_at_goal_curriculum]
G --> H[set_robot_to_object_grasp_pose]
C --> I[Policy observations and actions]
C --> J[Rewards and terminations]
B --> K[Success metric logging]
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[DisplayPort Gym task id] --> B[DisplayportInsertionEnv]
B --> C[Environment config]
C --> D[Reset events]
D --> E[reset_scene_to_default]
E --> F[randomize_socket_pose]
F --> G[reset_plug_at_goal_curriculum]
G --> H[set_robot_to_object_grasp_pose]
C --> I[Policy observations and actions]
C --> J[Rewards and terminations]
B --> K[Success metric logging]
Reviews (1): Last reviewed commit: "Relocate DisplayPort cable_insertion und..." | Re-trigger Greptile |
| "at_goal_prob": 0.0, | ||
| "at_goal_prob_final": 0.0, |
There was a problem hiding this comment.
The task-space config documents and wires an at-goal curriculum, but both probabilities are 0.0. reset_plug_at_goal_curriculum only enters the at-goal branch when the current probability is positive, so every reset uses the normal approach-pose randomization and the task-space policy never receives the seeded insertion starts this config describes.
| "at_goal_prob": 0.0, | |
| "at_goal_prob_final": 0.0, | |
| "at_goal_prob": 0.8, | |
| "at_goal_prob_final": 0.0, |
7ccabce to
2765083
Compare
| DISPLAY_ASSETS_DIR = os.path.join(CABLE_INSERTION_DIR, "display_cable_insertion_assets") | ||
|
|
||
|
|
||
| def _quat_rotate_vec(q_xyzw, v): |
There was a problem hiding this comment.
can use utils from math.py or some other library thats used in isaaclab already? I don't think we should have the quat utils here in-line.
1fdfcfa to
1516ffc
Compare
frlai
left a comment
There was a problem hiding this comment.
Hey @ashwinvkNV @shauryadNv ,
It would be best to not modify export.py. This file is considered generic user facing entry point similar to the original train.py and play.py. If you need to make modifications to the to enable cable insertion, it would be best if you can create your own export.py under cable_insertion to maintain consistency. you can most likely reuse the entire main function and just inject your own configuration functions.
for the terms needed to generate semantics on processed output, I like that you embedded it with the action term but ideally you don't inject that directly into main library code as well. I think you should be able to patch these for your needs if you write your own export.
| " with output_tensors.", | ||
| term_name, | ||
| ) | ||
| element_names = getattr(term, "_leapp_processed_action_element_names", None) |
There was a problem hiding this comment.
I understand why you need to do this. But is there any way to add this without modifying library code?
| ) | ||
| element_names = getattr(term, "_leapp_processed_action_element_names", None) | ||
| kind = getattr(term, "_leapp_processed_action_kind", None) | ||
| extra = getattr(term, "_leapp_processed_action_extra", None) |
There was a problem hiding this comment.
extra should also never be extensively used in library code. It you are free to use it on your own but by injecting data into extra you are creating ad hoc fields that downstream deployment frameworks may not honor. Useful as a one off but not generic enough.
56112bf to
285d971
Compare
|
Reproduced this branch from a clean clone on latest commit 015b113, using the container workflow on an RTX PRO 6000 Blackwell. Just opened a PR shauryadNv#10 that fixes issues (such as Three additional suggestions/question:
(tested on policy trained for only ~25 iterations for validating the inference code path)
What I foundEvery command producing a deployable artifact failed, three of them silently. The 1. Task-space LEAPP export writes no model, and reports validation as passing. The Skipped validation still counts as passing, so the tutorial ships a package with no policy 2. Joint-space LEAPP export aborts on the default backend.
3. Related: the control spaces start from different robots. Joint space spawns the calibrated 4. The training commands do not run, twice over. Headless is now the default; 5. Smaller gaps. Two of three station-pose definitions are documented, omitting What this PR changes
Defaults are unchanged.
ValidationIsaac Sim 6.0.0, LEAPP 0.6.1, ONNX Runtime 1.29.0. Checkpoints were trained on this branch
The tests are 18 parametrised cases, 1.5 s, no GPU or Kit. They were confirmed to fail Additional info, kept out of the docs as the figures are machine-specific. At Not addressed hereThe two deployment stations still disagree on position; that is a hardware question, so I |
The Rizon 4s cable-insertion task was failing every episode at reset: the IK + open-loop close sequence put the gripper next to the plug instead of around it, the fingers closed on empty space, and the plug fell to the floor (or twisted away when a finger clipped its edge). Root cause was a geometry mismatch between the un-flattened plug USD and the IK target. The un-flattened plug has its visible/collision ``Mesh`` offset ~3 cm from the rigid-body origin (``bbox_center_local = (0.0312, 0.0009, -0.0107)`` in body frame). ``set_robot_to_object_grasp_pose`` snapped the plug body to the gripper-achieved pose, but the achieved pose was a function of the *body* origin, not the visible centre, so the fingertips landed ~3 cm from the actual plug. Switch to the flattened plug + socket USDs (``flattened/`` directory) where ``bbox_center == (0, 0, 0)`` and the visible mesh coincides with the rigid-body origin. With that, the grasp parameters reduce to the gripper tool length only: * ``grasp_offset = (0, 0, -0.13)`` -- only backs ``link7`` off by the Grav tool length so the fingertips land at the plug body origin (which is now also the visible centre). * ``grasp_rot_offset = (-0.707, 0.707, 0, 0)`` (unchanged) keeps ``link7`` pointing straight down with the gripper finger axis perpendicular to the plug's long body Y axis. * Plug + socket use identity ``init_state.rot``; the flattened USDs already align the long axis with body Y. * Plug spawns 5 cm above the socket so the policy has descent room. * ``hand_close_width = 0.0`` matches the gear-assembly small-gear close target. ``-0.155`` (the joint hard limit) was tried and ejected the plug because the drive over-commanded the fingers. Also extend ``set_robot_to_object_grasp_pose``: * Snap the held object to the achieved hand pose after IK so any IK residual error or geometry offset is washed out before the gripper closes. * One-shot ``[GRASP-DBG]`` log dumps the initial pose, the IK target, the achieved hand pose and the snapped object pose -- invaluable for diagnosing future grasp regressions.
The Flexiv Rizon 4s in the NVIDIA Hubble Lab is wall-mounted with the arm rotated about the negative X-axis. Update the ROS inference env config so the simulator's reset state matches the physical robot: * Set the home joint pose to the lab's joint convention. * Set the robot base orientation to the wall-mount quaternion so the arm hangs the same way in sim and in the real cell. This keeps the policy roll-out and the live deployment in the same robot frame, which is required for the policy obs (computed relative to ``base_link``) to be valid at inference time.
Three small scripts under ``scripts/tools/`` to diagnose and repair USD assets whose visible/collision geometry is offset from the rigid-body origin -- the failure mode that broke the Rizon 4s cable-insertion grasp. * ``inspect_cable_usd.py``: standalone Pixar-USD walker. Lists xform ops, ``RigidBodyAPI`` / ``MassAPI`` / ``CollisionAPI`` markers and per-mesh ``bbox_center_local`` / ``bbox_size``. Use this from any shell that already has ``pxr`` on PYTHONPATH (e.g. a Kit Python). * ``inspect_cable_usd_kit.py``: same walker run inside an IsaacLab ``AppLauncher`` context so ``pxr`` is available without extra setup. This is what we actually used during debugging from the IsaacLab conda env. * ``flatten_cable_usd.py``: bake the chain of intermediate xforms down into the leaf mesh's points, then reset all xform ops on the rigid-body and its children to identity. The result is a USD whose visible mesh is centered at the rigid-body origin -- exactly the invariant the IK-based grasp event assumes. Supports an optional ``--rotate-z-deg`` knob for assets whose body-local pose needs an additional rotation baked in. Both inspectors print the bounding-box centre in body-local frame so ``grasp_offset`` can be set deterministically from the asset rather than tuned by trial and error.
Activate the measured-kinematics Rizon4s USD (added under display_cable_insertion_assets) as the robot spawn USD in place of the stock Nucleus rizon4s_with_grav.usd, for sim-to-real calibration experiments.
Adds an operational-space-control variant of the DisplayPort cable insertion task alongside the existing joint-space environments, plus the export path needed to deploy it through Isaac ROS. The policy commands a 6-DoF Cartesian pose delta instead of joint targets. The actor observes the gripper TCP (flange + 192.5 mm) while the controller acts on the flange, matching the frames the trained checkpoints use. Arm PD gains are zeroed because OSC commands joint efforts; an active joint PD would hold its reset target and override them. Deploy action wrappers mark their processed actions for export so the LEAPP graph carries the scaled Cartesian delta with proper semantics rather than an unlabelled tensor. The annotator honours that metadata and lets the processed action replace per-asset write outputs. Export reuses the RSL-RL LEAPP exporter behind --task_space_contract, which splits the 18-D observation into named pose tensors (eef_pos, eef_rot_6d, socket_kp_pos, socket_kp_rot_6d) and emits arm_action. That contract annotates its own graph node, so it bypasses the automatic env patcher, aligns the recurrent-state node name, and annotates inputs before the state tensors are registered. Verified on the ship branch: task registration, training on the task-space and ROS-inference variants, and an export whose artifacts are byte-identical to the previous standalone script.
The previous commit inadvertently included in-progress documentation and export entries for `sysid_cfg.py` and `delayed_joint_actions*.py`, which are not part of this branch. This left the docs describing files a fresh clone does not have, and `mdp/__init__.pyi` lazily exporting six symbols from an absent module (accessing any of them raised ModuleNotFoundError; no committed code referenced them). Removes the "Sim-to-Real / SysID Action Model" section, the two Code Layout entries, and the six `Delayed*`/`FlexivDynamicsAware*` stub exports. The task-space (OSC) work from the previous commit is unchanged. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Review feedback: `scripts/reinforcement_learning/leapp/rsl_rl/export.py` is a generic, user-facing entry point (like train.py / play.py) and should stay task-agnostic, and task-specific processed-action semantics should not be injected into the core library. Both shared files are restored to upstream verbatim: - scripts/reinforcement_learning/leapp/rsl_rl/export.py - source/isaaclab/isaaclab/utils/leapp/export_annotator.py The task-space contract now lives in a DisplayPort-specific exporter, `export_displayport_insertion.py`, which reuses the generic flow and only substitutes the export routine: `run_export_with_hydra` resolves `export_rsl_rl_agent` as a module global, so rebinding it is sufficient. Argument parsing, checkpoint resolution, Hydra config, runner construction and graph compilation remain shared with upstream. The annotator changes were reachable only via `patch_env_for_export`, which the task-space path deliberately skips, so reverting them does not affect the exported artifacts. The `isaaclab` changelog fragment is dropped since the core library is no longer modified. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The tutorial described the joint-space environments almost exclusively, even though task-space (OSC) variants ship alongside them. It now presents both control spaces side by side. Content: * Task details state that the policy observes the robot's current state (arm joint angles in joint space, flange/end-effector pose in task space), and that the output is a joint-position delta or a Cartesian pose delta. * Notes that this environment has been deployed and tested on a real Flexiv Rizon 4s, matching the gear assembly tutorial. * Observation, action, training, export and deployment-metadata sections are tabbed by control space; adds a "Choosing a Control Space" comparison. * Documents the task-space specifics: 18-dim actor input, 6D rotation representation, zeroed joint PD gains, and the TCP-observe / flange-control split. * Generalizes the proprioceptive-noise rationale to the task-space end-effector pose, and clarifies which observation carries perception noise. Cleanup: * Drops the SysID / delayed-action code-layout entries and section; that work is not part of this branch. * Refers to the plug and socket assets generically instead of naming files under a specific directory. * Adds the joint-space, task-space and exporter entries to the code layout. Also carries four pre-existing wording fixes from the working tree (Isaac ROS naming, "DisplayPort plug", "considerable"). Verified with a Sphinx build: 6 tab-sets / 12 tab-items render, and the tutorial's rst pre-commit hooks pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…pace Records two pieces of deployment guidance that were not written down: * Task space is the recommended control space. Task-space policies have transferred better than joint-space ones in our testing on the real Flexiv Rizon 4s, because a Cartesian pose delta keeps the policy independent of the arm's joint servo behavior and of small kinematic-model errors. * Joint-space training needs a robot USD that matches the specific arm. The policy commands joints directly, so kinematic mismatch surfaces as end-effector error at sub-millimetre clearances. Points at Flexiv's flexiv_calibration workflow for exporting a calibrated robot description, and documents the DP_ROBOT_USD environment variable for selecting the result. The guidance appears in "Choosing a Control Space" (new anchor), with pointers from the task details and Step 1, and a robot-asset paragraph in the asset quality section. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Two corrections to the DisplayPort tutorial. The "use the NoJointVel variant" note sat at the top level of the observation section, so it read as the tutorial's overall sim-to-real recommendation while actually only concerning the joint-space variants — and it competed with the task-space recommendation. It now lives inside the joint-space tab, is worded as a choice among the joint-space variants, and points at "Choosing a Control Space" for the broader question. The ROS-inference environments are the ones actually used to train deployed policies, not just an export-time configuration. In addition to the training setup they declare the metadata Isaac Manipulator and LEAPP consume and pin the plug, socket and seed joint pose to the real deployment station, so training on them means the trained environment and the exported contract are identical and a checkpoint deploys with Isaac ROS without a config swap. * Registered environments table is reordered around this: the two `-ROS-Inference-v0` ids lead as the training + deployment entries, with the plain ids described as experiment-only. * Step 1 and Step 2 commands train on the `-ROS-Inference-v0` ids in both control spaces. * Drops the "(optional)" framing that presented ROS-aligned metadata as an extra, and notes in the export section that no id swap is needed. Sphinx build passes; all nine registered ids are documented. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Assets ------ Removes the three vendored USD binaries and loads the plug and socket from the Isaac asset server instead, under ``Props/Factory/display_port_cable_assets``, matching how the sibling gear assembly task sources its assets. The asset root is pinned to the staging bucket for now: the DisplayPort assets are published there but are not yet mirrored to the production bucket that ``ISAAC_NUCLEUS_DIR`` resolves to. A comment marks the one-line switch to ``ISAAC_NUCLEUS_DIR`` once they are promoted. The calibrated per-robot USD is dropped as well; the environments now spawn the stock ``FLEXIV_RIZON4S_GRAV_GRIPPER_CFG`` asset. That describes a nominal Rizon 4s rather than a specific arm, so the documentation now tells users to substitute a calibrated description of their own robot before training a joint-space policy they intend to deploy, and no longer refers to a ``DP_ROBOT_USD`` environment variable that this branch does not define. Lint ---- Fixes three pre-existing failures in ``play_displayport_insertion.py`` that would fail CI: * ``SIM105``: ``try``/``except``/``pass`` replaced with ``contextlib.suppress``. * ``C901``: ``main`` exceeds the complexity limit; waived with ``noqa`` rather than restructuring a working inference entry point. * ``codespell``: the local ``rin`` reads as a misspelling; renamed to ``rnn_in_vec``. Also applies ``ruff format`` and re-syncs the DisplayPort exporter with upstream's ``compile_graph`` change, which now publishes graph metadata (policy frequency) via ``create_graph_configs``. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
015b113 to
0e6d1c7
Compare
|
run-ci |
Export ------ ``--export_method`` defaults to ``None`` upstream, and the effective backend is resolved into a local variable. The DisplayPort exporter passed the raw ``args_cli.export_method`` to the task-space action annotation, so ``export_with=None`` reached LEAPP: the run still exited 0 but emitted only the YAML contract and the recurrent initial values, with no compiled model, and LEAPP skipped validation. Resolve the backend once and use it for both the patcher and the action annotation. This only surfaced after rebasing onto current develop; the previous parser defaulted the flag to ``onnx-dynamo``. Docs ---- The unified entry point has no ``--headless`` flag; the visualizer is selected with ``--visualizer`` / ``--viz``. Replaces the five ``--headless`` usages with ``--viz none`` and corrects the flag glossary. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
|
||
| # Flexiv Rizon 4s - Joint space | ||
| gym.register( | ||
| id="Isaac-Deploy-DisplayportInsertion-Rizon4s-Grav-v0", |
There was a problem hiding this comment.
contrib tasks should start with IsaacContrib
|
|
||
| 01_io_descriptors/io_descriptors_101 | ||
| 02_gear_assembly/gear_assembly_policy | ||
| 06_displayport_insertion/displayport_insertion_policy |
There was a problem hiding this comment.
should this replace the above tutorial? is there value to keeping both?
|
|
||
| .. code-block:: bash | ||
|
|
||
| ./isaaclab.sh -p scripts/reinforcement_learning/deploy/play_displayport_insertion.py \\ |
There was a problem hiding this comment.
commands should use uv run instead
| _DEFAULT_TASK = "Isaac-Deploy-DisplayportInsertion-Rizon4s-Grav-NoJointVel-ROS-Inference-v0" | ||
|
|
||
| # -- argparse ---------------------------------------------------------------- | ||
| parser = argparse.ArgumentParser( |
There was a problem hiding this comment.
is this a common script for deployment or something very specific to the task? it's also an extremely long script...
| import torch | ||
|
|
||
|
|
||
| class SuccessTracker: |
There was a problem hiding this comment.
this also doesn't feel like should belong here?
| # DisplayPort assets are published on the Isaac staging asset server. They are not yet mirrored | ||
| # to the production bucket that ``ISAAC_NUCLEUS_DIR`` resolves to, so the root is pinned here. | ||
| # Switch to ``f"{ISAAC_NUCLEUS_DIR}/Props/Factory/display_port_cable_assets"`` once promoted. | ||
| _DISPLAY_ASSETS_STAGING_ROOT = "https://omniverse-content-staging.s3-us-west-2.amazonaws.com/Assets/Isaac/6.0/Isaac" |
There was a problem hiding this comment.
this path should not be here
| ) | ||
|
|
||
|
|
||
| def _quat_mul(q1_xyzw, q2_xyzw): |
There was a problem hiding this comment.
we should have these utilities already defined in utils, are these really necessary?
|
|
||
|
|
||
| @configclass | ||
| class DisplayPortPlug(RigidObjectCfg): |
There was a problem hiding this comment.
I don't think this is standard way we define
please do
DisplayPortPlug=RigidObjectCfg(....)
|
|
||
|
|
||
| @configclass | ||
| class DisplayPortSocket(RigidObjectCfg): |
| init_state=AssetBaseCfg.InitialStateCfg(pos=(0.0, 0.0, -1.05)), | ||
| ) | ||
|
|
||
| dp_plug = DisplayPortPlug() |
There was a problem hiding this comment.
please use dp_plug = RigidObjectCfg(...)
| return torch.cat((corners, -corners[-3:]), dim=0) | ||
|
|
||
|
|
||
| class DisplayportInsertionEnv(ManagerBasedRLEnv): |
There was a problem hiding this comment.
if you are using manager based environment please don't create subclass, manager base environment is meant to be fully cfg driven with no central envrionment implementation code, sublcass only apply to direct environment
There was a problem hiding this comment.
instead of do this I recommend writing all the play logic into the environment cfg and use the generic play script rather than writing a separate ply disport script
There was a problem hiding this comment.
Seconded, please remove this file and success_utils.py
| import torch | ||
|
|
||
|
|
||
| class SuccessTracker: |
There was a problem hiding this comment.
again this suppose to be in envrionment logic doesn't belong in scripts
Three review comments from PR isaac-sim#6398. Task ids (kellyguo11: "contrib tasks should start with IsaacContrib") -------------------------------------------------------------------- Renames all nine registrations from ``Isaac-Deploy-DisplayportInsertion-*`` to ``IsaacContrib-Deploy-DisplayportInsertion-*``. Also drops the ``-v0`` suffix: 92 of the 95 ids under ``contrib`` carry no version suffix, and the sibling gear assembly task registers ``IsaacContrib-Deploy-GearAssembly-Rizon4s-Grav``, so this matches the convention on both counts. Quaternion helpers (ashwinvkNV, kellyguo11: use existing math utils) ------------------------------------------------------------------- The hand-rolled quaternion rotate and multiply are replaced with ``isaaclab.utils.math.quat_apply`` and ``quat_mul``, which use the same ``(x, y, z, w)`` ordering, so no convention conversion is needed. What remains are two named adapters adapting the module's plain-tuple asset offsets to the tensor API; the math itself is no longer duplicated here. The three derived constants are unchanged, verified bit-identical against the previous implementation (max delta 0.0): ``_SOCKET_ROOT_POS``, ``_DEFAULT_PLUG_ROT`` and ``_PLUG_ROOT_POS``. Commands (kellyguo11: "commands should use uv run") --------------------------------------------------- ``uv`` is now the documented workflow. The four training commands and both export commands use the gear assembly tutorial's nested tab layout (outer tab per control space, inner tab for uv vs isaaclab.sh); the remaining commands, and the play script's own usage examples, use ``uv run`` directly. Adds a note mapping the two forms, and corrects the leapp prerequisite, which now ships as the ``leapp`` extra rather than a separate pip install. Verified end to end on the renamed ids with the new uv environment: training, inference, and a task-space LEAPP export producing a complete bundle. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
StafaH
left a comment
There was a problem hiding this comment.
High level comments:
- We currently name things IsaacContrib-Action-Specific-Robot, where action = insert, specific = displayport, and robot = Rizon4s. This allows for in the future other robots, other specifics, and other actions (e.g. IsaacContrib-Unplug-Displayport-Rizon4s might be another task)
- Presets can be used to probably help collapse things down into less environments. More manageable
- Lots of old IsaacLab conventions are being used (e.g. _PLAY env) which will need to be removed.
- If LEAPP does not support something, you will need to work together to figure out how to cleanly implement customization, we won't be able to add custom scripts for one task
There was a problem hiding this comment.
Seconded, please remove this file and success_utils.py
| @@ -0,0 +1,358 @@ | |||
| # Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). | |||
There was a problem hiding this comment.
we moved all leapp logic out of scripts. In general we are trying to remove all scripts/ into module logic, so this logic has to somehow be folded in with leapp. If leapp is not providing the correct export logic, then work with @frlai to figure out how to allows users to create "custom" export logic and still use export.py. Then the code can be moved into environment logic and leapp export can pick up the custom logic during the export.
|
|
||
| # Flexiv Rizon 4s - Joint space without joint velocity Play | ||
| gym.register( | ||
| id="IsaacContrib-Deploy-DisplayportInsertion-Rizon4s-Grav-NoJointVel-Play", |
There was a problem hiding this comment.
We no longer recommend registering play and inference environments, and building seperate configs. You can override theplay_mode function, and our play script will pick up your logic when play is called.
|
|
||
| # Flexiv Rizon 4s - Joint space Play | ||
| gym.register( | ||
| id="IsaacContrib-Deploy-DisplayportInsertion-Rizon4s-Grav-Play", |
There was a problem hiding this comment.
All of these environments could be one and use a preset over the action space.
|
Thanks for the PR. Please open your own repo using the template generator. |
Description
This PR adds DisplayPort cable insertion training and ROS-inference environments for the Flexiv Rizon4s with Grav gripper.
The environment is added under
isaaclab_tasks.contrib.deploy.cable_insertionand includes:The main trainable task variants are:
Isaac-Deploy-DisplayportInsertion-Rizon4s-Grav-v0Isaac-Deploy-DisplayportInsertion-Rizon4s-Grav-NoJointVel-v0Isaac-Deploy-DisplayportInsertion-Rizon4s-Grav-TaskSpace-v0The main ROS-inference task variants are:
Isaac-Deploy-DisplayportInsertion-Rizon4s-Grav-ROS-Inference-v0Isaac-Deploy-DisplayportInsertion-Rizon4s-Grav-NoJointVel-ROS-Inference-v0Isaac-Deploy-DisplayportInsertion-Rizon4s-Grav-TaskSpace-ROS-Inference-v0The DisplayPort environment uses:
240 Hz830 Hz3 mmThe environments also log insertion metrics:
Metrics/success_rateMetrics/plug_socket_pos_error_mMetrics/plug_socket_keypoint_dist_mMetrics/terminal_success_rateNo new external dependencies are required.
Fixes # N/A
Type of change
Screenshots
N/A
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there