Go to the documentation of this file. 1 #include <console_bridge/console.h>
21 std::string
toString(
bool b) {
return b ?
"true" :
"false"; }
28 g.
setName(
"kuka_lbr_iiwa_14_r820");
30 Link base_link(
"base_link");
31 Link link_1(
"link_1");
32 Link link_2(
"link_2");
33 Link link_3(
"link_3");
34 Link link_4(
"link_4");
35 Link link_5(
"link_5");
36 Link link_6(
"link_6");
37 Link link_7(
"link_7");
50 Joint base_joint(
"base_joint");
56 Joint joint_1(
"joint_1");
62 Joint joint_2(
"joint_2");
69 Joint joint_3(
"joint_3");
76 Joint joint_4(
"joint_4");
83 Joint joint_5(
"joint_5");
90 Joint joint_6(
"joint_6");
97 Joint joint_tool0(
"joint_tool0");
106 std::string srdf_file =
107 locator.
locateResource(
"package://tesseract_support/urdf/lbr_iiwa_14_r820.srdf")->getFilePath();
114 srdf.
initFile(g, srdf_file, locator);
116 catch (
const std::exception& e)
118 CONSOLE_BRIDGE_logError(
"Failed to parse SRDF.");
133 CONSOLE_BRIDGE_logInform(
"ACM Number of entries: %d", acm_entries.size());
std::unordered_map< tesseract_common::LinkNamesPair, std::string, tesseract_common::PairHash > AllowedCollisionEntries
void addAllowedCollision(const std::string &link_name1, const std::string &link_name2, const std::string &reason)
Eigen::Isometry3d parent_to_joint_origin_transform
std::shared_ptr< tesseract_common::AllowedCollisionMatrix > getAllowedCollisionMatrix()
Representation of semantic information about the robot.
bool addLink(const Link &link, bool replace_allowed=false)
Tesseract SRDF utility functions.
void initFile(const tesseract_scene_graph::SceneGraph &scene_graph, const std::string &filename, const tesseract_common::ResourceLocator &locator)
Load Model given a filename.
std::shared_ptr< const AllowedCollisionMatrix > ConstPtr
std::string child_link_name
bool addJoint(const Joint &joint)
void printNestedException(const std::exception &e, int level=0)
std::shared_ptr< Resource > locateResource(const std::string &url) const override
void setName(const std::string &name)
std::string toString(const ShortestPath &path)
void processSRDFAllowedCollisions(tesseract_scene_graph::SceneGraph &scene_graph, const SRDFModel &srdf_model)
Add allowed collisions to the scene graph.
std::string parent_link_name
tesseract_srdf
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:02:04