Skip to content

Commit

Permalink
Support string vector conversion for ports (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass authored Apr 2, 2024
1 parent a6d6588 commit a4ad265
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 775 deletions.
5 changes: 5 additions & 0 deletions include/behaviortree_cpp/basic_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ template <>
template <>
[[nodiscard]] std::vector<double> convertFromString<std::vector<double>>(StringView str);

// Strings separated by the character ";"
template <>
[[nodiscard]] std::vector<std::string>
convertFromString<std::vector<std::string>>(StringView str);

// This recognizes either 0/1, true/false, TRUE/FALSE
template <>
[[nodiscard]] bool convertFromString<bool>(StringView str);
Expand Down
Loading

0 comments on commit a4ad265

Please sign in to comment.