intensity_filter.h
Go to the documentation of this file.
1 /*********************************************************************
2 * Software License Agreement (BSD License)
3 *
4 * Copyright (c) 2008, Willow Garage, Inc.
5 * Copyright (c) 2020, Eurotec B.V.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * * Redistributions in binary form must reproduce the above
15 * copyright notice, this list of conditions and the following
16 * disclaimer in the documentation and/or other materials provided
17 * with the distribution.
18 * * Neither the name of the Willow Garage nor the names of its
19 * contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 *
35 * \author Vijay Pradeep, Rein Appeldoorn
36 *
37 *********************************************************************/
38 
39 #pragma once
40 
41 #include <dynamic_reconfigure/server.h>
42 #include <filters/filter_base.hpp>
43 #include <laser_filters/IntensityFilterConfig.h>
44 #include <sensor_msgs/LaserScan.h>
45 
46 namespace laser_filters
47 {
48 class LaserScanIntensityFilter : public filters::FilterBase<sensor_msgs::LaserScan>
49 {
50 public:
52  bool configure();
53  bool update(const sensor_msgs::LaserScan& input_scan, sensor_msgs::LaserScan& output_scan);
54 
55 private:
56  std::shared_ptr<dynamic_reconfigure::Server<IntensityFilterConfig>> dyn_server_;
57  void reconfigureCB(IntensityFilterConfig& config, uint32_t level);
58  boost::recursive_mutex own_mutex_;
59 
60  IntensityFilterConfig config_ = IntensityFilterConfig::__getDefault__();
61 };
62 }
filters::FilterBase
laser_filters::LaserScanIntensityFilter::reconfigureCB
void reconfigureCB(IntensityFilterConfig &config, uint32_t level)
Definition: intensity_filter.cpp:144
filter_base.hpp
laser_filters::LaserScanIntensityFilter::own_mutex_
boost::recursive_mutex own_mutex_
Definition: intensity_filter.h:130
laser_filters::LaserScanIntensityFilter::configure
bool configure()
Definition: intensity_filter.cpp:84
laser_filters::LaserScanIntensityFilter::LaserScanIntensityFilter
LaserScanIntensityFilter()
Definition: intensity_filter.cpp:80
laser_filters
LaserScanMaskFilter removes points on directions defined in a mask from a laser scan.
Definition: angular_bounds_filter.h:43
laser_filters::LaserScanIntensityFilter::dyn_server_
std::shared_ptr< dynamic_reconfigure::Server< IntensityFilterConfig > > dyn_server_
Definition: intensity_filter.h:128
laser_filters::LaserScanIntensityFilter::config_
IntensityFilterConfig config_
Definition: intensity_filter.h:132
laser_filters::LaserScanIntensityFilter::update
bool update(const sensor_msgs::LaserScan &input_scan, sensor_msgs::LaserScan &output_scan)
Definition: intensity_filter.cpp:102


laser_filters
Author(s): Tully Foote
autogenerated on Mon Apr 3 2023 02:51:57