Skip to content

Commit 87b109b

Browse files
committed
Small fix for SetWheelDirection
1 parent 3b5d8ba commit 87b109b

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

app/other/behaviour_tree_car/include/behaviour_tree/node/custom/action/SetWheelDirection.hpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,18 @@ namespace behaviour_tree::node::custom::action
6767
case utils::hash("Forward"):
6868
{
6969
result = DirectionType::Forward;
70+
break;
7071
}
7172
case utils::hash("Backward"):
7273
{
7374
result = DirectionType::Backward;
75+
break;
7476
}
7577
default:
7678
{
77-
result = tl::make_unexpected(fmt::format(R"(Invalid direction_type: '{}' | Action:Drive:['{}',{}])", direction_type_attribute, name_attribute, index));
78-
}
79+
result = tl::make_unexpected(fmt::format(R"(Invalid direction_type: '{}' | Action:SetWheelDirection:['{}',{}])", direction_type_attribute, name_attribute, index));
80+
break;
81+
}
7982
};
8083
return result;
8184
}();

0 commit comments

Comments
 (0)