98 fs::path root = repo_root();
99 if (!fs::exists(root /
"third_party/menagerie")) {
100 GTEST_SKIP() <<
"third_party/menagerie/ not found";
103 mjcf_ = (root /
"third_party/menagerie/kinova_gen3/gen3.xml").
string();
116 double surface_z = table.
pos[2];
118 std::vector<mj_kdl::SceneObject> objects;
120 make_box(
"red_cube", 0.35, 0.10, 0.03, 0.03, 0.03, 1.0f, 0.2f, 0.2f, surface_z)
123 make_box(
"green_cube", 0.35, -0.10, 0.03, 0.03, 0.03, 0.2f, 1.0f, 0.2f, surface_z)
126 make_box(
"blue_cube", 0.35, 0.30, 0.04, 0.04, 0.04, 0.2f, 0.2f, 1.0f, surface_z)
129 make_sphere(
"orange_sphere", -0.20, 0.20, 0.035, 1.0f, 0.55f, 0.0f, surface_z)
132 make_sphere(
"purple_sphere", -0.20, -0.20, 0.025, 0.7f, 0.0f, 0.9f, surface_z)
145 robot.
pos[2] = surface_z;
156 fk_ = std::make_unique<KDL::ChainFkSolverPos_recursive>(
s_.
chain);
160 for (
unsigned i = 0; i <
n_; ++i)
q_home_(i) = kHomePose[i];