0

I am trying to setup a "good" EUC custom model for EUC (electric unicycle). Here is my first try:

{
  "priority": [
    {
      "if": "road_class == PRIMARY",
      "multiply_by": 0.5
    },
    {
      "if": "road_class == SECONDARY || road_class == RESIDENTIAL",
      "multiply_by": 0.7
    },
    {
      "if": "road_class == TERTIARY || road_class == UNCLASSIFIED",
      "multiply_by": 0.8
    },
    {
      "if": "road_class == CYCLEWAY",
      "multiply_by": 1.0
    },
    {
      "if": "road_class == MOTORWAY || road_class == TRUNK",
      "multiply_by": 0.0
    },
    {
      "if": "max_speed > 80",
      "multiply_by": 0.2
    },
    {
      "if": "surface == ASPHALT || surface == CONCRETE",
      "multiply_by": 1.0
    },
    {
      "if": "surface == GRAVEL || track_type == GRADE3 || smoothness == INTERMEDIATE",
      "multiply_by": 0.6
    },
    {
      "if": "surface == DIRT || track_type == GRADE4 || smoothness == BAD",
      "multiply_by": 0.3
    },
    {
      "if": "track_type == GRADE5 || smoothness == VERY_BAD",
      "multiply_by": 0.1
    },
    {
      "if": "max_slope > 0.2 && (surface == GRAVEL || surface == DIRT || smoothness == BAD) || smoothness == VERY_BAD",
      "multiply_by": 0.2
    },
    {
      "if": "road_class == STEPS",
      "multiply_by": 0.0
    }
  ],
  "speed": [
    {
      "if": "true",
      "limit_to": "20"
    },
    {
      "if": "surface == ASPHALT || surface == CONCRETE",
      "limit_to": "25"
    },
    {
      "if": "surface == GRAVEL || track_type == GRADE3",
      "limit_to": "18"
    },
    {
      "if": "surface == DIRT || track_type == GRADE4",
      "limit_to": "10"
    },
    {
      "if": "track_type == GRADE5 || smoothness == VERY_BAD",
      "limit_to": "6"
    }
  ]
}

Result is not satisfying. It makes too much detour:

enter image description here

It should find this:

enter image description here

I don't see any reasons from my criteria (road_class, slope) why it does this detour. Any idea please?

EDIT: the max_speed constraint is the cause. If I put 0.4 instead of 0.2, I get: enter image description here

Does someone has managed to build a good one?

2
  • Is your edit meant to answer the question? If so, please remove it and add as a separate answer.
    – user2856
    Commented Nov 3 at 3:12
  • yes and no, getting better EUC profiles would be nice
    – lalebarde
    Commented Nov 7 at 21:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.