opensurgsim
DeformableTestsUtility.h
Go to the documentation of this file.
1 // Copyright 2013, SimQuest Solutions Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
17 
18 #ifndef SURGSIM_PHYSICS_UNITTESTS_DEFORMABLETESTSUTILITY_H
19 #define SURGSIM_PHYSICS_UNITTESTS_DEFORMABLETESTSUTILITY_H
20 
21 #include <memory>
22 
23 #include "SurgSim/Math/OdeEquation.h"
24 #include "SurgSim/Math/OdeState.h"
25 #include "SurgSim/Math/Matrix.h"
26 #include "SurgSim/Math/Vector.h"
27 
28 namespace SurgSim
29 {
30 namespace Physics
31 {
32 
33 template <class T>
34 void testOdeEquationUpdate(std::shared_ptr<T> rep,
35  const SurgSim::Math::OdeState& state, const SurgSim::Math::Vector& expectedF,
36  const SurgSim::Math::Matrix& expectedM, const SurgSim::Math::Matrix& expectedD,
37  const SurgSim::Math::Matrix& expectedK);
38 
39 }
40 }
41 
42 #include "SurgSim/Physics/UnitTests/DeformableTestsUtility-inl.h"
43 
44 #endif // SURGSIM_PHYSICS_UNITTESTS_DEFORMABLETESTSUTILITY_H
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
The state of an ode of 2nd order of the form with boundary conditions.
Definition: OdeState.h:38
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
A dynamic size column vector.
Definition: Vector.h:68
Definitions of small fixed-size square matrix types.
Definitions of small fixed-size vector types.
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > Matrix
A dynamic size matrix.
Definition: Matrix.h:65