Go to the documentation of this file.
26 #include <SimoxUtility/math/pose.h>
49 simox::math::transform_position(
pose.matrix(), length * Eigen::Vector3f::UnitY()))
56 core::Graph::ConstVertex vertex,
60 if (res.pose.has_value())
62 draw(layer, vertex.attrib().getName(), res.pose.value());
69 if (this->pose.has_value())
71 layer.
add(this->pose->draw(name,
pose));
81 const std::string& targetName,
85 return viz::Arrow(sourceName +
" -> " + targetName)
93 core::Graph::ConstEdge edge,
101 if (src.pose.has_value() && tar.pose.has_value() && arrow.has_value())
103 layer.
add(arrow->draw(edge.source().attrib().getName(),
104 edge.target().attrib().getName(),
113 if (vertex.has_value())
115 for (core::Graph::ConstVertex
v : graph.vertices())
117 vertex->draw(layer,
v, info);
120 if (edge.has_value())
122 for (core::Graph::ConstEdge e : graph.edges())
124 edge->draw(layer, e, info);
void draw(viz::Layer &layer, core::Graph::ConstEdge edge, visu::ObjectParserInfo info) const
const std::vector< ObjectInfo > & info
void resolveLocation(Graph::Vertex &vertex, const aron::data::DictPtr &locationData)
void draw(viz::Layer &layer, const core::Graph &graph, visu::ObjectParserInfo info) const
Vertex target(const detail::edge_base< Directed, Vertex > &e, const PCG &)
This file is part of ArmarX.
viz::Arrow draw(const std::string &sourceName, const std::string &targetName, const core::Pose &source, const core::Pose &target) const
void add(ElementT const &element)
viz::Arrow draw(const std::string &name, const core::Pose &pose) const
std::optional< Pose > pose
void draw(viz::Layer &layer, core::Graph::ConstVertex vertex, visu::ObjectParserInfo info) const
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
viz::Pose draw(const std::string &name, const core::Pose &pose) const
Arrow & fromTo(const Eigen::Vector3f &from, const Eigen::Vector3f &to)
double v(double t, double v0, double a0, double j)
const objpose::ObjectPoseMap & objects
DerivedT & color(Color color)
std::optional< ForwardArrow > forwardArrow