Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaybd committed Apr 9, 2024
1 parent 5683fbd commit 12224ef
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/control/PlanarArmControllerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ TEST_CASE("Test Planar Arm Controller Double Init", "[control][planararmcontroll
navtypes::Vectord<2> segLens({6.0, 4.0});
navtypes::Vectord<2> minAngles({-M_PI, -M_PI});
navtypes::Vectord<2> maxAngles({M_PI, M_PI});
auto fk =
std::make_shared<kinematics::PlanarArmFK<2>>(segLens, minAngles, maxAngles);
auto ik =
std::make_shared<kinematics::FabrikSolver2D<2>>(fk, 0.0, 0);
auto fk = std::make_shared<kinematics::PlanarArmFK<2>>(segLens, minAngles, maxAngles);
auto ik = std::make_shared<kinematics::FabrikSolver2D<2>>(fk, 0.0, 0);
kinematics::ArmKinematics<2, 2> kin_obj(fk, ik);
PlanarArmController<2> foo(kin_obj, Constants::arm::SAFETY_FACTOR);
REQUIRE(foo.tryInitController({0, M_PI_2}));
Expand All @@ -53,10 +51,8 @@ TEST_CASE("Test Planar Arm Safety Factor Violation", "[control][planararmcontrol
navtypes::Vectord<2> segLens({6.0, 4.0});
navtypes::Vectord<2> minAngles({-M_PI, -M_PI});
navtypes::Vectord<2> maxAngles({M_PI, M_PI});
auto fk =
std::make_shared<kinematics::PlanarArmFK<2>>(segLens, minAngles, maxAngles);
auto ik =
std::make_shared<kinematics::FabrikSolver2D<2>>(fk, 0.0, 0);
auto fk = std::make_shared<kinematics::PlanarArmFK<2>>(segLens, minAngles, maxAngles);
auto ik = std::make_shared<kinematics::FabrikSolver2D<2>>(fk, 0.0, 0);
kinematics::ArmKinematics<2, 2> kin_obj(fk, ik);
PlanarArmController<2> foo(kin_obj, Constants::arm::SAFETY_FACTOR);
REQUIRE_FALSE(foo.tryInitController({0, 0}));
Expand Down

0 comments on commit 12224ef

Please sign in to comment.