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

Changche #33

Merged
merged 9 commits into from
Nov 17, 2023
Merged

Changche #33

merged 9 commits into from
Nov 17, 2023

Conversation

lyg1597
Copy link
Contributor

@lyg1597 lyg1597 commented Nov 10, 2023

Add different level of print to Verse.

len(self.past_runs),
self.past_runs,
)
self.simulate = self.simulator.simulate(root, self.sensor, time_horizon, time_step, max_height, self.map,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

What does this do?

# check height
if node.height >= max_height-1:
print("max depth reached")
break
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's use continous instead of break, because we want to get everything at max_height instead of stop.

@@ -836,6 +848,23 @@ def get_transition_simulate_simple(
transitions[agent_idx].append((agent_idx, dest, next_init, paths))
return all_asserts, dict(transitions), idx
if len(satisfied_guard) > 0:
# # if config.print_level >= 1:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's remove this if it's not used.

print("max depth reached")
continue
break
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use continue instead of break.

# Check height
if node.height >= max_height-1:
print("max depth reached")
break
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use continue instead of break.

@@ -231,7 +232,7 @@ def simulate_one(
new_cache, paths_to_sim = to_simulate(old_node.agent, node.agent, cached_segments)

asserts, transitions, transition_idx = Simulator.get_transition_simulate(
new_cache, paths_to_sim, node, consts.lane_map, consts.sensor, consts.agent_dict
config, new_cache, paths_to_sim, node, consts.lane_map, consts.sensor, consts.agent_dict
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a small thing. Do we need the full config or just the print level?

@lyg1597 lyg1597 merged commit 42b9d35 into main Nov 17, 2023
4 of 9 checks passed
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