8 #include "VirtualRobot/Visualization/CoinVisualization/CoinVisualizationFactory.h"
9 #include "VirtualRobot/Visualization/CoinVisualization/CoinVisualizationNode.h"
12 #include <Inventor/nodes/SoSeparator.h>
24 std::vector<VirtualRobot::VisualizationNodePtr> visualizations = std::vector<VirtualRobot::VisualizationNodePtr>();
25 CoinVisualizationNodePtr parent = CoinVisualizationNodePtr(
new CoinVisualizationNode(
new SoSeparator()));
26 for (
unsigned int i = 0; i < points.size() - 1; i++)
29 PosePtr pose2 =
PosePtr(
new Pose(points[i + 1]->position, points[i + 1]->orientation));
30 VisualizationNodePtr node;
33 node = CoinVisualizationFactory().createLine(pose1->toEigen(), pose2->toEigen(), 7.375, 254.0, 1, 1);
37 node = CoinVisualizationFactory().createLine(pose1->toEigen(), pose2->toEigen(), 7.375, 0, 254.0, 0);
39 parent->attachVisualization(
"", node);