17#ifndef DAISI_PATH_PLANNING_NEXT_TO_MODE_H_
18#define DAISI_PATH_PLANNING_NEXT_TO_MODE_H_
21#include <unordered_map>
23namespace daisi::path_planning {
24enum class NextTOMode { kSameStation, kRandomNearestSide };
26inline NextTOMode nextToModeFromString(
const std::string &next_to_mode) {
27 static std::unordered_map<std::string, NextTOMode> string_to_to_mode{
28 {
"samestation", NextTOMode::kSameStation},
29 {
"randomnearestside", NextTOMode::kRandomNearestSide}};
30 return string_to_to_mode.at(next_to_mode);