Skip to content

Tag smoothness=impassable breaks pedestrian routing#5023

Merged
gknisely merged 11 commits intomasterfrom
smoothness_fix
Dec 18, 2024
Merged

Tag smoothness=impassable breaks pedestrian routing#5023
gknisely merged 11 commits intomasterfrom
smoothness_fix

Conversation

@gknisely
Copy link
Member

@gknisely gknisely commented Dec 16, 2024

Issue

Smoothness tag should not delete the edge in general. The smoothness tag is for the physical usability of a way for wheeled vehicles as defined in the wiki and pedestrian access should not be removed.

Tasklist

Requirements / Relations

Link any requirements here. Other pull requests this PR is based on?

@chrstnbwnkl chrstnbwnkl self-requested a review December 17, 2024 07:57
chrstnbwnkl
chrstnbwnkl previously approved these changes Dec 17, 2024
@chrstnbwnkl
Copy link
Member

Ah wait, it shouldn't have wheelchair access though right? 😄

@chrstnbwnkl chrstnbwnkl dismissed their stale review December 17, 2024 08:04

wheelchair access on impassable surface

@gknisely
Copy link
Member Author

Ah wait, it shouldn't have wheelchair access though right? 😄

Yes. We use pedestrian access to assign wheelchair when we can do so. https://github.com/valhalla/valhalla/blob/master/src/mjolnir/directededgebuilder.cc#L164-L165

@gknisely
Copy link
Member Author

gknisely commented Dec 17, 2024

@chrstnbwnkl Let me update the directed edge builder and test

@gknisely gknisely closed this Dec 17, 2024
@gknisely gknisely reopened this Dec 17, 2024
@chrstnbwnkl
Copy link
Member

I guess it doesn't matter because wheelchair will still be disallowed due to the surface value?

if (type == "wheelchair") {
// TODO(nils): this needs to control much more in costing, e.g.
// we could add more AccessRestrictions for curb height or so
type_ = PedestrianType::kWheelchair;
access_mask_ = kWheelchairAccess;
minimal_allowed_surface_ = Surface::kCompacted;

@gknisely
Copy link
Member Author

I guess it doesn't matter because wheelchair will still be disallowed due to the surface value?

if (type == "wheelchair") {
// TODO(nils): this needs to control much more in costing, e.g.
// we could add more AccessRestrictions for curb height or so
type_ = PedestrianType::kWheelchair;
access_mask_ = kWheelchairAccess;
minimal_allowed_surface_ = Surface::kCompacted;

Nah. I think it is better to not assign. Give me a few

@gknisely
Copy link
Member Author

@chrstnbwnkl should be all set

@chrstnbwnkl chrstnbwnkl self-requested a review December 18, 2024 09:11
@gknisely gknisely merged commit cda4478 into master Dec 18, 2024
@gknisely gknisely deleted the smoothness_fix branch December 18, 2024 13:45
ianthetechie pushed a commit to ianthetechie/valhalla that referenced this pull request Feb 7, 2025
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.

Tag smoothness=impassable breaks pedestrian routing

2 participants