37 #include <gtest/gtest.h>
44 const std::string& group_name =
"")
46 if (group_name.empty() && expected.
distance(actual) <= epsilon)
48 return ::testing::AssertionSuccess();
52 return ::testing::AssertionSuccess();
54 std::stringstream msg;
55 msg <<
" expected: " << expected <<
" actual: " << actual;
57 return ::testing::AssertionFailure() << msg.str();
Representation of a robot's state. This includes position, velocity, acceleration and effort.
const JointModelGroup * getJointModelGroup(const std::string &group) const
Get the model of a particular joint group.
double distance(const RobotState &other) const
Return the sum of joint distances to "other" state. An L1 norm. Only considers active joints.
::testing::AssertionResult isAtExpectedPosition(const moveit::core::RobotState &expected, const moveit::core::RobotState &actual, const double epsilon, const std::string &group_name="")