-
Notifications
You must be signed in to change notification settings - Fork 682
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(detected_object_validation): apply util functions defined in…
… the other packages (#2093) * refactor: add FilterTargetLabel to utils Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp> * refactor: apply isCarLikeVehicle() Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp> * refactor: apply tier4_autoware_tuils::toPolygon2d() Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp> * refactor: update misc Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp> * refactor: replace useless variable with function Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp> * refactor: update to loop elements of polygon with index Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp> * refactor: update to divide validation function into a method Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp> Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
- Loading branch information
Showing
10 changed files
with
113 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
perception/detected_object_validation/include/utils/utils.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright 2022 TIER IV, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef UTILS__UTILS_HPP_ | ||
#define UTILS__UTILS_HPP_ | ||
|
||
#include <cstdint> | ||
|
||
namespace utils | ||
{ | ||
struct FilterTargetLabel | ||
{ | ||
bool UNKNOWN; | ||
bool CAR; | ||
bool TRUCK; | ||
bool BUS; | ||
bool TRAILER; | ||
bool MOTORCYCLE; | ||
bool BICYCLE; | ||
bool PEDESTRIAN; | ||
bool isTarget(const uint8_t label) const; | ||
}; // struct FilterTargetLabel | ||
} // namespace utils | ||
|
||
#endif // UTILS__UTILS_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.