Go to the documentation of this file.
24 #include <SimoxUtility/color/Color.h>
25 #include <SimoxUtility/math/pose.h>
26 #include <VirtualRobot/VirtualRobot.h>
47 simox::math::transform_position(
pose.matrix(), length * Eigen::Vector3f::UnitY()))
54 core::Graph::ConstVertex vertex,
58 if (res.pose.has_value())
60 draw(layer, vertex.attrib().getName(), res.pose.value());
67 if (this->pose.has_value())
69 layer.
add(this->pose->draw(name,
pose));
79 const std::string& targetName,
83 return viz::Arrow(sourceName +
" -> " + targetName)
91 core::Graph::ConstEdge edge,
99 if (src.pose.has_value() && tar.pose.has_value() && arrow.has_value())
101 layer.
add(arrow->draw(edge.source().attrib().getName(),
102 edge.target().attrib().getName(),
111 if (vertex.has_value())
113 for (core::Graph::ConstVertex
v : graph.vertices())
115 vertex->draw(layer,
v, info);
118 if (edge.has_value())
120 for (core::Graph::ConstEdge e : graph.edges())
122 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