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

Function getFirstOrderDerivatives

grid_map_core/src/CubicInterpolation.cpp:334–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334bool getFirstOrderDerivatives(const Matrix &layerData, const IndicesMatrix &indices, Dim2D dim,
335 double resolution, DataMatrix *derivatives)
336{
337 derivatives->topLeft_ = firstOrderDerivativeAt(layerData, indices.topLeft_, dim, resolution);
338 derivatives->topRight_ = firstOrderDerivativeAt(layerData, indices.topRight_, dim, resolution);
339 derivatives->bottomLeft_ = firstOrderDerivativeAt(layerData, indices.bottomLeft_, dim,
340 resolution);
341 derivatives->bottomRight_ = firstOrderDerivativeAt(layerData, indices.bottomRight_, dim,
342 resolution);
343 return true;
344}
345
346double firstOrderDerivativeAt(const Matrix &layerData, const Index &index, Dim2D dim,
347 double resolution)

Callers 1

Calls 1

firstOrderDerivativeAtFunction · 0.85

Tested by

no test coverage detected