Skip to content

Commit

Permalink
Update ConstVelKF.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SunFireKing authored Feb 19, 2024
1 parent b6f2ef7 commit 0982a1f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ff_estimate/ConstVelKF.cpp
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
//Dock node and Filter
#include "ff_estimate/base_mocap_estimator.hpp"


#include <rclcpp/rclcpp.hpp>
#include <rclcpp/time.hpp>
#include <geometry_msgs/msg/pose_stamped.hpp>
#include <geometry_msgs/msg/pose2_d.hpp>
#include <geometry_msgs/msg/pose2_d_stamped.hpp>
#include <geometry_msgs/msg/twist.hpp>
#include <geometry_msgs/msg/twist_stamped.hpp>
#include <std_msgs/msg/header.hpp>
#include <optional>
#include <Eigen/Dense>

using Eigen::MatrixXd;
using Eigen::VectorXd;
using ff_msgs::msg::FreeFlyerState;
using ff_msgs::msg::Pose2DStamped;
using ff_msgs::msg::Pose2D;

using namespace std
using namespace std;

class ConstantVelKF {
public:
Eigen::MatrixXd Q;
Eigen::MatrixXd R;
double MAX_DT;

ConstantAccelKF(Eigen::VectorXd x0, Eigen::MatrixXd P0, int dim = 3, int angle_idx = 2)
ConstantVelKF(Eigen::VectorXd x0, Eigen::MatrixXd P0, int dim = 3, int angle_idx = 2)
: x(x0), P(P0), dim(dim), angle_idx(angle_idx) {
Q = Eigen::MatrixXd::Identity(2 * dim, 2 * dim);
R = Eigen::MatrixXd::Identity(dim, dim) * 2.4445e-3, 1.2527e-3, 4.0482e-3;
Expand Down

0 comments on commit 0982a1f

Please sign in to comment.