Skip to content
Snippets Groups Projects
Commit 581cfca8 authored by Andreu Corominas-Murtra's avatar Andreu Corominas-Murtra Committed by Joan Solà Ortega
Browse files

Typedef Ptr defined for all CaptureX classes.

parent d98e180b
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ namespace wolf {
//forward declaration to typedef class pointers
class CaptureImage;
typedef std::shared_ptr<CaptureImage> CaptureImagePtr;
typedef std::shared_ptr<const CaptureImage> CaptureImageConst;
typedef std::shared_ptr<const CaptureImage> CaptureImageConstPtr;
typedef std::weak_ptr<CaptureImage> CaptureImageWPtr;
/**
......
......@@ -5,6 +5,12 @@
#include "capture_motion.h"
namespace wolf {
//forward declaration to typedef class pointers
class CaptureIMU;
typedef std::shared_ptr<CaptureIMU> CaptureIMUPtr;
typedef std::shared_ptr<const CaptureIMU> CaptureIMUConstPtr;
typedef std::weak_ptr<CaptureIMU> CaptureIMUWPtr;
class CaptureIMU : public CaptureMotion
{
......
......@@ -16,10 +16,15 @@ class SensorLaser2D;
namespace wolf {
//forward declaration to typedef class pointers
class CaptureLaser2D;
typedef std::shared_ptr<CaptureLaser2D> CaptureLaser2DPtr;
typedef std::shared_ptr<const CaptureLaser2D> CaptureLaser2DConstPtr;
typedef std::weak_ptr<CaptureLaser2D> CaptureLaser2DWPtr;
class CaptureLaser2D : public CaptureBase
{
public:
typedef std::shared_ptr<CaptureLaser2D> Ptr;
public:
/** \brief Constructor with ranges
**/
......
......@@ -19,6 +19,13 @@
#include <utility>
namespace wolf {
//forward declaration to typedef class pointers
class CaptureMotion;
typedef std::shared_ptr<CaptureMotion> CaptureMotionPtr;
typedef std::shared_ptr<const CaptureMotion> CaptureMotionConst;
typedef std::weak_ptr<CaptureMotion> CaptureMotionWPtr;
/** \brief Base class for motion Captures.
*
......
......@@ -7,6 +7,13 @@
namespace wolf {
//forward declaration to typedef class pointers
class CaptureVoid;
typedef std::shared_ptr<CaptureVoid> CaptureVoidPtr;
typedef std::shared_ptr<const CaptureVoid> CaptureVoidConstPtr;
typedef std::weak_ptr<CaptureVoid> CaptureVoidWPtr;
//class CaptureVoid
class CaptureVoid : public CaptureBase
{
......
......@@ -117,7 +117,7 @@ ConstraintBasePtr ProcessorTrackerFeatureCorner::createConstraint(FeatureBasePtr
return std::make_shared<ConstraintCorner2D>(_feature_ptr, landmark_ptr);
}
void ProcessorTrackerFeatureCorner::extractCorners(CaptureLaser2D::Ptr _capture_laser_ptr,
void ProcessorTrackerFeatureCorner::extractCorners(CaptureLaser2DPtr _capture_laser_ptr,
FeatureBaseList& _corner_list)
{
// TODO: sort corners by bearing
......
......@@ -116,7 +116,7 @@ class ProcessorTrackerFeatureCorner : public ProcessorTrackerFeature
private:
void extractCorners(CaptureLaser2D::Ptr _capture_laser_ptr, FeatureBaseList& _corner_list);
void extractCorners(CaptureLaser2DPtr _capture_laser_ptr, FeatureBaseList& _corner_list);
};
......
......@@ -222,7 +222,7 @@ bool ProcessorTrackerLandmarkCorner::voteForKeyFrame()
return false;
}
void ProcessorTrackerLandmarkCorner::extractCorners(CaptureLaser2D::Ptr _capture_laser_ptr,
void ProcessorTrackerLandmarkCorner::extractCorners(CaptureLaser2DPtr _capture_laser_ptr,
FeatureBaseList& _corner_list)
{
// TODO: sort corners by bearing
......
......@@ -162,7 +162,7 @@ class ProcessorTrackerLandmarkCorner : public ProcessorTrackerLandmark
private:
void extractCorners(CaptureLaser2D::Ptr _capture_laser_ptr, FeatureBaseList& _corner_list);
void extractCorners(CaptureLaser2DPtr _capture_laser_ptr, FeatureBaseList& _corner_list);
void expectedFeature(LandmarkBasePtr _landmark_ptr, Eigen::Vector4s& expected_feature_,
Eigen::Matrix3s& expected_feature_cov_);
......
......@@ -314,7 +314,7 @@ bool ProcessorTrackerLandmarkPolyline::voteForKeyFrame()
return false;
}
void ProcessorTrackerLandmarkPolyline::extractPolylines(CaptureLaser2D::Ptr _capture_laser_ptr,
void ProcessorTrackerLandmarkPolyline::extractPolylines(CaptureLaser2DPtr _capture_laser_ptr,
FeatureBaseList& _polyline_list)
{
//std::cout << "ProcessorTrackerLandmarkPolyline::extractPolylines: " << std::endl;
......
......@@ -185,7 +185,7 @@ class ProcessorTrackerLandmarkPolyline : public ProcessorTrackerLandmark
private:
void extractPolylines(CaptureLaser2D::Ptr _capture_laser_ptr, FeatureBaseList& _polyline_list);
void extractPolylines(CaptureLaser2DPtr _capture_laser_ptr, FeatureBaseList& _polyline_list);
void expectedFeature(LandmarkBasePtr _landmark_ptr, Eigen::MatrixXs& expected_feature_,
Eigen::MatrixXs& expected_feature_cov_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment