-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Replaces omni.client with isaaclab implementation of client #4132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Greptile OverviewGreptile SummaryReplaced Major changes:
Critical issues found:
Confidence Score: 2/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant App as Application Code
participant Assets as isaaclab.utils.assets
participant Client as isaaclab.utils.client
participant S3 as S3/HTTP Storage
participant USD as USD Parser (Sdf)
App->>Assets: retrieve_file_path(path)
Assets->>Client: stat(path)
Client->>S3: HEAD request / S3 head_object
S3-->>Client: Result + metadata
Client-->>Assets: Result.OK / NOT_FOUND
alt Remote USD file
Assets->>Client: download_usd_with_references_sync()
Client->>Client: _normalize_url()
loop For each asset in dependency graph
Client->>S3: copy_async(url, local_path)
S3-->>Client: Download file
Client->>USD: _find_usd_references(local_usd)
USD-->>Client: List of referenced assets
Client->>Client: _resolve_reference_url()
end
Client-->>Assets: mapping (remote URLs → local paths)
Assets-->>App: local_root_path
else Remote non-USD file
Assets->>Client: copy(url, local_path)
Client->>S3: Download file
S3-->>Client: File content
Client-->>Assets: Result.OK
Assets-->>App: local_path
else Local file
Assets-->>App: absolute_path
end
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments (1)
-
source/isaaclab/isaaclab/utils/client.py, line 614 (link)syntax:
asyncio.get_event_loop()is deprecated in Python 3.10+, useasyncio.new_event_loop()orasyncio.get_running_loop()for running loops
7 files reviewed, 4 comments
Description
This PR replaces omni.client with light weight implementation of isaaclab.utils.client.
Type of change
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there