Skip to content

Commit

Permalink
Fix readability-identifier-naming
Browse files Browse the repository at this point in the history
  • Loading branch information
henningkayser committed Sep 21, 2021
1 parent c6a31e9 commit 997ca07
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions moveit_kinematics/test/test_kinematics_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ TEST_F(KinematicsTest, unitIK)
};

std::vector<double> ground_truth, pose_values;
constexpr char POSE_TYPE_RELATIVE[] = "relative";
constexpr char POSE_TYPE_ABSOLUTE[] = "absolute";
constexpr char pose_type_relative[] = "relative";
constexpr char pose_type_absolute[] = "absolute";

/* process tests definitions on parameter server of the form
pose_1:
Expand Down Expand Up @@ -512,13 +512,13 @@ TEST_F(KinematicsTest, unitIK)
ASSERT_TRUE(parsePose(pose_values, pose)) << "Failed to parse 'pose' vector in: " << pose_name;
std::string pose_type = "POSE_TYPE_RELATIVE";
node_->get_parameter_or(pose_param + ".type", pose_type, pose_type);
if (pose_type == POSE_TYPE_RELATIVE)
if (pose_type == pose_type_relative)
goal = goal * pose;
else if (pose_type == POSE_TYPE_ABSOLUTE)
else if (pose_type == pose_type_absolute)
goal = pose;
else
FAIL() << "Found invalid 'type' in " << pose_name << ": should be one of '" << POSE_TYPE_RELATIVE << "' or '"
<< POSE_TYPE_ABSOLUTE << "'";
FAIL() << "Found invalid 'type' in " << pose_name << ": should be one of '" << pose_type_relative << "' or '"
<< pose_type_absolute << "'";

std::string desc;
{
Expand Down

0 comments on commit 997ca07

Please sign in to comment.