Skip to content
Snippets Groups Projects
Commit 48bcf797 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Use weak pointer

parent a3ad1a3e
No related branches found
No related tags found
1 merge request!248Feature/proc motion
...@@ -104,7 +104,7 @@ class CaptureMotion : public CaptureBase ...@@ -104,7 +104,7 @@ class CaptureMotion : public CaptureBase
Eigen::VectorXs data_; ///< Motion data in form of vector mandatory Eigen::VectorXs data_; ///< Motion data in form of vector mandatory
Eigen::MatrixXs data_cov_; ///< Motion data covariance Eigen::MatrixXs data_cov_; ///< Motion data covariance
MotionBuffer buffer_; ///< Buffer of motions between this Capture and the next one. MotionBuffer buffer_; ///< Buffer of motions between this Capture and the next one.
FrameBasePtr origin_frame_ptr_; ///< Pointer to the origin frame of the motion FrameBaseWPtr origin_frame_ptr_; ///< Pointer to the origin frame of the motion
}; };
inline const Eigen::VectorXs& CaptureMotion::getData() const inline const Eigen::VectorXs& CaptureMotion::getData() const
...@@ -158,7 +158,7 @@ inline Eigen::VectorXs CaptureMotion::correctDelta(const VectorXs& _delta, const ...@@ -158,7 +158,7 @@ inline Eigen::VectorXs CaptureMotion::correctDelta(const VectorXs& _delta, const
inline FrameBasePtr CaptureMotion::getOriginFramePtr() inline FrameBasePtr CaptureMotion::getOriginFramePtr()
{ {
return origin_frame_ptr_; return origin_frame_ptr_.lock();
} }
inline void CaptureMotion::setOriginFramePtr(FrameBasePtr _frame_ptr) inline void CaptureMotion::setOriginFramePtr(FrameBasePtr _frame_ptr)
......
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