Skip to content

Commit

Permalink
Update planar arm tests to use safety factor
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDab committed Sep 29, 2023
1 parent b5ff95b commit f033804
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/control/PlanarArmControllerTest.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "../../src/control/PlanarArmController.h"
#include "../../src/Constants.h"

#include <catch2/catch.hpp>

Expand All @@ -9,5 +10,10 @@ using namespace std::chrono_literals;
TEST_CASE("Test Planar Arm Controller", "[control][planararmcontroller]") {
navtypes::Vectord<2> vec({0, 0});
kinematics::PlanarArmKinematics<2> kin_obj(vec, vec, vec, 0.0, 0);
PlanarArmController<2> foo({0, 0}, kin_obj);
PlanarArmController<2> foo({0, 0}, kin_obj, Constants::arm::SAFETY_FACTOR);
}

TEST_CASE("Test Planar Arm Safety Factor", "[control][planararmcontroller]") {
PlanarArmController<2> foo({0, 0}, kin_obj, Constants::arm::SAFETY_FACTOR);

}

0 comments on commit f033804

Please sign in to comment.