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

add FeatureDiffDrive

parent bd920864
No related branches found
No related tags found
No related merge requests found
...@@ -438,6 +438,9 @@ ENDIF(OpenCV_FOUND) ...@@ -438,6 +438,9 @@ ENDIF(OpenCV_FOUND)
# Add the capture sub-directory # Add the capture sub-directory
ADD_SUBDIRECTORY(captures) ADD_SUBDIRECTORY(captures)
# Add the features sub-directory
ADD_SUBDIRECTORY(features)
# Add the processor sub-directory # Add the processor sub-directory
ADD_SUBDIRECTORY(processors) ADD_SUBDIRECTORY(processors)
...@@ -485,6 +488,7 @@ ADD_LIBRARY(${PROJECT_NAME} ...@@ -485,6 +488,7 @@ ADD_LIBRARY(${PROJECT_NAME}
${SRCS_BASE} ${SRCS_BASE}
${SRCS} ${SRCS}
${SRCS_CAPTURE} ${SRCS_CAPTURE}
${SRCS_FEATURE}
${SRCS_SENSOR} ${SRCS_SENSOR}
${SRCS_PROCESSOR} ${SRCS_PROCESSOR}
#${SRCS_DTASSC} #${SRCS_DTASSC}
...@@ -538,6 +542,8 @@ INSTALL(FILES ${HDRS} ...@@ -538,6 +542,8 @@ INSTALL(FILES ${HDRS}
# DESTINATION include/iri-algorithms/wolf/data_association) # DESTINATION include/iri-algorithms/wolf/data_association)
INSTALL(FILES ${HDRS_CAPTURE} INSTALL(FILES ${HDRS_CAPTURE}
DESTINATION include/iri-algorithms/wolf/captures) DESTINATION include/iri-algorithms/wolf/captures)
INSTALL(FILES ${HDRS_FEATURE}
DESTINATION include/iri-algorithms/wolf/features)
INSTALL(FILES ${HDRS_SENSOR} INSTALL(FILES ${HDRS_SENSOR}
DESTINATION include/iri-algorithms/wolf/sensors) DESTINATION include/iri-algorithms/wolf/sensors)
INSTALL(FILES ${HDRS_PROCESSOR} 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