AdvancedVisualizationFactory.cpp
Go to the documentation of this file.
2 
4 
6 
7 
8 using namespace armarx;
9 using namespace VirtualRobot;
10 
11 
12 VisualizationNodePtr AdvancedVisualizationFactory::createCurve(std::vector<PoseBasePtr> points, bool highlight)
13 {
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++)
17  {
18  PosePtr pose1 = PosePtr(new Pose(points[i]->position, points[i]->orientation));
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);
22  }
23  return parent;
24 }
25 
AdvancedVisualizationFactory.h
armarx::navigation::core::Pose
Eigen::Isometry3f Pose
Definition: basic_types.h:31
VirtualRobot
Definition: FramedPose.h:43
armarx::PosePtr
IceInternal::Handle< Pose > PosePtr
Definition: Pose.h:306
Pose.h
IceInternal::Handle< Pose >
Logging.h
armarx::AdvancedVisualizationFactory::createCurve
virtual VirtualRobot::VisualizationNodePtr createCurve(const std::vector< PoseBasePtr > transition, bool highligt)
createCurve creates the visualization of a curve that goes through the Waypoints in transition
Definition: AdvancedVisualizationFactory.cpp:12
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28