Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
character_state.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#include <momentum/math/fwd.h>
14
15namespace momentum {
16
22template <typename T>
26
28
30
34
39
41
44 explicit CharacterStateT(const CharacterStateT& other);
45
47
50
52
54
62 const Character& referenceCharacter,
63 bool updateMesh = true,
64 bool updateCollision = true);
65
74 const Character& referenceCharacter,
75 bool updateMesh = true,
76 bool updateCollision = true,
77 bool applyLimits = true);
78
94 void set(
96 const Character& referenceCharacter,
97 bool updateMesh = true,
98 bool updateCollision = true,
99 bool applyLimits = true);
100
105 const Character& referenceCharacter,
106 bool updateMesh = true,
107 bool updateCollision = true);
108};
109
110} // namespace momentum
::std::unique_ptr< CollisionGeometryState > CollisionGeometryState_u
Definition fwd.h:134
::std::unique_ptr< Mesh > Mesh_u
Definition fwd.h:24
SkeletonStateT< float > SkeletonState
Definition fwd.h:282
CharacterParametersT< float > CharacterParameters
Definition types.h:168
CharacterStateT & operator=(CharacterStateT &&rhs) noexcept
CharacterStateT(const CharacterParameters &parameters, const Character &referenceCharacter, bool updateMesh=true, bool updateCollision=true, bool applyLimits=true)
Creates a character state by applying parameters to referenceCharacter.
void setBindPose(const Character &referenceCharacter, bool updateMesh=true, bool updateCollision=true)
Sets the character state to referenceCharacter's bind pose.
CharacterStateT(const Character &referenceCharacter, bool updateMesh=true, bool updateCollision=true)
Creates a character state in referenceCharacter's bind pose.
void set(const CharacterParameters &parameters, const Character &referenceCharacter, bool updateMesh=true, bool updateCollision=true, bool applyLimits=true)
Updates the character state by applying parameters to referenceCharacter.
CharacterStateT & operator=(const CharacterStateT &rhs)=delete
Copy assignment is deleted; use the explicit copy constructor instead.
CharacterStateT(const CharacterStateT &other)
Creates a deep copy of another character state, including owned meshState and collisionState.
CharacterStateT(CharacterStateT &&c) noexcept
CollisionGeometryState_u collisionState
A character model with skeletal structure, mesh, and optional components.
Definition character.h:32
Tracks the current world positions of locators in a skeleton.