27 #include <gtest/gtest.h>
28 #include <boost/serialization/shared_ptr.hpp>
49 g.
setName(
"kuka_lbr_iiwa_14_r820");
51 Link base_link(
"base_link");
52 Link link_1(
"link_1");
53 Link link_2(
"link_2");
54 Link link_3(
"link_3");
55 Link link_4(
"link_4");
56 Link link_5(
"link_5");
57 Link link_6(
"link_6");
58 Link link_7(
"link_7");
61 EXPECT_TRUE(g.
addLink(base_link));
71 Joint joint_1(
"joint_a1");
74 joint_1.
type = JointType::FIXED;
77 Joint joint_2(
"joint_a2");
80 joint_2.
type = JointType::REVOLUTE;
81 joint_2.
limits = std::make_shared<JointLimits>(-7, 7, 0, 5, 10, 20);
84 Joint joint_3(
"joint_a3");
88 joint_3.
type = JointType::REVOLUTE;
89 joint_3.
limits = std::make_shared<JointLimits>(-7, 7, 0, 5, 10, 20);
92 Joint joint_4(
"joint_a4");
96 joint_4.
type = JointType::REVOLUTE;
97 joint_4.
limits = std::make_shared<JointLimits>(-7, 7, 0, 5, 10, 20);
100 Joint joint_5(
"joint_a5");
104 joint_5.
type = JointType::REVOLUTE;
105 joint_5.
limits = std::make_shared<JointLimits>(-7, 7, 0, 5, 10, 20);
108 Joint joint_6(
"joint_a6");
112 joint_6.
type = JointType::REVOLUTE;
113 joint_6.
limits = std::make_shared<JointLimits>(-7, 7, 0, 5, 10, 20);
116 Joint joint_7(
"joint_a7");
120 joint_7.
type = JointType::REVOLUTE;
121 joint_7.
limits = std::make_shared<JointLimits>(-7, 7, 0, 5, 10, 20);
124 Joint joint_tool0(
"joint_tool0");
127 joint_tool0.
type = JointType::FIXED;
128 EXPECT_TRUE(g.
addJoint(joint_tool0));
135 std::string path = locator.
locateResource(
"package://tesseract_support/urdf/lbr_iiwa_14_r820.srdf")->getFilePath();
137 auto srdf = std::make_shared<SRDFModel>();
138 srdf->initFile(scene_graph, path, locator);
149 tesseract_common::testSerialization<KinematicsInformation>(srdf->kinematics_information,
"KinematicsInformation");
158 tesseract_common::testSerialization<SRDFModel>(*srdf,
"SRDFModel");
161 int main(
int argc,
char** argv)
163 testing::InitGoogleTest(&argc, argv);
165 return RUN_ALL_TESTS();