@@ -134,66 +134,4 @@ visualization_msgs::msg::MarkerArray createDeletedDeadLineVirtualWallMarker(
134
134
{
135
135
return createDeletedVirtualWallMarkerArray (" dead_line_" , now, id);
136
136
}
137
-
138
- visualization_msgs::msg::MarkerArray VirtualWallMarkerCreator::handleVirtualWallMarker (
139
- const std::vector<Pose> & poses, const std::string & module_name, const rclcpp::Time & now,
140
- create_wall_function function_create_wall_marker,
141
- delete_wall_function function_delete_wall_marker, size_t & previous_virtual_walls_nb,
142
- const double longitudinal_offset, const std::string & ns_prefix)
143
- {
144
- visualization_msgs::msg::MarkerArray wall_marker;
145
-
146
- int32_t id = 0 ;
147
- const auto max_id = static_cast <int32_t >(previous_virtual_walls_nb);
148
-
149
- for (const auto & p : poses) {
150
- appendMarkerArray (
151
- function_create_wall_marker (p, module_name, now, id++, longitudinal_offset, ns_prefix),
152
- &wall_marker);
153
- }
154
-
155
- while (id < max_id) {
156
- appendMarkerArray (function_delete_wall_marker (now, id++), &wall_marker, now);
157
- }
158
-
159
- previous_virtual_walls_nb = poses.size ();
160
- return wall_marker;
161
- }
162
-
163
- visualization_msgs::msg::MarkerArray VirtualWallMarkerCreator::createStopVirtualWallMarker (
164
- const std::vector<Pose> & stop_poses, const std::string & module_name, const rclcpp::Time & now,
165
- const double longitudinal_offset, const std::string & ns_prefix)
166
- {
167
- create_wall_function creator = motion_utils::createStopVirtualWallMarker;
168
- delete_wall_function deleter = motion_utils::createDeletedStopVirtualWallMarker;
169
-
170
- return handleVirtualWallMarker (
171
- stop_poses, module_name, now, creator, deleter, previous_stop_poses_nb_, longitudinal_offset,
172
- ns_prefix);
173
- }
174
-
175
- visualization_msgs::msg::MarkerArray VirtualWallMarkerCreator::createSlowDownVirtualWallMarker (
176
- const std::vector<Pose> & slow_down_poses, const std::string & module_name,
177
- const rclcpp::Time & now, const double longitudinal_offset, const std::string & ns_prefix)
178
- {
179
- create_wall_function creator = motion_utils::createSlowDownVirtualWallMarker;
180
- delete_wall_function deleter = motion_utils::createDeletedSlowDownVirtualWallMarker;
181
-
182
- return handleVirtualWallMarker (
183
- slow_down_poses, module_name, now, creator, deleter, previous_slow_down_poses_nb_,
184
- longitudinal_offset, ns_prefix);
185
- }
186
-
187
- visualization_msgs::msg::MarkerArray VirtualWallMarkerCreator::createDeadLineVirtualWallMarker (
188
- const std::vector<Pose> & dead_line_poses, const std::string & module_name,
189
- const rclcpp::Time & now, const double longitudinal_offset, const std::string & ns_prefix)
190
- {
191
- create_wall_function creator = motion_utils::createDeadLineVirtualWallMarker;
192
- delete_wall_function deleter = motion_utils::createDeletedDeadLineVirtualWallMarker;
193
-
194
- return handleVirtualWallMarker (
195
- dead_line_poses, module_name, now, creator, deleter, previous_dead_line_poses_nb_,
196
- longitudinal_offset, ns_prefix);
197
- }
198
-
199
137
} // namespace motion_utils
0 commit comments