Skip to content

Commit

Permalink
comform to newest bark master
Browse files Browse the repository at this point in the history
  • Loading branch information
CesarLiu committed Jun 10, 2022
1 parent d9f07d7 commit 6754a2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/mcts_config/params/sa_lex_mcts_sd.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"max_agents_for_crossing": 4,
"use_frac_param_from_world": false,
"lateral_difference_threshold": 2.0,
"angle_difference_threshold": 1.57,
"check_lateral_dist": false
}
],
Expand Down
3 changes: 2 additions & 1 deletion src/traffic_rules/rule_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ def make_SafeDistanceLabelFunction(params):
max_agents_for_crossing = params["max_agents_for_crossing"]
use_frac_param_from_world = params["use_frac_param_from_world"]
lateral_difference_threshold = params["lateral_difference_threshold"]
angle_difference_threshold = params["angle_difference_threshold"]
check_lateral_dist = params["check_lateral_dist"]
return SafeDistanceLabelFunction(label_str, to_rear, delta_ego, delta_others, a_e, a_o, consider_crossing_corridors, max_agents_for_crossing, use_frac_param_from_world, lateral_difference_threshold, check_lateral_dist)
return SafeDistanceLabelFunction(label_str, to_rear, delta_ego, delta_others, a_e, a_o, consider_crossing_corridors, max_agents_for_crossing, use_frac_param_from_world, lateral_difference_threshold, angle_difference_threshold, check_lateral_dist)

def make_CollisionEgoLabelFunction(params):
label_str = params["label_str"]
Expand Down
2 changes: 1 addition & 1 deletion src/traffic_rules/traffic_rules_evaluators.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_traffic_rule_evaluator_params(rule_name):
if rule_name == "safe_distance":
rule = {"type": "EvaluatorLTL",
"params": {"ltl_formula": "G sd_front",
"label_functions": [SafeDistanceLabelFunction("sd_front", False, 1.0, 1.0, -7.84, -7.84, True, 4, False, 2.0, False)]}}
"label_functions": [SafeDistanceLabelFunction("sd_front", False, 1.0, 1.0, -7.84, -7.84, True, 4, False, 2.0, 1.57, False)]}}

elif rule_name == "zip_merge":
logging.raiseExceptions(NOT_AVAILABLE)
Expand Down

0 comments on commit 6754a2c

Please sign in to comment.