Skip to content
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

URDFImporter: Wait for meshes to process #400

Merged
merged 2 commits into from Jul 20, 2023

Conversation

arturkamieniecki
Copy link
Contributor

@arturkamieniecki arturkamieniecki commented Jul 11, 2023

This PR addresses the #395 issue.

This PR is WIP.

It waits 10 seconds for the assets to be processed.

The PR in the current state can be used if the above bug is encountered.

The URDF importer was modified to disable watching assets (this breaks the visuals on resolved meshes page).
To properly import the URDF after the resolved meshes page is shown for the first time we need to use the back button and then the next button. After that, the meshes should be resolved properrly.

@adamdbrw
Copy link
Contributor

@arturkamieniecki could this be worked into an acceptable change?

@arturkamieniecki
Copy link
Contributor Author

@arturkamieniecki could this be worked into an acceptable change?

Yes. I'm working on it right now. I just wanted to create a PR so that if it was needed something could be used.

@arturkamieniecki arturkamieniecki force-pushed the URDFNotImportingMeshes branch 3 times, most recently from c08ccb2 to d871290 Compare July 11, 2023 13:28
Signed-off-by: Artur Kamieniecki <artur.kamieniecki@robotec.ai>
@arturkamieniecki
Copy link
Contributor Author

This PR is now ready for review.
I've added a function that waits for the assets to be processed after being copied. This allows the asset processor to put all relevant files into the cache before further processing is done. This enables to create .assetinfo files without errors.
This was needed because the AZ::SceneAPI::Events::SceneSerialization::LoadScene event call (used to create .assetinfo files) queried the asset processor for the UUID of the file. This was not possible due to the file being stored in the directory hidden from the asset processor.

The wait for assets function is very similar to the function implemented in the #327 PR.

This change removes the temporary directory where assets were stored as it is not necessary in this implementation.

@arturkamieniecki arturkamieniecki marked this pull request as ready for review July 11, 2023 13:43
@arturkamieniecki arturkamieniecki requested review from a team as code owners July 11, 2023 13:43
Signed-off-by: Artur Kamieniecki <130671280+arturkamieniecki@users.noreply.github.com>
Copy link
Contributor

@michalpelka michalpelka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created GH issue to test alternative solution.
Tested solution.

@michalpelka michalpelka merged commit 3263a2c into o3de:development Jul 20, 2023
2 checks passed
Antoni-Robotec pushed a commit to Antoni-Robotec/o3de-extras that referenced this pull request Jul 24, 2023
Signed-off-by: Artur Kamieniecki <artur.kamieniecki@robotec.ai>
Signed-off-by: Artur Kamieniecki <130671280+arturkamieniecki@users.noreply.github.com>
michalpelka added a commit that referenced this pull request Aug 24, 2023
Signed-off-by: Michał <michal.pelka@robotec.ai>
michalpelka added a commit that referenced this pull request Aug 28, 2023
- Reverted #400, changing way of source asset are processed during
URDF/XACRO/SDF import using temp directory
- Fixed misleading warning on creating articulation link
Signed-off-by: Michał <michal.pelka@robotec.ai>
adamdbrw pushed a commit that referenced this pull request Sep 1, 2023
- Reverted #400, changing way of source asset are processed during
URDF/XACRO/SDF import using temp directory
- Fixed misleading warning on creating articulation links
- Use of GetAssetStatus_FlushIO

---------

Signed-off-by: Michał <michal.pelka@robotec.ai>
michalpelka added a commit to RobotecAI/o3de-extras that referenced this pull request Sep 25, 2023
- Reverted o3de#400, changing way of source asset are processed during
URDF/XACRO/SDF import using temp directory
- Fixed misleading warning on creating articulation links
- Use of GetAssetStatus_FlushIO

---------

Signed-off-by: Michał <michal.pelka@robotec.ai>
michalpelka added a commit to RobotecAI/o3de-extras that referenced this pull request Sep 25, 2023
- Reverted o3de#400, changing way of source asset are processed during
URDF/XACRO/SDF import using temp directory
- Fixed misleading warning on creating articulation links
- Use of GetAssetStatus_FlushIO

---------

Signed-off-by: Michał <michal.pelka@robotec.ai>
Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>
michalpelka added a commit to RobotecAI/o3de-extras that referenced this pull request Oct 2, 2023
- Reverted o3de#400, changing way of source asset are processed during
URDF/XACRO/SDF import using temp directory
- Fixed misleading warning on creating articulation links
- Use of GetAssetStatus_FlushIO

---------

Signed-off-by: Michał <michal.pelka@robotec.ai>
Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>
michalpelka added a commit that referenced this pull request Oct 3, 2023
- Reverted #400, changing way of source asset are processed during
URDF/XACRO/SDF import using temp directory
- Fixed misleading warning on creating articulation links
- Use of GetAssetStatus_FlushIO

---------

Signed-off-by: Michał <michal.pelka@robotec.ai>
Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>
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.

None yet

4 participants