MCPcopy Create free account
hub / github.com/ANYbotics/grid_map / convolve1D

Function convolve1D

grid_map_core/src/CubicInterpolation.cpp:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76double convolve1D(double t, const Eigen::Vector4d &functionValues)
77{
78 const Eigen::Vector4d tVector(1.0, t, t * t, t * t * t);
79 const Eigen::Vector4d temp = cubicInterpolationConvolutionMatrix
80 * functionValues;
81 const double retVal = 0.5 * tVector.transpose() * temp;
82 return retVal;
83}
84
85bool assembleFunctionValueMatrix(const GridMap &gridMap, const std::string &layer,
86 const Position &queriedPosition, FunctionValueMatrix *data)

Calls

no outgoing calls

Tested by

no test coverage detected