Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
acceleration_sequence_error_function.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#pragma once
9
13
14namespace momentum {
15
28template <typename T>
30 public:
33
36 void setTargetWeights(const Eigen::VectorX<T>& weights) {
38 }
39
43 void setTargetAcceleration(const Eigen::Vector3<T>& acceleration) {
45 }
46
49 void setTargetAccelerations(const std::vector<Eigen::Vector3<T>>& accelerations) {
51 }
52
57
58 [[nodiscard]] const Eigen::VectorX<T>& getTargetWeights() const {
60 }
61
62 [[nodiscard]] const std::vector<Eigen::Vector3<T>>& getTargetAccelerations() const {
64 }
65};
66
67} // namespace momentum
void setTargetWeights(const Eigen::VectorX< T > &weights)
Set the per-joint weights for the acceleration error.
AccelerationSequenceErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt)
void setTargetAcceleration(const Eigen::Vector3< T > &acceleration)
Set a single target acceleration applied to all joints.
void reset()
Reset weights to ones and target accelerations to zero.
void setTargetAccelerations(const std::vector< Eigen::Vector3< T > > &accelerations)
Set per-joint target accelerations.
const std::vector< Eigen::Vector3< T > > & getTargetAccelerations() const
void setTargetValues(const std::vector< Eigen::Vector3< T > > &targetValues)
Set per-joint target values.
void setTargetValue(const Eigen::Vector3< T > &targetValue)
Set a single target value applied to all joints.
FiniteDifferenceSequenceErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt, const std::vector< T > &stencilCoefficients)
const std::vector< Eigen::Vector3< T > > & getTargetValues() const
void setTargetWeights(const Eigen::VectorX< T > &weights)
Set the per-joint weights for the derivative error.
void reset()
Reset weights to ones and target values to zero.
SkeletonT< float > Skeleton
Definition fwd.h:263
ParameterTransformT< float > ParameterTransform
Definition fwd.h:244
A character model with skeletal structure, mesh, and optional components.
Definition character.h:32