organized_statistical_outlier_removal.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
2 /*********************************************************************
3  * Software License Agreement (BSD License)
4  *
5  * Copyright (c) 2021, JSK Lab
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 JSK Lab 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 
36 
37 #ifndef JSK_PCL_ROS_ORGANIZED_STATISTICAL_OUTLIER_REMOVAL_H_
38 #define JSK_PCL_ROS_ORGANIZED_STATISTICAL_OUTLIER_REMOVAL_H_
39 
40 #include <pcl/pcl_base.h>
41 #include <pcl_ros/pcl_nodelet.h>
42 #include <jsk_topic_tools/diagnostic_nodelet.h>
43 #include <jsk_topic_tools/counter.h>
44 #include <dynamic_reconfigure/server.h>
45 #include "jsk_pcl_ros/OrganizedStatisticalOutlierRemovalConfig.h"
46 
47 namespace jsk_pcl_ros
48 {
49  class OrganizedStatisticalOutlierRemoval: public jsk_topic_tools::DiagnosticNodelet
50  {
51  public:
52  typedef jsk_pcl_ros::OrganizedStatisticalOutlierRemovalConfig Config;
53  typedef pcl::PointXYZRGB PointT;
55  protected:
57  // methods
59  virtual void onInit();
60 
61  virtual void subscribe();
62 
63  virtual void unsubscribe();
64 
65  virtual void configCallback (Config &config, uint32_t level);
66 
67  virtual void filter(const sensor_msgs::PointCloud2::ConstPtr& msg);
68 
69  virtual void updateDiagnostic(
71 
73  // ROS variables
79 
81  // Diagnostics variables
83 
85  // Parameters
87  bool keep_organized_;
88  bool negative_;
89  double std_mul_;
90  int mean_k_;
91  private:
92 
93  };
94 }
95 
96 #endif
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::mutex_
boost::mutex mutex_
Definition: organized_statistical_outlier_removal.h:142
ros::Publisher
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::unsubscribe
virtual void unsubscribe()
Definition: organized_statistical_outlier_removal_nodelet.cpp:100
boost::shared_ptr
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::subscribe
virtual void subscribe()
Definition: organized_statistical_outlier_removal_nodelet.cpp:95
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::PointT
pcl::PointXYZRGB PointT
Definition: organized_statistical_outlier_removal.h:117
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::onInit
virtual void onInit()
Definition: organized_statistical_outlier_removal_nodelet.cpp:82
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::keep_organized_
bool keep_organized_
Definition: organized_statistical_outlier_removal.h:151
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::pub_
ros::Publisher pub_
Definition: organized_statistical_outlier_removal.h:140
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::mean_k_
int mean_k_
Definition: organized_statistical_outlier_removal.h:154
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::std_mul_
double std_mul_
Definition: organized_statistical_outlier_removal.h:153
pcl_nodelet.h
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::updateDiagnostic
virtual void updateDiagnostic(diagnostic_updater::DiagnosticStatusWrapper &stat)
Definition: organized_statistical_outlier_removal_nodelet.cpp:258
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::configCallback
virtual void configCallback(Config &config, uint32_t level)
Definition: organized_statistical_outlier_removal_nodelet.cpp:105
jsk_pcl_ros
Definition: add_color_from_image.h:51
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::filter
virtual void filter(const sensor_msgs::PointCloud2::ConstPtr &msg)
Definition: organized_statistical_outlier_removal_nodelet.cpp:119
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::Config
jsk_pcl_ros::OrganizedStatisticalOutlierRemovalConfig Config
Definition: organized_statistical_outlier_removal.h:116
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::sub_
ros::Subscriber sub_
Definition: organized_statistical_outlier_removal.h:139
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::srv_
boost::shared_ptr< dynamic_reconfigure::Server< Config > > srv_
Definition: organized_statistical_outlier_removal.h:141
diagnostic_updater::DiagnosticStatusWrapper
mutex
boost::mutex mutex
global mutex.
Definition: depth_camera_error_visualization.cpp:86
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::negative_
bool negative_
Definition: organized_statistical_outlier_removal.h:152
pose_with_covariance_sample.msg
msg
Definition: pose_with_covariance_sample.py:22
jsk_pcl_ros::OrganizedStatisticalOutlierRemoval::OrganizedStatisticalOutlierRemoval
OrganizedStatisticalOutlierRemoval()
Definition: organized_statistical_outlier_removal_nodelet.cpp:76
ros::Subscriber


jsk_pcl_ros
Author(s): Yohei Kakiuchi
autogenerated on Tue Jan 7 2025 04:05:45