-
Notifications
You must be signed in to change notification settings - Fork 698
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
Penalize private gates #3144
Penalize private gates #3144
Conversation
199524c
to
5cb05c1
Compare
test/parse_request.cc
Outdated
@@ -104,6 +110,8 @@ constexpr float kDefaultBicycle_DrivewayPenalty = 300.0f; // Seconds | |||
constexpr float kDefaultBicycle_AlleyPenalty = 60.0f; // Seconds | |||
constexpr float kDefaultBicycle_GateCost = 30.0f; // Seconds | |||
constexpr float kDefaultBicycle_GatePenalty = 600.0f; // Seconds | |||
constexpr float kDefaultBicycle_PrivateAccessCost = 5.0f; // Seconds | |||
constexpr float kDefaultBicycle_PrivateAccessPenalty = 750.0f; // Seconds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CuriOusQuOkka why is kDefaultBicycle_PrivateAccessPenalty 750 for bike but 450 for the other costing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The values are temporary now, I'm working on tuning them. But in the beginning it was set so high, to have kDefaultBicycle_GatePenalty < kDefaultBicycle_PrivateAccessPenalty
. As we assume that private gates should be penalized more than gates with no access information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I generally use a lower gate cost these days for bicycles so perhaps it can be lowered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I'll try it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've set default gate_penalty
to 300 for bikes, tested routes didn't change. private_access_penalty=450
looks good for bikes.
fc91005
to
3714218
Compare
d5a6551
to
adcf9d2
Compare
adcf9d2
to
2c82ee8
Compare
2c82ee8
to
ef8a0a7
Compare
@CuriOusQuOkka can we see some before and after screen shots of what is changing? I assume this was RAD tested? |
Made a huge RAD testing for this task and no problems were caught. Here are examples of what've changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. @dnesbitt61 thoughts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does private_access_penalty only apply to gates? If so maybe the name should include gates within it? I just wonder if there will be other places where transitioning onto private access might be penalized.
Otherwise I approve.
@dnesbitt61 It is used for gates now, but we plan to include this penalty for bollards soon. |
* penalize private gates
* penalize private gates
Issue
Apply penalty to the gates that are marked as private. The penalty is set higher than the penalty for regular gates.
Tasklist
Requirements / Relations
Continue this task 0488133