Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Velocity-Implicit Euler Fixed Steps. Simplified code and added descri…
…ptions.
- Loading branch information
Showing
5 changed files
with
865 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
systems/analysis/test/velocity_implicit_euler_integrator_test.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "drake/systems/analysis/velocity_implicit_euler_integrator.h" | ||
|
||
#include <gtest/gtest.h> | ||
|
||
#include "drake/common/test_utilities/expect_throws_message.h" | ||
#include "drake/common/unused.h" | ||
#include "drake/systems/analysis/test_utilities/cubic_scalar_system.h" | ||
#include "drake/systems/analysis/test_utilities/discontinuous_spring_mass_damper_system.h" | ||
#include "drake/systems/analysis/test_utilities/implicit_integrator_test.h" | ||
#include "drake/systems/analysis/test_utilities/linear_scalar_system.h" | ||
#include "drake/systems/analysis/test_utilities/quadratic_scalar_system.h" | ||
#include "drake/systems/analysis/test_utilities/robertson_system.h" | ||
#include "drake/systems/analysis/test_utilities/spring_mass_damper_system.h" | ||
#include "drake/systems/analysis/test_utilities/stationary_system.h" | ||
#include "drake/systems/analysis/test_utilities/stiff_double_mass_spring_system.h" | ||
#include "drake/systems/plants/spring_mass_system/spring_mass_system.h" | ||
|
||
namespace drake { | ||
namespace systems { | ||
namespace analysis_test { | ||
|
||
// Test Velocity-Implicit Euler integrator on common implicit tests. | ||
typedef ::testing::Types<VelocityImplicitEulerIntegrator<double>> MyTypes; | ||
INSTANTIATE_TYPED_TEST_SUITE_P(My, ImplicitIntegratorTest, MyTypes); | ||
|
||
} // namespace analysis_test | ||
|
||
} // namespace systems | ||
} // namespace drake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include "drake/systems/analysis/velocity_implicit_euler_integrator.h" | ||
|
||
#include "drake/common/autodiff.h" | ||
|
||
DRAKE_DEFINE_CLASS_TEMPLATE_INSTANTIATIONS_ON_DEFAULT_NONSYMBOLIC_SCALARS( | ||
class ::drake::systems::VelocityImplicitEulerIntegrator) | ||
|
Oops, something went wrong.