28 #include <SimoxUtility/math/convert/mat4f_to_rpy.h>
29 #include <SimoxUtility/math/convert/rad_to_deg.h>
40 if (attrib().edgesChanged)
44 for (
auto vertex : vertices())
46 if (vertex.attrib().changed)
54 std::optional<GuiGraph::Vertex>
57 for (
auto vertex : vertices())
59 if (vertex.attrib().tableWidgetItem == item)
67 std::map<QTableWidgetItem*, GuiGraph::Vertex>
70 std::map<QTableWidgetItem*, GuiGraph::Vertex> map;
72 for (
auto vertex : vertices())
74 if (vertex.attrib().tableWidgetItem !=
nullptr)
76 map[vertex.attrib().tableWidgetItem] = vertex;
83 std::map<QTableWidgetItem*, GuiGraph::Edge>
86 std::map<QTableWidgetItem*, GuiGraph::Edge> map;
88 for (
auto edge : edges())
90 if (edge.attrib().tableWidgetItem !=
nullptr)
92 map[edge.attrib().tableWidgetItem] = edge;
102 return simox::math::rad_to_deg(simox::math::mat4f_to_rpy(pose.matrix())(2));
108 return simox::math::rad_to_deg(simox::math::mat4f_to_rpy(pose.matrix())(2));
115 for (
auto v : nav.vertices())
117 gui.addVertex(
v.objectID(), {v.attrib()});
119 for (
auto e : nav.edges())
121 gui.addEdge(e.sourceObjectID(), e.targetObjectID(), {e.attrib()});
130 for (
auto v : gui.vertices())
132 nav.addVertex(
v.objectID(), {v.attrib()});
134 for (
auto e : gui.edges())
136 nav.addEdge(e.sourceObjectID(), e.targetObjectID(), {e.attrib()});