|
| 1 | +// Copyright 2020 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 OBSTACLE_AVOIDANCE_PLANNER__DEBUG_HPP_ |
| 15 | +#define OBSTACLE_AVOIDANCE_PLANNER__DEBUG_HPP_ |
| 16 | + |
| 17 | +#include <opencv2/core.hpp> |
| 18 | + |
| 19 | +#include <autoware_auto_perception_msgs/msg/predicted_object.hpp> |
| 20 | +#include <autoware_auto_planning_msgs/msg/trajectory_point.hpp> |
| 21 | +#include <nav_msgs/msg/occupancy_grid.hpp> |
| 22 | +#include <visualization_msgs/msg/marker_array.hpp> |
| 23 | + |
| 24 | +#include <string> |
| 25 | +#include <vector> |
| 26 | + |
| 27 | +struct ConstrainRectangle; |
| 28 | +struct Bounds; |
| 29 | +struct DebugData; |
| 30 | +struct VehicleParam; |
| 31 | + |
| 32 | +namespace util |
| 33 | +{ |
| 34 | +struct Footprint; |
| 35 | +} |
| 36 | + |
| 37 | +visualization_msgs::msg::MarkerArray getDebugVisualizationMarker( |
| 38 | + const DebugData & debug_data, |
| 39 | + const std::vector<autoware_auto_planning_msgs::msg::TrajectoryPoint> & optimized_points, |
| 40 | + const VehicleParam & vehicle_param); |
| 41 | + |
| 42 | +geometry_msgs::msg::Pose getVirtualWallPose( |
| 43 | + const geometry_msgs::msg::Pose & target_pose, const VehicleParam & vehicle_param); |
| 44 | + |
| 45 | +visualization_msgs::msg::MarkerArray getDebugPointsMarkers( |
| 46 | + const std::vector<geometry_msgs::msg::Point> & interpolated_points, |
| 47 | + const std::vector<autoware_auto_planning_msgs::msg::TrajectoryPoint> & optimized_points, |
| 48 | + const std::vector<geometry_msgs::msg::Point> & straight_points, |
| 49 | + const std::vector<geometry_msgs::msg::Pose> & fixed_points, |
| 50 | + const std::vector<geometry_msgs::msg::Pose> & non_fixed_points); |
| 51 | + |
| 52 | +visualization_msgs::msg::MarkerArray getDebugConstrainMarkers( |
| 53 | + const std::vector<ConstrainRectangle> & constrain_ranges, const std::string & ns); |
| 54 | + |
| 55 | +visualization_msgs::msg::MarkerArray getObjectsMarkerArray( |
| 56 | + const std::vector<autoware_auto_perception_msgs::msg::PredictedObject> & objects, |
| 57 | + const std::string & ns, const double r, const double g, const double b); |
| 58 | + |
| 59 | +visualization_msgs::msg::MarkerArray getRectanglesMarkerArray( |
| 60 | + const std::vector<util::Footprint> & rects, const std::string & ns, const double r, |
| 61 | + const double g, const double b); |
| 62 | + |
| 63 | +visualization_msgs::msg::MarkerArray getRectanglesNumMarkerArray( |
| 64 | + const std::vector<util::Footprint> & rects, const std::string & ns, const double r, |
| 65 | + const double g, const double b); |
| 66 | + |
| 67 | +visualization_msgs::msg::MarkerArray getPointsMarkerArray( |
| 68 | + const std::vector<geometry_msgs::msg::Pose> & points, const std::string & ns, const double r, |
| 69 | + const double g, const double b); |
| 70 | + |
| 71 | +visualization_msgs::msg::MarkerArray getPointsMarkerArray( |
| 72 | + const std::vector<geometry_msgs::msg::Point> & points, const std::string & ns, const double r, |
| 73 | + const double g, const double b); |
| 74 | + |
| 75 | +visualization_msgs::msg::MarkerArray getPointsTextMarkerArray( |
| 76 | + const std::vector<geometry_msgs::msg::Pose> & points, const std::string & ns, const double r, |
| 77 | + const double g, const double b); |
| 78 | + |
| 79 | +visualization_msgs::msg::MarkerArray getPointsTextMarkerArray( |
| 80 | + const std::vector<autoware_auto_planning_msgs::msg::TrajectoryPoint> & points, |
| 81 | + const std::string & ns, const double r, const double g, const double b); |
| 82 | + |
| 83 | +visualization_msgs::msg::MarkerArray getBaseBoundsLineMarkerArray( |
| 84 | + const std::vector<Bounds> & bounds, const std::vector<geometry_msgs::msg::Pose> & candidate_p0, |
| 85 | + const std::string & ns, const double r, const double g, const double b); |
| 86 | + |
| 87 | +visualization_msgs::msg::MarkerArray getTopBoundsLineMarkerArray( |
| 88 | + const std::vector<Bounds> & bounds, const std::vector<geometry_msgs::msg::Pose> & candidate_p1, |
| 89 | + const std::string & ns, const double r, const double g, const double b); |
| 90 | + |
| 91 | +visualization_msgs::msg::MarkerArray getMidBoundsLineMarkerArray( |
| 92 | + const std::vector<Bounds> & bounds, const std::vector<geometry_msgs::msg::Pose> & candidate_top, |
| 93 | + const std::string & ns, const double r, const double g, const double b); |
| 94 | + |
| 95 | +visualization_msgs::msg::MarkerArray getVirtualWallMarkerArray( |
| 96 | + const geometry_msgs::msg::Pose & pose, const std::string & ns, const double r, const double g, |
| 97 | + const double b); |
| 98 | + |
| 99 | +visualization_msgs::msg::MarkerArray getVirtualWallTextMarkerArray( |
| 100 | + const geometry_msgs::msg::Pose & pose, const std::string & ns, const double r, const double g, |
| 101 | + const double b); |
| 102 | + |
| 103 | +nav_msgs::msg::OccupancyGrid getDebugCostmap( |
| 104 | + const cv::Mat & clearance_map, const nav_msgs::msg::OccupancyGrid & occupancy_grid); |
| 105 | +#endif // OBSTACLE_AVOIDANCE_PLANNER__DEBUG_HPP_ |
0 commit comments