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

Fix Envision visualization issue in "near real time" mode #1766

Merged
merged 7 commits into from
Dec 6, 2022

Conversation

qianyi-sun
Copy link
Contributor

No description provided.

@qianyi-sun qianyi-sun self-assigned this Dec 2, 2022
msInSec * (elapsed_times[0] - prevElapsedTime) -
(Date.now() - waitStartTime)
);
let delt_elapsed_time_in_sec = msInSec * (elapsed_times[0] - prevElapsedTime);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is in milliseconds I believe. Also, I think the style is snakeCase (even though not everything here follows it).

Suggested change
let delt_elapsed_time_in_sec = msInSec * (elapsed_times[0] - prevElapsedTime);
let deltaElapsedMs = msInSec * (elapsed_times[0] - prevElapsedTime);

);
let delt_elapsed_time_in_sec = msInSec * (elapsed_times[0] - prevElapsedTime);
if (delt_elapsed_time_in_sec > 100) {
delt_elapsed_time_in_sec = 100
Copy link
Contributor

Choose a reason for hiding this comment

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

After using Python, it's easy to forget about semicolons. Though not always necessary in js, they should be used to make sure statements stay separate from each other.

Suggested change
delt_elapsed_time_in_sec = 100
delt_elapsed_time_in_sec = 100;

Copy link
Collaborator

@Gamenot Gamenot left a comment

Choose a reason for hiding this comment

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

Please add a changelog entry.

@@ -15,6 +15,8 @@ Copy and pasting the git commit messages is __NOT__ enough.
- Added new video record ultility using moviepy.
- Added distance check between bubble and vehicle to avoid generating unnecessary cursors.
- Added `ConfigurableZone` for `Zone` object to types which enable users to build bubble by providing coordinates of the polygon.
- Added "SMARTS Performance Benchmark" development tool for evaluating the simulation performance.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where did this entry come from?

@qianyi-sun qianyi-sun requested a review from Gamenot December 6, 2022 19:09
@qianyi-sun qianyi-sun linked an issue Dec 6, 2022 that may be closed by this pull request
@qianyi-sun qianyi-sun merged commit 9c823a5 into develop Dec 6, 2022
@qianyi-sun qianyi-sun deleted the pat/fix_realtime_envision branch December 6, 2022 21:53
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.

Envision doesnt run scenario properly after the first episode
3 participants