ros_utils.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright 2022 TIER IV, Inc.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #ifndef LIDAR_CENTERPOINT__ROS_UTILS_HPP_
  15. #define LIDAR_CENTERPOINT__ROS_UTILS_HPP_
  16. // ros packages cannot be included from cuda.
  17. #include <lidar_centerpoint/utils.hpp>
  18. #include <autoware_auto_perception_msgs/msg/detected_object_kinematics.hpp>
  19. #include <autoware_auto_perception_msgs/msg/detected_objects.hpp>
  20. #include <autoware_auto_perception_msgs/msg/object_classification.hpp>
  21. #include <autoware_auto_perception_msgs/msg/shape.hpp>
  22. #include <string>
  23. #include <vector>
  24. namespace centerpoint
  25. {
  26. void box3DToDetectedObject(
  27. const Box3D & box3d, const std::vector<std::string> & class_names,
  28. const bool rename_car_to_truck_and_bus, const bool has_twist,
  29. autoware_auto_perception_msgs::msg::DetectedObject & obj);
  30. uint8_t getSemanticType(const std::string & class_name);
  31. bool isCarLikeVehicleLabel(const uint8_t label);
  32. } // namespace centerpoint
  33. #endif // LIDAR_CENTERPOINT__ROS_UTILS_HPP_