Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
jerk_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:
32 explicit JerkSequenceErrorFunctionT(const Character& character);
33
36 void setTargetWeights(const Eigen::VectorX<T>& weights) {
38 }
39
42 void setTargetJerk(const Eigen::Vector3<T>& jerk) {
44 }
45
48 void setTargetJerks(const std::vector<Eigen::Vector3<T>>& jerks) {
50 }
51
56
57 [[nodiscard]] const Eigen::VectorX<T>& getTargetWeights() const {
59 }
60
61 [[nodiscard]] const std::vector<Eigen::Vector3<T>>& getTargetJerks() const {
63 }
64};
65
66} // namespace momentum
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.
void setTargetJerks(const std::vector< Eigen::Vector3< T > > &jerks)
Set per-joint target jerks.
JerkSequenceErrorFunctionT(const Skeleton &skel, const ParameterTransform &pt)
void setTargetJerk(const Eigen::Vector3< T > &jerk)
Set a single target jerk applied to all joints.
void reset()
Reset weights to ones and target jerks to zero.
const std::vector< Eigen::Vector3< T > > & getTargetJerks() const
const Eigen::VectorX< T > & getTargetWeights() const
void setTargetWeights(const Eigen::VectorX< T > &weights)
Set the per-joint weights for the jerk error.
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