Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
std::ostream & | operator<< (std::ostream &os, const Vec1D &vec) |
| Overload ostream operator for double vectors. More...
|
|
std::ostream & | operator<< (std::ostream &os, const geometry_msgs::Pose &pose) |
| Overload ostream operator for robot poses. More...
|
|
double | singularPoseJointFormula (double joint1) |
| Computes joint2 from joint1 such that singular position with px,py=0 is reached. More...
|
|
| TEST_F (PrbtIKFastPluginTest, testSingularities) |
| Tests if the IKFast plugin can solve the IK problem for specific singular poses. More...
|
|
typedef std::vector<double> Vec1D |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Vec1D & |
vec |
|
) |
| |
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const geometry_msgs::Pose & |
pose |
|
) |
| |
double singularPoseJointFormula |
( |
double |
joint1 | ) |
|
Tests if the IKFast plugin can solve the IK problem for specific singular poses.
Test Sequence:
- Define a set of test joint angles. Perform the following steps for all data.
- Compute pose via forward kinematics.
- Solve IK problem.
- Compute deviation of solutions to the test joint angles.
Expected Results:
- -
- One pose is obtained.
- At least one solution is obtained.
- At least one solution is close to the test joint angles.
Definition at line 147 of file tst_prbt_ikfast_manipulator_plugin.cpp.
constexpr double DEFAULT_SEARCH_DISCRETIZATION {0.01} |
|
static |
const std::string GROUP_PARAM {"group"} |
|
static |
constexpr double IKFAST_TOLERANCE {0.001} |
|
static |
const std::string JOINT_NAMES_PARAM {"joint_names"} |
|
static |
const std::string KINEMATICS_BASE_CLASS {"kinematics::KinematicsBase"} |
|
static |
constexpr double L1 {0.3500} |
|
static |
constexpr double L2 {0.3070} |
|
static |
const std::string MOVEIT_CORE_PACKAGE {"moveit_core"} |
|
static |
constexpr unsigned int NUM_JOINTS {6} |
|
static |
const std::string PLUGIN_NAME_PARAM {"ik_plugin_name"} |
|
static |
const std::string ROBOT_DESCRIPTION_PARAM {"robot_description"} |
|
static |
const std::string ROOT_LINK_PARAM {"root_link"} |
|
static |
const std::string TIP_LINK_PARAM {"tip_link"} |
|
static |