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

Improvements on rendering tests #1185

Merged
merged 15 commits into from
Mar 28, 2022
Merged

Conversation

Gamenot
Copy link
Collaborator

@Gamenot Gamenot commented Dec 16, 2021

Along debugging issues with rendering I found that the tests were not catching issues with rendering. I have updated the rendering test and added some configuration and documentation.

This will allow rendering without need for X11.

smarts/core/smarts.py Outdated Show resolved Hide resolved
smarts/core/utils/config.py Outdated Show resolved Hide resolved
smarts/core/renderer.py Outdated Show resolved Hide resolved
smarts/core/renderer.py Outdated Show resolved Hide resolved
smarts/core/renderer.py Outdated Show resolved Hide resolved
smarts/core/smarts.py Outdated Show resolved Hide resolved
smarts/core/smarts.py Outdated Show resolved Hide resolved
from smarts.core.vehicle import RendererException


def _smarts_with_agent(request, agent) -> SMARTS:
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see where the request parameter gets used here (or anywhere else below).

Copy link
Collaborator Author

@Gamenot Gamenot Mar 4, 2022

Choose a reason for hiding this comment

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

It gets added through the command line from the local conftest.py.

smarts/core/tests/test_renderers.py Outdated Show resolved Hide resolved
smarts/core/tests/test_renderers.py Show resolved Hide resolved
smarts/core/smarts.py Outdated Show resolved Hide resolved
@Gamenot Gamenot linked an issue Feb 25, 2022 that may be closed by this pull request
@Gamenot Gamenot force-pushed the tucker/bugfix-wslg_rendering_failure branch from 85b2f79 to 5acafbe Compare March 5, 2022 00:28
@Gamenot Gamenot requested a review from sah-huawei March 5, 2022 00:28
@Gamenot Gamenot requested a review from liu-allan March 5, 2022 00:29
Copy link
Contributor

@sah-huawei sah-huawei left a comment

Choose a reason for hiding this comment

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

Just some minor comments you can address when you want, but should be good to merge whenever.

smarts/core/renderer.py Show resolved Hide resolved
smarts/core/renderer.py Outdated Show resolved Hide resolved
class _ShowBaseInstance(ShowBase):
""" Wraps a singleton instance of ShowBase from Panda3D. """

_debug_mode: DEBUG_MODE = DEBUG_MODE.ERROR
_rendering_backend: str = "p3headlessgl"
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a comment here saying what the alternative possible values are?
Also, if this is meant to be changed by other code, I might remove the _ prefix.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was not sure how to properly expose this back-end since it is panda3d specific.

smarts/core/renderer.py Outdated Show resolved Hide resolved
smarts/core/tests/test_renderers.py Outdated Show resolved Hide resolved
smarts/core/smarts.py Outdated Show resolved Hide resolved
@Gamenot Gamenot mentioned this pull request Mar 24, 2022
@Gamenot Gamenot merged commit 8647573 into develop Mar 28, 2022
@Gamenot Gamenot deleted the tucker/bugfix-wslg_rendering_failure branch March 28, 2022 18:13
@Gamenot Gamenot linked an issue Apr 19, 2022 that may be closed by this pull request
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.

Zoo RLAgent build dependancies issues Sanity-test failed with WSLg
3 participants