14 std::vector<VirtualRobot::VisualizationNodePtr> visualizations = std::vector<VirtualRobot::VisualizationNodePtr>();
15 VisualizationNodePtr parent = VisualizationNodePtr(
new VisualizationNode());
16 for (
unsigned int i = 0; i < points.size() - 1; i++)
19 PosePtr pose2 =
PosePtr(
new Pose(points[i + 1]->position, points[i + 1]->orientation));
20 VisualizationNodePtr node = this->createLine(pose1->toEigen(), pose2->toEigen());
21 parent->attachVisualization(
"", node);