Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDab committed Oct 17, 2023
1 parent dfa279f commit 03cc605
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/control/PlanarArmControllerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ TEST_CASE("Test Planar Arm Safety Factor", "[control][planararmcontroller]") {
// Instantiate PlanarArmController.
PlanarArmController<2> foo({0, 0}, kin_obj, Constants::arm::SAFETY_FACTOR);

// Attempt to straighten out the EE all the way, violating max length safety factor.
// Attempt to straighten out the end effector all the way, violating max length safety factor.
// This should cause the EE to be repositioned to fit the length constraint.
foo.set_setpoint({0.0, 0.0});
navtypes::Vectord<2> limitedSetpoint = foo.get_setpoint(robot::types::dataclock::now());
assertApprox({9.5, 0.0}, limitedSetpoint);
assertApprox({9.5, 0.0}, foo.get_setpoint(robot::types::dataclock::now()));

// Try setting the joints to be orthogonal but within max length, such that:
// - End effector position is (6,4), which implies that:
Expand Down

0 comments on commit 03cc605

Please sign in to comment.