Program Listing for File jump_distance_merge.hpp
↰ Return to documentation for file (include/laser_segmentation/segmentation/jump_distance_merge.hpp
)
// Copyright (c) 2017 Alberto J. Tudela Roldán
//
// 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 LASER_SEGMENTATION__SEGMENTATION__JUMP_DISTANCE_MERGE_HPP_
#define LASER_SEGMENTATION__SEGMENTATION__JUMP_DISTANCE_MERGE_HPP_
// C++
#include <memory>
#include <string>
#include <vector>
#include "laser_segmentation/segmentation/jump_distance.hpp"
namespace laser_segmentation
{
class JumpDistanceSegmentationMerge : public JumpDistanceSegmentation
{
public:
JumpDistanceSegmentationMerge() = default;
~JumpDistanceSegmentationMerge() override = default;
void initialize_segmentation(
double distance, double angle_resolution,
double noise_reduction, std::string method = "") override;
void perform_segmentation(
const std::vector<slg::Point2D> points,
std::vector<slg::Segment2D> & segments) override;
typedef std::shared_ptr<JumpDistanceSegmentationMerge> SharedPtr;
};
} // namespace laser_segmentation
#endif // LASER_SEGMENTATION__SEGMENTATION__JUMP_DISTANCE_MERGE_HPP_