Class ScanShadowsFilter

Inheritance Relationships

Base Type

  • public filters::FilterBase< sensor_msgs::msg::LaserScan >

Class Documentation

class ScanShadowsFilter : public filters::FilterBase<sensor_msgs::msg::LaserScan>

ScanShadowsFilter is a simple filter that filters shadow points in a laser scan line

Public Functions

inline ScanShadowsFilter()
inline bool configure()

Configure the filter from XML

inline virtual ~ScanShadowsFilter()
inline bool update(const sensor_msgs::msg::LaserScan &scan_in, sensor_msgs::msg::LaserScan &scan_out)

Filter shadow points based on 3 global parameters: min_angle, max_angle and window. {min,max}_angle specify the allowed angle interval (in degrees) between the created lines (see getAngleWithViewPoint). Window specifies how many consecutive measurements to take into account for one point.

Parameters:
  • scan_in – the input LaserScan message

  • scan_out – the output LaserScan message

inline rcl_interfaces::msg::SetParametersResult reconfigureCB(std::vector<rclcpp::Parameter> parameters)

Public Members

double laser_max_range_
double min_angle_
double max_angle_
int window_
int neighbors_
bool remove_shadow_start_point_
ScanShadowDetector shadow_detector_