Skip to content
Snippets Groups Projects
Commit 685ddf54 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Update to change in Simox

parent ba6e6a5c
No related branches found
No related tags found
1 merge request!242Add Prediction Interface and linear position prediction model to Object Memory
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#include <SimoxUtility/algorithm/string.h> #include <SimoxUtility/algorithm/string.h>
#include <SimoxUtility/json.h> #include <SimoxUtility/json.h>
#include <SimoxUtility/math/pose/pose.h> #include <SimoxUtility/math/pose/pose.h>
#include <SimoxUtility/math/regression/linear3d.h> #include <SimoxUtility/math/regression/linear.h>
#include <Eigen/Geometry> #include <Eigen/Geometry>
#include <Eigen/Dense> #include <Eigen/Dense>
...@@ -634,10 +634,10 @@ namespace armarx::armem::server::obj::instance ...@@ -634,10 +634,10 @@ namespace armarx::armem::server::obj::instance
Eigen::Vector3d prediction; Eigen::Vector3d prediction;
{ {
using simox::math::LinearRegression3D; using simox::math::LinearRegression3d;
const bool inputOffset = false; const bool inputOffset = false;
const LinearRegression3D model = LinearRegression3D::Fit(timestampsSec, positions, inputOffset);
const LinearRegression3d model = LinearRegression3d::Fit(timestampsSec, positions, inputOffset);
const Time predictionTime = armarx::fromIce<Time>(request.timestamp); const Time predictionTime = armarx::fromIce<Time>(request.timestamp);
prediction = model.predict((predictionTime - timeOrigin).toSecondsDouble()); prediction = model.predict((predictionTime - timeOrigin).toSecondsDouble());
......
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