Tesseract
Motion Planning Environment
|
#include <tesseract_common/macros.h>
#include <gtest/gtest.h>
#include <fstream>
#include "kinematics_test_utils.h"
#include "iiwa7_ikfast_kinematics.h"
#include <tesseract_kinematics/kdl/kdl_fwd_kin_chain.h>
Functions | |
pose | setIdentity () |
pose | translation ()[0]=0.223 |
EXPECT_EQ (iiwa_inv_kin->getSolverName(), IKFAST_INV_KIN_CHAIN_SOLVER_NAME) | |
EXPECT_EQ (iiwa_inv_kin->numJoints(), 7) | |
EXPECT_EQ (iiwa_inv_kin->getBaseLinkName(), base_link_name) | |
EXPECT_EQ (iiwa_inv_kin->getTipLinkNames().size(), 1) | |
EXPECT_EQ (iiwa_inv_kin->getTipLinkNames()[0], tip_link_name) | |
EXPECT_EQ (iiwa_inv_kin->getJointNames(), joint_names) | |
EXPECT_TRUE (iiwa_inv_kin2 !=nullptr) | |
EXPECT_EQ (iiwa_inv_kin2->getSolverName(), IKFAST_INV_KIN_CHAIN_SOLVER_NAME) | |
EXPECT_EQ (iiwa_inv_kin2->numJoints(), 7) | |
EXPECT_EQ (iiwa_inv_kin2->getBaseLinkName(), base_link_name) | |
EXPECT_EQ (iiwa_inv_kin2->getTipLinkNames().size(), 1) | |
EXPECT_EQ (iiwa_inv_kin2->getTipLinkNames()[0], tip_link_name) | |
EXPECT_EQ (iiwa_inv_kin2->getJointNames(), joint_names) | |
int | main (int argc, char **argv) |
Variables | |
Eigen::VectorXd | seed = Eigen::VectorXd::Zero(7) |
auto | scene_graph = getSceneGraphIIWA7() |
std::string | base_link_name = "link_0" |
std::string | tip_link_name = "ikfast_tcp_link" |
std::vector< std::string > | joint_names { "joint_1", "joint_2", "joint_3", "joint_4", "joint_5", "joint_6", "joint_7" } |
std::vector< std::vector< double > > | free_joint_states = { { -2.0 }, { -1.0 }, { 0.0 }, { 1.0 }, { 2.0 } } |
auto | iiwa_inv_kin |
InverseKinematics::Ptr | iiwa_inv_kin2 = iiwa_inv_kin->clone() |
EXPECT_EQ | ( | iiwa_inv_kin-> | getBaseLinkName(), |
base_link_name | |||
) |
EXPECT_EQ | ( | iiwa_inv_kin-> | getJointNames(), |
joint_names | |||
) |
EXPECT_EQ | ( | iiwa_inv_kin-> | getSolverName(), |
IKFAST_INV_KIN_CHAIN_SOLVER_NAME | |||
) |
EXPECT_EQ | ( | iiwa_inv_kin-> | getTipLinkNames).size(, |
1 | |||
) |
EXPECT_EQ | ( | iiwa_inv_kin-> | getTipLinkNames()[0], |
tip_link_name | |||
) |
EXPECT_EQ | ( | iiwa_inv_kin-> | numJoints(), |
7 | |||
) |
EXPECT_EQ | ( | iiwa_inv_kin2-> | getBaseLinkName(), |
base_link_name | |||
) |
EXPECT_EQ | ( | iiwa_inv_kin2-> | getJointNames(), |
joint_names | |||
) |
EXPECT_EQ | ( | iiwa_inv_kin2-> | getSolverName(), |
IKFAST_INV_KIN_CHAIN_SOLVER_NAME | |||
) |
EXPECT_EQ | ( | iiwa_inv_kin2-> | getTipLinkNames).size(, |
1 | |||
) |
EXPECT_EQ | ( | iiwa_inv_kin2-> | getTipLinkNames()[0], |
tip_link_name | |||
) |
EXPECT_EQ | ( | iiwa_inv_kin2-> | numJoints(), |
7 | |||
) |
EXPECT_TRUE | ( | iiwa_inv_kin2 ! | = nullptr | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
pose setIdentity | ( | ) |
|
pure virtual |
std::string base_link_name = "link_0" |
std::vector<std::vector<double> > free_joint_states = { { -2.0 }, { -1.0 }, { 0.0 }, { 1.0 }, { 2.0 } } |
runInvKinTest * iiwa_inv_kin |
runInvKinTest * iiwa_inv_kin2 = iiwa_inv_kin->clone() |
std::vector<std::string> joint_names { "joint_1", "joint_2", "joint_3", "joint_4", "joint_5", "joint_6", "joint_7" } |
KDLFwdKinChain fwd_kin * scene_graph = getSceneGraphIIWA7() |
Eigen::VectorXd seed = Eigen::VectorXd::Zero(7) |
std::string tip_link_name = "ikfast_tcp_link" |