Deprecating laser_processor.h
git-svn-id: https://code.ros.org/svn/ros-pkg/stacks/laser_pipeline/trunk@24121 eb33c2ac-9c88-4c90-87e0-44a10359b0c3
This commit is contained in:
parent
0d240201c4
commit
b5c8e966f2
|
|
@ -58,6 +58,8 @@
|
||||||
|
|
||||||
#include "tf/transform_datatypes.h"
|
#include "tf/transform_datatypes.h"
|
||||||
|
|
||||||
|
#warning laser_geometry/laser_processor.h has been deprecated
|
||||||
|
|
||||||
namespace laser_geometry
|
namespace laser_geometry
|
||||||
{
|
{
|
||||||
//! A struct representing a single sample from the laser.
|
//! A struct representing a single sample from the laser.
|
||||||
|
|
@ -70,15 +72,17 @@ namespace laser_geometry
|
||||||
float x;
|
float x;
|
||||||
float y;
|
float y;
|
||||||
|
|
||||||
static Sample* Extract(int ind, const sensor_msgs::LaserScan& scan);
|
__attribute__ ((deprecated)) static Sample* Extract(int ind, const sensor_msgs::LaserScan& scan);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Sample() {};
|
__attribute__ ((deprecated)) Sample() {};
|
||||||
};
|
};
|
||||||
|
|
||||||
//! The comparator allowing the creation of an ordered "SampleSet"
|
//! The comparator allowing the creation of an ordered "SampleSet"
|
||||||
struct CompareSample
|
struct CompareSample
|
||||||
{
|
{
|
||||||
|
__attribute__ ((deprecated)) CompareSample() {}
|
||||||
|
|
||||||
inline bool operator() (const Sample* a, const Sample* b)
|
inline bool operator() (const Sample* a, const Sample* b)
|
||||||
{
|
{
|
||||||
return (a->index < b->index);
|
return (a->index < b->index);
|
||||||
|
|
@ -90,6 +94,7 @@ namespace laser_geometry
|
||||||
class SampleSet : public std::set<Sample*, CompareSample>
|
class SampleSet : public std::set<Sample*, CompareSample>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
__attribute__ ((deprecated)) SampleSet() {}
|
||||||
|
|
||||||
~SampleSet() { clear(); }
|
~SampleSet() { clear(); }
|
||||||
|
|
||||||
|
|
@ -112,7 +117,7 @@ namespace laser_geometry
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
ScanMask() : filled(false), angle_min(0), angle_max(0), size(0) { }
|
__attribute__ ((deprecated)) ScanMask() : filled(false), angle_min(0), angle_max(0), size(0) { }
|
||||||
|
|
||||||
inline void clear() { mask_.clear(); filled = false; }
|
inline void clear() { mask_.clear(); filled = false; }
|
||||||
|
|
||||||
|
|
@ -132,7 +137,7 @@ namespace laser_geometry
|
||||||
|
|
||||||
std::list<SampleSet*>& getClusters() { return clusters_; }
|
std::list<SampleSet*>& getClusters() { return clusters_; }
|
||||||
|
|
||||||
ScanProcessor(const sensor_msgs::LaserScan& scan, ScanMask& mask_, float mask_threshold = 0.03);
|
__attribute__ ((deprecated)) ScanProcessor(const sensor_msgs::LaserScan& scan, ScanMask& mask_, float mask_threshold = 0.03);
|
||||||
|
|
||||||
~ScanProcessor();
|
~ScanProcessor();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user