15
15
#include " surround_obstacle_checker/debug_marker.hpp"
16
16
17
17
#include < motion_utils/marker/marker_helper.hpp>
18
- #include < motion_utils/marker/virtual_wall_marker_creator.hpp>
19
18
#include < tier4_autoware_utils/geometry/geometry.hpp>
20
19
#include < tier4_autoware_utils/ros/marker_helper.hpp>
21
20
#ifdef ROS_DISTRO_GALACTIC
@@ -52,7 +51,6 @@ Polygon2d createSelfPolygon(
52
51
}
53
52
} // namespace
54
53
55
- using motion_utils::createStopVirtualWallMarker;
56
54
using tier4_autoware_utils::appendMarkerArray;
57
55
using tier4_autoware_utils::calcOffsetPose;
58
56
using tier4_autoware_utils::createDefaultMarker;
@@ -76,8 +74,6 @@ SurroundObstacleCheckerDebugNode::SurroundObstacleCheckerDebugNode(
76
74
self_pose_(self_pose),
77
75
clock_(clock)
78
76
{
79
- debug_virtual_wall_pub_ =
80
- node.create_publisher <visualization_msgs::msg::MarkerArray>(" ~/virtual_wall" , 1 );
81
77
debug_viz_pub_ = node.create_publisher <visualization_msgs::msg::MarkerArray>(" ~/debug/marker" , 1 );
82
78
stop_reason_pub_ = node.create_publisher <StopReasonArray>(" ~/output/stop_reasons" , 1 );
83
79
velocity_factor_pub_ =
@@ -141,10 +137,6 @@ void SurroundObstacleCheckerDebugNode::publishFootprints()
141
137
142
138
void SurroundObstacleCheckerDebugNode::publish ()
143
139
{
144
- /* publish virtual_wall marker for rviz */
145
- const auto virtual_wall_msg = makeVirtualWallMarker ();
146
- debug_virtual_wall_pub_->publish (virtual_wall_msg);
147
-
148
140
/* publish debug marker for rviz */
149
141
const auto visualization_msg = makeVisualizationMarker ();
150
142
debug_viz_pub_->publish (visualization_msg);
@@ -160,21 +152,6 @@ void SurroundObstacleCheckerDebugNode::publish()
160
152
stop_obstacle_point_ptr_ = nullptr ;
161
153
}
162
154
163
- MarkerArray SurroundObstacleCheckerDebugNode::makeVirtualWallMarker ()
164
- {
165
- MarkerArray msg;
166
- rclcpp::Time current_time = this ->clock_ ->now ();
167
-
168
- // visualize stop line
169
- if (stop_pose_ptr_ != nullptr ) {
170
- const auto p = calcOffsetPose (*stop_pose_ptr_, base_link2front_, 0.0 , 0.0 );
171
- const auto markers = createStopVirtualWallMarker (p, " surround obstacle" , current_time, 0 );
172
- appendMarkerArray (markers, &msg);
173
- }
174
-
175
- return msg;
176
- }
177
-
178
155
MarkerArray SurroundObstacleCheckerDebugNode::makeVisualizationMarker ()
179
156
{
180
157
MarkerArray msg;
0 commit comments