SuperDex Physics C++ API
Loading...
Searching...
No Matches
articulated_body_params_inl.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19// PLEASE DO NOT ADD OTHER INCLUDES HERE. This header is included in the mochi_physics public API.
20#include "articulated_body_params.h" // Reverse include for intellisense
21
22namespace superdex {
23
25 return offset;
26}
27
29 return offset + transSize;
30}
31
32inline int ArticulatedDofInfo::GetSize() const {
33 return transSize + rotSize;
34}
35
36} // namespace superdex
int transSize
Number of translational DoFs for this joint.
int GetTransOffset() const
Offset of this joint's translational DoFs in the flattened DoF array.
int GetSize() const
Total number of DoFs for this joint.
int offset
Offset of this joint's DoFs in the flattened DoF array.
int rotSize
Number of rotational DoFs for this joint.
int GetRotOffset() const
Offset of this joint's rotational DoFs in the flattened DoF array.