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

features PhD #561

Merged
merged 34 commits into from
Jan 5, 2022
Merged

features PhD #561

merged 34 commits into from
Jan 5, 2022

Conversation

juloberno
Copy link
Contributor

  • benchmark runner: fix processing splitting into smaller files within zip file
  • benchmark runner: scenario-type-specific terminal criteria
  • Stochastic IDM with an intent mechanism (requires interface adaptation get agent in front)
  • Comparison operators param server, macro actions

Copy link
Contributor

@klemense1 klemense1 left a comment

Choose a reason for hiding this comment

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

Nice work!


def run(self, viewer = None, maintain_history = False, checkpoint_every=None):
results_tmp = ray.get([actor.run.remote(viewer, maintain_history, checkpoint_every) for actor in self.actors])
def run(self, viewer = None, maintain_history = False, checkpoint_every=None, process_init_func=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

what is process_init_func? is it a flag? or a function? can you add some documentation here? or add type hinting (see https://docs.python.org/3/library/typing.html)

'//bark/runtime/tests:xodr_data',
':params'],

deps = ["//bark/runtime/commons:parameters",
Copy link
Contributor

Choose a reason for hiding this comment

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

we should introduce some runtime lib definition (such as with geometry), so that we do not have to include them seperately every time.

@@ -0,0 +1,141 @@
# Copyright (c) 2020 fortiss GmbH
Copy link
Contributor

Choose a reason for hiding this comment

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

update copyright to 2021?

Copy link
Contributor

Choose a reason for hiding this comment

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

(preferebly in a seperate commit)

"PI means all angles considered", bark::geometry::B_PI*0.75);
max_lon_difference_to_be_front_ = params->GetReal(
"BehaviorIDMClassic::MaxLonDifferenceToBeFront",
"When are vehicles considered longitudinal-wise as front vehicles",
Copy link
Contributor

Choose a reason for hiding this comment

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

can you provide <> means ... as with the others?

observed_world.GetAgentInFront(lane_corr);
observed_world.GetAgentInFront(lane_corr, GetMaxLatDifferenceToBeFront(),
GetMaxAngleDifferenceToBeFront(),
GetMaxLonDifferenceToBeFront() );
Copy link
Contributor

Choose a reason for hiding this comment

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

remove space

@@ -40,6 +40,20 @@ BehaviorIDMStochastic::BehaviorIDMStochastic(const commons::ParamsPtr& params)
"BehaviorIDMStochastic::CoolnessFactorDistribution",
"From what distribution is the comfortable braking sampled in each "
"planning steo",
"UniformDistribution1D")),
use_intention_mechanism_(params->GetBool("BehaviorIDMStochastic::UseIntentionMechanism",
Copy link
Contributor

Choose a reason for hiding this comment

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

check indentation

@@ -14,6 +14,12 @@ namespace bark {
namespace models {
namespace behavior {

typedef enum YieldIntent {
Copy link
Contributor

Choose a reason for hiding this comment

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

EXPECT_TRUE(acc_primitive.IsPreConditionSatisfied(world1, corridors));
auto traj3 = acc_primitive.Plan(0.5, world1, corridors.current);
EXPECT_NEAR(
traj3(traj3.rows() - 1, StateDefinition::X_POSITION),
traj3(0, StateDefinition::X_POSITION) + 5.0 * 0.5 + 4.0 / 2.0 * 0.5 * 0.5,
traj3(0, StateDefinition::X_POSITION) + 5.0 * 0.5 + 3.0 / 2.0 * 0.5 * 0.5,
Copy link
Contributor

Choose a reason for hiding this comment

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

make these numbers parameters so it is easier to understand what they mean?

@@ -116,7 +116,7 @@ def test_const_label_function(self):
clf_after = pickle_unpickle(clf)
self.assertEqual(clf.value, clf_after.value)

dlf = SafeDistanceLabelFunction("test", False, 1.0, 1.0, -5.0, -5.0, True, 4, False, 1.0, False)
dlf = SafeDistanceLabelFunction("test", False, 1.0, 1.0, -5.0, -5.0, True, 4, False, 1.0, 3.14, False)
Copy link
Contributor

Choose a reason for hiding this comment

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

use pi definition from bark geometry?

@juloberno juloberno merged commit 502c40f into master Jan 5, 2022
@juloberno juloberno deleted the intention_based_stochastic_idm branch June 15, 2022 06:46
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