Skip to content

Issue 903 - Isaac Sim Backend - Work in Progress - #907

Draft
alexermolovich wants to merge 10 commits into
petercorke:mainfrom
alexermolovich:issue-903
Draft

alexermolovich wants to merge 10 commits into
petercorke:mainfrom
alexermolovich:issue-903

Conversation

@alexermolovich

@alexermolovich alexermolovich commented Oct 28, 2026 •

Copy link
Copy Markdown

Thanks for contributing to RTB!

Summary

Related issue

Checklist

Only the first item below is checked automatically — the rest are a self-check for you before requesting review, nothing currently verifies them for you.

  • I checked that no other open PR already addresses this Issue, and commented on the Issue to claim it
  • PR title follows Conventional Commits (type: description) — checked automatically, see the "Check PR title" status
  • Tests pass locally (pytest)
  • Added/updated tests for this change, if applicable
  • New/changed code is type-hinted with modern syntax (X | Y, list[X], not Union/Optional/List)
  • Docstrings updated (reST style: :param:, :returns:; type hints in the signature cover types now, :type:/:rtype: are rarely needed)
  • PR is as small/focused as practical — if it tackles several unrelated things, consider splitting it so each can be reviewed and accepted independently
  • I understand that the Codacy check is advisory (it reports assert in tests as "high" security), only All tests passed and the PR title check are required — see CONTRIBUTING
  • If this change alters numerical results or public behaviour, I have said so in the summary above, even if it is a bug fix
  • If an AI assistant wrote or helped with this change, I have said so in the summary above, and I have read the diff myself
  • No test files, data files, or notebooks specific to your own project — PyPI has strict package size limits, and RTB is already split into a toolbox and a data package. Notebooks, if of general interest, should have output cleared before committing.

@codacy-production

codacy-production Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 41 complexity · 0 duplication

Metric Results
Complexity 41
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@alexermolovich

Copy link
Copy Markdown
Author

Added basic smoke test and fixed all of the initial isaacsim start-up issues, currently the isaacsim instance is successfully being created a well as loads urdf based robot onto the stage, working on control right now.

@alexermolovich

Copy link
Copy Markdown
Author
image

@petercorke

Copy link
Copy Markdown
Owner

Alex, an update: the backend registry from Issue #902 has merged (PR #953, with the Connector abstract class in PR #923). A backend is now added with one line, for example register_backend("isaacsim", "roboticstoolbox.backends.IsaacSim.isaacsim_backend:IsaacSim"), and that string is only imported when someone chooses the backend. So the elif name == "isaacsim" in load_backend and the BaseRobot.py lines that came from PR #904 are no longer needed: please drop them from this branch and update it from main. Your PR #904 pointed in the right direction, and thank you for it. I will send a separate review of the code, so the process points and the design points arrive in two comments.

@petercorke

Copy link
Copy Markdown
Owner

Alex, the process points, so the checks can go green when you are ready:

  1. The title needs to follow the convention (the check is red), for example feat(backends): Isaac Sim backend (work in progress).
  2. The description is still the empty template. A few lines would help: what works now, what you ran on real Isaac Sim (CI cannot run it), and whether an AI assistant helped.
  3. mypy fails: restart() calls self.__init__(), and IsaacSim does not inherit Connector. Now that Connector is an abstract class, inheriting it also tells you plainly which methods are still missing (hold, remove).
  4. .gitignore has backends/BaseRobot.py, backends/Gripper.py and test_run.sh, which look like your own scratch files; please take them out of the PR.
  5. ruff format will tidy the trailing whitespace and aligned =.
  6. In pyproject.toml the extra is isaacsim-backend with an exact pin isaacsim[all,extscache]==6.2.0.0, while Issue Isaac Sim backend #903 says isaacsim. Which Python versions does Isaac Sim 6.2 support, compared with ours?

@petercorke

Copy link
Copy Markdown
Owner

Alex, the design points. None of this is urgent; it is a list for when you are ready.

  1. The big question first: do you intend Isaac Sim to run inside the Python process that is using RTB (as it does now), or as a separate Isaac Sim process that RTB talks to over a socket, as Swift does with its server? A separate process is easier to restart and to use from notebooks, and can run on another machine; in-process is simpler and has direct access to the physics. What is your thinking?
  2. If it stays in-process: IsaacSim() creates the whole SimulationApp in its constructor, so choosing the backend by name starts Isaac Sim. The other backends keep the constructor cheap and start the program in launch(). Your imports are already lazy, which is good; could launch() create the app, and __init__ only keep the configuration?
  3. restart() calls __init__(), which loses the configuration, and I think Isaac Sim will not create a second SimulationApp in one process. Could it be close() then launch(), or a clear error?
  4. The URDF importer writes the generated USD into the URDF's own folder. For the bundled models that is inside the installed package, which may be read-only. A cache or temp folder would be safer.
  5. add() imports the URDF before it checks that the world exists, and reset() rebuilds handles that have no articulation or prim path, and makes a second World().
  6. hold() and remove() are missing or empty, and plot() and teach() call hold(). Inheriting Connector will list what is missing.
  7. The joint mapping is the main missing piece, as you say. How do you plan to map q to the articulation's degrees of freedom, and read the joint state back?
  8. Small: cached is a dict of dicts and could be a couple of small dataclasses; _load_runtime_extensions and simulation_step are not used; the light is added in the test but belongs in _create_scene(); the smoke test ends in while True so it never finishes.

Thank you again, this is a good start. Do you want it in RTB, or as a package of its own that registers itself with register_backend? Both work now, and no rush on the answer.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants