Skip to content
Snippets Groups Projects
Commit b04912ac authored by Jeremie Deray's avatar Jeremie Deray
Browse files

add FeatureDiffDrive

parent 0d0b3ca8
No related branches found
No related tags found
1 merge request!142Diff drive 2
This commit is part of merge request !142. Comments created here will be created in the context of that merge request.
......@@ -436,6 +436,9 @@ ENDIF(OpenCV_FOUND)
# Add the capture sub-directory
ADD_SUBDIRECTORY(captures)
# Add the features sub-directory
ADD_SUBDIRECTORY(features)
# Add the processor sub-directory
ADD_SUBDIRECTORY(processors)
......@@ -483,6 +486,7 @@ ADD_LIBRARY(${PROJECT_NAME}
${SRCS_BASE}
${SRCS}
${SRCS_CAPTURE}
${SRCS_FEATURE}
${SRCS_SENSOR}
${SRCS_PROCESSOR}
#${SRCS_DTASSC}
......@@ -536,6 +540,8 @@ INSTALL(FILES ${HDRS}
# DESTINATION include/iri-algorithms/wolf/data_association)
INSTALL(FILES ${HDRS_CAPTURE}
DESTINATION include/iri-algorithms/wolf/captures)
INSTALL(FILES ${HDRS_FEATURE}
DESTINATION include/iri-algorithms/wolf/features)
INSTALL(FILES ${HDRS_SENSOR}
DESTINATION include/iri-algorithms/wolf/sensors)
INSTALL(FILES ${HDRS_PROCESSOR}
......
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
# Forward var to parent scope
SET(HDRS_FEATURE ${HDRS_FEATURE}
${CMAKE_CURRENT_SOURCE_DIR}/feature_diff_drive.h PARENT_SCOPE)
SET(SRCS_FEATURE ${SRCS_FEATURE}
${CMAKE_CURRENT_SOURCE_DIR}/feature_diff_drive.cpp PARENT_SCOPE)
#include "feature_diff_drive.h"
namespace wolf {
FeatureDiffDrive::FeatureDiffDrive(const Eigen::VectorXs& _delta_preintegrated,
const Eigen::MatrixXs& _delta_preintegrated_covariance,
const Eigen::VectorXs& _diff_drive_factors,
const Eigen::MatrixXs& _jacobian_diff_drive_factors) :
FeatureBase("DIFF DRIVE", _delta_preintegrated, _delta_preintegrated_covariance),
diff_drive_factors_(_diff_drive_factors),
jacobian_diff_drive_factors_(_jacobian_diff_drive_factors)
{
//
}
const Eigen::VectorXs& FeatureDiffDrive::getJacobianFactor() const
{
return jacobian_diff_drive_factors_;
}
} /* namespace wolf */
/**
* \file feature_diff_drive.h
*
* Created on: Oct 27, 2016
* \author: Jeremie Deray
*/
#ifndef _WOLF_FEATURE_DIFF_DRIVE_H_
#define _WOLF_FEATURE_DIFF_DRIVE_H_
//Wolf includes
#include "../feature_base.h"
namespace wolf {
WOLF_PTR_TYPEDEFS(FeatureDiffDrive)
class FeatureDiffDrive : public FeatureBase
{
public:
FeatureDiffDrive(const Eigen::VectorXs& _delta_preintegrated,
const Eigen::MatrixXs& _delta_preintegrated_covariance,
const Eigen::VectorXs& _diff_drive_factors,
const Eigen::MatrixXs& _jacobian_diff_drive_factors);
virtual ~FeatureDiffDrive() = default;
const Eigen::VectorXs& getJacobianFactor() const;
protected:
Eigen::VectorXs diff_drive_factors_;
Eigen::VectorXs jacobian_diff_drive_factors_;
};
} /* namespace wolf */
#endif /* _WOLF_FEATURE_DIFF_DRIVE_H_ */
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