Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen committed Jul 17, 2024
1 parent 61ef9e3 commit 94899bf
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ TESSERACT_COMMON_IGNORE_WARNINGS_POP
#include <tesseract_environment/environment.h>
#include <tesseract_motion_planners/core/types.h>
#include <tesseract_motion_planners/simple/simple_motion_planner.h>
#include <tesseract_motion_planners/simple/profile/simple_planner_fixed_size_assign_plan_profile.h>
#include <tesseract_motion_planners/simple/profile/simple_planner_fixed_size_assign_no_ik_plan_profile.h>
#include <tesseract_command_language/joint_waypoint.h>
#include <tesseract_command_language/cartesian_waypoint.h>
#include <tesseract_command_language/move_instruction.h>
Expand All @@ -43,7 +43,7 @@ TESSERACT_COMMON_IGNORE_WARNINGS_POP
using namespace tesseract_environment;
using namespace tesseract_planning;

class TesseractPlanningSimplePlannerFixedSizeAssignPositionUnit : public ::testing::Test
class TesseractPlanningSimplePlannerFixedSizeAssignNoIKPositionUnit : public ::testing::Test
{
protected:
Environment::Ptr env_;
Expand All @@ -66,7 +66,7 @@ class TesseractPlanningSimplePlannerFixedSizeAssignPositionUnit : public ::testi
}
};

TEST_F(TesseractPlanningSimplePlannerFixedSizeAssignPositionUnit, JointCartesian_AssignJointPosition) // NOLINT
TEST_F(TesseractPlanningSimplePlannerFixedSizeAssignNoIKPositionUnit, JointCartesian_AssignJointPosition) // NOLINT
{
PlannerRequest request;
request.env = env_;
Expand All @@ -81,7 +81,7 @@ TEST_F(TesseractPlanningSimplePlannerFixedSizeAssignPositionUnit, JointCartesian

InstructionPoly instr3;

SimplePlannerFixedSizeAssignPlanProfile profile(10, 10);
SimplePlannerFixedSizeAssignNoIKPlanProfile profile(10, 10);
std::vector<MoveInstructionPoly> move_instructions =
profile.generate(instr1, instr1_seed, instr2, instr3, request, tesseract_common::ManipulatorInfo());
EXPECT_EQ(move_instructions.size(), 10);
Expand All @@ -108,7 +108,7 @@ TEST_F(TesseractPlanningSimplePlannerFixedSizeAssignPositionUnit, JointCartesian
EXPECT_EQ(mi.getPathProfile(), instr2.getPathProfile());
}

TEST_F(TesseractPlanningSimplePlannerFixedSizeAssignPositionUnit, CartesianJoint_AssignJointPosition) // NOLINT
TEST_F(TesseractPlanningSimplePlannerFixedSizeAssignNoIKPositionUnit, CartesianJoint_AssignJointPosition) // NOLINT
{
PlannerRequest request;
request.env = env_;
Expand All @@ -123,7 +123,7 @@ TEST_F(TesseractPlanningSimplePlannerFixedSizeAssignPositionUnit, CartesianJoint

InstructionPoly instr3;

SimplePlannerFixedSizeAssignPlanProfile profile(10, 10);
SimplePlannerFixedSizeAssignNoIKPlanProfile profile(10, 10);
std::vector<MoveInstructionPoly> move_instructions =
profile.generate(instr1, instr1_seed, instr2, instr3, request, tesseract_common::ManipulatorInfo());
EXPECT_EQ(move_instructions.size(), 10);
Expand All @@ -149,7 +149,7 @@ TEST_F(TesseractPlanningSimplePlannerFixedSizeAssignPositionUnit, CartesianJoint
EXPECT_EQ(mi.getPathProfile(), instr2.getPathProfile());
}

TEST_F(TesseractPlanningSimplePlannerFixedSizeAssignPositionUnit, CartesianCartesian_AssignJointPosition) // NOLINT
TEST_F(TesseractPlanningSimplePlannerFixedSizeAssignNoIKPositionUnit, CartesianCartesian_AssignJointPosition) // NOLINT
{
PlannerRequest request;
request.env = env_;
Expand All @@ -164,7 +164,7 @@ TEST_F(TesseractPlanningSimplePlannerFixedSizeAssignPositionUnit, CartesianCarte

InstructionPoly instr3;

SimplePlannerFixedSizeAssignPlanProfile profile(10, 10);
SimplePlannerFixedSizeAssignNoIKPlanProfile profile(10, 10);
std::vector<MoveInstructionPoly> move_instructions =
profile.generate(instr1, instr1_seed, instr2, instr3, request, tesseract_common::ManipulatorInfo());
auto fwd_kin = env_->getJointGroup(manip_info_.manipulator);
Expand Down

0 comments on commit 94899bf

Please sign in to comment.