DART  6.10.1
Types.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011-2021, The DART development contributors
3  * All rights reserved.
4  *
5  * The list of contributors can be found at:
6  * https://github.com/dartsim/dart/blob/master/LICENSE
7  *
8  * This file is provided under the following "BSD-style" License:
9  * Redistribution and use in source and binary forms, with or
10  * without modification, are permitted provided that the following
11  * conditions are met:
12  * * Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  * * Redistributions in binary form must reproduce the above
15  * copyright notice, this list of conditions and the following
16  * disclaimer in the documentation and/or other materials provided
17  * with the distribution.
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
19  * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
23  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
26  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
29  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30  * POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifndef DART_UTILS_MJCF_DETAIL_TYPES_HPP_
34 #define DART_UTILS_MJCF_DETAIL_TYPES_HPP_
35 
36 #include "dart/common/Platform.hpp"
37 
38 namespace dart {
39 namespace utils {
40 namespace MjcfParser {
41 namespace detail {
42 
47 enum class Angle
48 {
50  DEGREE = 0,
51 
53  RADIAN = 1,
54 };
55 
61 enum class Coordinate
62 {
64  LOCAL = 0,
65  GLOBAL = 1,
66 };
67 
71 enum class Integrator
72 {
74  EULER = 0,
75  RK4 = 1,
76 };
77 
78 enum class InertiaFromGeom
79 {
80 #if DART_OS_WINDOWS
81  IFG_FALSE,
82  IFG_TRUE,
83  IFG_AUTO,
84 #else
85  FALSE,
86  TRUE,
87  AUTO,
88 #endif
89 };
90 
91 enum class CollisionType
92 {
93  ALL,
94  PREDEFINED,
95  DYNAMIC,
96 };
97 
98 enum class ConeType
99 {
100  PYRAMIDAL,
101  ELLIPTIC,
102 };
103 
104 enum class JacobianType
105 {
106  DENSE,
107  SPARSE,
108  AUTO,
109 };
110 
111 enum class SolverType
112 {
113  PGS,
114  CG,
115  NEWTON,
116 };
117 
118 enum class GeomType
119 {
120  PLANE,
121  HFIELD,
123  SPHERE,
124  CAPSULE,
125  ELLIPSOID,
126  CYLINDER,
127  BOX,
128  MESH,
129 };
130 
131 enum class JointType
132 {
133  FREE,
134  BALL,
135  SLIDE,
137  HINGE,
138 };
139 
140 } // namespace detail
141 } // namespace MjcfParser
142 } // namespace utils
143 } // namespace dart
144 
145 #endif // #ifndef DART_UTILS_MJCF_DETAIL_TYPES_HPP_
InertiaFromGeom
Definition: Types.hpp:79
JacobianType
Definition: Types.hpp:105
SolverType
Definition: Types.hpp:112
JointType
Definition: Types.hpp:132
Integrator
This attribute selects the numerical integrator to be used.
Definition: Types.hpp:72
GeomType
Definition: Types.hpp:119
ConeType
Definition: Types.hpp:99
Coordinate
This attribute specifies whether the frame positions and orientations in the MJCF model are expressed...
Definition: Types.hpp:62
CollisionType
Definition: Types.hpp:92
Angle
This attribute specifies whether the angles in the MJCF model are expressed in units of degrees or ra...
Definition: Types.hpp:48
@ DEGREE
[Default] Always use for MJCF
Definition: BulletCollisionDetector.cpp:65