@@ -79,7 +79,8 @@ GTEST_TEST(LCSFactoryTest, GetNumContactVariables) {
7979 EXPECT_THROW (LCSFactory::GetNumContactVariables (options), std::out_of_range);
8080}
8181
82- class LCSFactoryPivotingTest : public ::testing::TestWithParam<std::string> {
82+ class LCSFactoryPivotingTest
83+ : public ::testing::TestWithParam<std::tuple<std::string, int >> {
8384 protected:
8485 void SetUp () override {
8586 std::tie (plant, scene_graph) =
@@ -135,8 +136,9 @@ class LCSFactoryPivotingTest : public ::testing::TestWithParam<std::string> {
135136 VectorXd::Zero (plant->num_positions () + plant->num_velocities ());
136137 drake::VectorX<double > input = VectorXd::Zero (plant->num_actuators ());
137138
138- options.contact_model = GetParam ();
139- contact_model = GetContactModelMap ().at (GetParam ());
139+ options.contact_model = std::get<0 >(GetParam ());
140+ contact_model = GetContactModelMap ().at (options.contact_model );
141+ options.num_friction_directions = std::get<1 >(GetParam ());
140142 lcs_factory = std::make_unique<LCSFactory>(
141143 *plant, plant_context, *plant_autodiff, *plant_context_autodiff,
142144 contact_pairs, options);
@@ -256,8 +258,11 @@ TEST_P(LCSFactoryPivotingTest, FixSomeModes) {
256258}
257259
258260INSTANTIATE_TEST_SUITE_P (ContactModelTests, LCSFactoryPivotingTest,
259- ::testing::Values (" frictionless_spring" ,
260- " stewart_and_trinkle" , " anitescu" ));
261+ ::testing::Values (std::tuple(" frictionless_spring" , 0 ),
262+ std::tuple(" stewart_and_trinkle" , 1 ),
263+ std::tuple(" stewart_and_trinkle" , 2 ),
264+ std::tuple(" anitescu" , 1 ),
265+ std::tuple(" anitescu" , 2 )));
261266
262267} // namespace test
263268} // namespace multibody
0 commit comments