DebugDrawerToArViz.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package RobotAPI::ArmarXObjects::DebugDrawerToArViz
17  * @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
18  * @date 2020
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 #include <map>
26 #include <mutex>
27 
28 #include <RobotAPI/interface/visualization/DebugDrawerToArViz.h>
30 
31 #include "BlackWhitelist.h"
32 
33 
34 namespace armarx
35 {
36 
37  /**
38  * @brief Passes updates from DebugDrawerInterface to ArViz.
39  */
40  class DebugDrawerToArViz : virtual public armarx::DebugDrawerToArvizInterface
41  {
42  public:
43 
44  void setArViz(viz::Client arviz);
45 
46 
47  // BlackWhitelistTopic interface
48  public:
49  void updateBlackWhitelist(const BlackWhitelistUpdate& update, const Ice::Current& = Ice::emptyCurrent) override;
50 
51 
52  // DebugDrawerInterface interface
53  public:
54 
55  void exportScene(const std::string& filename, const Ice::Current& = Ice::emptyCurrent) override;
56  void exportLayer(const std::string& filename, const std::string& layerName, const Ice::Current& = Ice::emptyCurrent) override;
57 
58  void setPoseVisu(const std::string& layer, const std::string& name, const PoseBasePtr& globalPose, const Ice::Current& = Ice::emptyCurrent) override;
59  void setScaledPoseVisu(const std::string& layer, const std::string& name, const PoseBasePtr& globalPose, Ice::Float scale, const Ice::Current& = Ice::emptyCurrent) override;
60  void setLineVisu(const std::string& layer, const std::string& name, const Vector3BasePtr& globalPosition1, const Vector3BasePtr& globalPosition2, Ice::Float lineWidth, const DrawColor& color, const Ice::Current& = Ice::emptyCurrent) override;
61  void setLineSetVisu(const std::string& layer, const std::string& name, const DebugDrawerLineSet& lineSet, const Ice::Current& = Ice::emptyCurrent) override;
62  void setBoxVisu(const std::string& layer, const std::string& name, const PoseBasePtr& globalPose, const Vector3BasePtr& dimensions, const DrawColor& color, const Ice::Current& = Ice::emptyCurrent) override;
63  void setTextVisu(const std::string& layer, const std::string& name, const std::string& text, const Vector3BasePtr& globalPosition, const DrawColor& color, Ice::Int size, const Ice::Current& = Ice::emptyCurrent) override;
64  void setSphereVisu(const std::string& layer, const std::string& name, const Vector3BasePtr& globalPosition, const DrawColor& color, Ice::Float radius, const Ice::Current& = Ice::emptyCurrent) override;
65  void setPointCloudVisu(const std::string& layer, const std::string& name, const DebugDrawerPointCloud& pointCloud, const Ice::Current& = Ice::emptyCurrent) override;
66  void setColoredPointCloudVisu(const std::string& layer, const std::string& name, const DebugDrawerColoredPointCloud& pointCloud, const Ice::Current& = Ice::emptyCurrent) override;
67  void set24BitColoredPointCloudVisu(const std::string& layer, const std::string& name, const DebugDrawer24BitColoredPointCloud& pointCloud, const Ice::Current& = Ice::emptyCurrent) override;
68  void setPolygonVisu(const std::string& layer, const std::string& name, const PolygonPointList& polygonPoints, const DrawColor& colorInner, const DrawColor& colorBorder, Ice::Float lineWidth, const Ice::Current& = Ice::emptyCurrent) override;
69  void setTriMeshVisu(const std::string& layer, const std::string& name, const DebugDrawerTriMesh& triMesh, const Ice::Current& = Ice::emptyCurrent) override;
70  void setArrowVisu(const std::string& layer, const std::string& name, const Vector3BasePtr& position, const Vector3BasePtr& direction, const DrawColor& color, Ice::Float length, Ice::Float width, const Ice::Current& = Ice::emptyCurrent) override;
71  void setCylinderVisu(const std::string& layer, const std::string& name, const Vector3BasePtr& globalPosition, const Vector3BasePtr& direction, Ice::Float length, Ice::Float radius, const DrawColor& color, const Ice::Current& = Ice::emptyCurrent) override;
72  void setCircleArrowVisu(const std::string& layer, const std::string& name, const Vector3BasePtr& globalPosition, const Vector3BasePtr& directionVec, Ice::Float radius, Ice::Float circleCompletion, Ice::Float width, const DrawColor& color, const Ice::Current& = Ice::emptyCurrent) override;
73 
74  void setRobotVisu(const std::string& layer, const std::string& name, const std::string& robotFile, const std::string& armarxProject, DrawStyle drawStyleType, const Ice::Current& = Ice::emptyCurrent) override;
75  void updateRobotPose(const std::string& layer, const std::string& name, const PoseBasePtr& globalPose, const Ice::Current& = Ice::emptyCurrent) override;
76  void updateRobotConfig(const std::string& layer, const std::string& name, const NameValueMap& configuration, const Ice::Current& = Ice::emptyCurrent) override;
77  void updateRobotColor(const std::string& layer, const std::string& name, const DrawColor& color, const Ice::Current& = Ice::emptyCurrent) override;
78  void updateRobotNodeColor(const std::string& layer, const std::string& name, const std::string& robotNodeName, const DrawColor& color, const Ice::Current& = Ice::emptyCurrent) override;
79  void removeRobotVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
80 
81  void setPoseDebugLayerVisu(const std::string& name, const PoseBasePtr& globalPose, const Ice::Current& = Ice::emptyCurrent) override;
82  void setScaledPoseDebugLayerVisu(const std::string& name, const PoseBasePtr& globalPose, Ice::Float scale, const Ice::Current& = Ice::emptyCurrent) override;
83  void setLineDebugLayerVisu(const std::string& name, const Vector3BasePtr& globalPosition1, const Vector3BasePtr& globalPosition2, Ice::Float lineWidth, const DrawColor& color, const Ice::Current& = Ice::emptyCurrent) override;
84  void setLineSetDebugLayerVisu(const std::string& name, const DebugDrawerLineSet& lineSet, const Ice::Current& = Ice::emptyCurrent) override;
85  void setBoxDebugLayerVisu(const std::string& name, const PoseBasePtr& globalPose, const Vector3BasePtr& dimensions, const DrawColor& color, const Ice::Current& = Ice::emptyCurrent) override;
86  void setTextDebugLayerVisu(const std::string& name, const std::string& text, const Vector3BasePtr& globalPosition, const DrawColor& color, Ice::Int size, const Ice::Current& = Ice::emptyCurrent) override;
87  void setSphereDebugLayerVisu(const std::string& name, const Vector3BasePtr& globalPosition, const DrawColor& color, Ice::Float radius, const Ice::Current& = Ice::emptyCurrent) override;
88  void setPointCloudDebugLayerVisu(const std::string& name, const DebugDrawerPointCloud& pointCloud, const Ice::Current& = Ice::emptyCurrent) override;
89  void set24BitColoredPointCloudDebugLayerVisu(const std::string& name, const DebugDrawer24BitColoredPointCloud& pointCloud, const Ice::Current& = Ice::emptyCurrent) override;
90  void setPolygonDebugLayerVisu(const std::string& name, const PolygonPointList& polygonPoints, const DrawColor& colorInner, const DrawColor& colorBorder, Ice::Float lineWidth, const Ice::Current& = Ice::emptyCurrent) override;
91  void setTriMeshDebugLayerVisu(const std::string& name, const DebugDrawerTriMesh& triMesh, const Ice::Current& = Ice::emptyCurrent) override;
92  void setArrowDebugLayerVisu(const std::string& name, const Vector3BasePtr& position, const Vector3BasePtr& direction, const DrawColor& color, Ice::Float length, Ice::Float width, const Ice::Current& = Ice::emptyCurrent) override;
93  void setCylinderDebugLayerVisu(const std::string& name, const Vector3BasePtr& globalPosition, const Vector3BasePtr& direction, Ice::Float length, Ice::Float radius, const DrawColor& color, const Ice::Current& = Ice::emptyCurrent) override;
94  void setCircleDebugLayerVisu(const std::string& name, const Vector3BasePtr& globalPosition, const Vector3BasePtr& directionVec, Ice::Float radius, Ice::Float circleCompletion, Ice::Float width, const DrawColor& color, const Ice::Current& = Ice::emptyCurrent) override;
95 
96  void removePoseVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
97  void removeLineVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
98  void removeLineSetVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
99  void removeBoxVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
100  void removeTextVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
101  void removeSphereVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
102  void removePointCloudVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
103  void removeColoredPointCloudVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
104  void remove24BitColoredPointCloudVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
105  void removePolygonVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
106  void removeTriMeshVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
107  void removeArrowVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
108  void removeCylinderVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
109  void removeCircleVisu(const std::string& layer, const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
110 
111  void removePoseDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
112  void removeLineDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
113  void removeLineSetDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
114  void removeBoxDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
115  void removeTextDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
116  void removeSphereDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
117  void removePointCloudDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
118  void removeColoredPointCloudDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
119  void remove24BitColoredPointCloudDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
120  void removePolygonDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
121  void removeTriMeshDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
122  void removeArrowDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
123  void removeCylinderDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
124  void removeCircleDebugLayerVisu(const std::string& name, const Ice::Current& = Ice::emptyCurrent) override;
125 
126  void clearAll(const Ice::Current& = Ice::emptyCurrent) override;
127  void clearLayer(const std::string& layer, const Ice::Current& = Ice::emptyCurrent) override;
128  void clearDebugLayer(const Ice::Current& = Ice::emptyCurrent) override;
129 
130  void enableLayerVisu(const std::string& layer, bool visible, const Ice::Current& = Ice::emptyCurrent) override;
131  void enableDebugLayerVisu(bool visible, const Ice::Current& = Ice::emptyCurrent) override;
132 
133  Ice::StringSeq layerNames(const Ice::Current& = Ice::emptyCurrent) override;
134  LayerInformationSequence layerInformation(const Ice::Current& = Ice::emptyCurrent) override;
135 
136  bool hasLayer(const std::string&, const Ice::Current& = Ice::emptyCurrent) override;
137  void removeLayer(const std::string&, const Ice::Current& = Ice::emptyCurrent) override;
138 
139  void disableAllLayers(const Ice::Current& = Ice::emptyCurrent) override;
140  void enableAllLayers(const Ice::Current& = Ice::emptyCurrent) override;
141 
142  void enableSelections(const std::string&, const Ice::Current& = Ice::emptyCurrent) override;
143  void disableSelections(const std::string&, const Ice::Current& = Ice::emptyCurrent) override;
144  void clearSelections(const std::string&, const Ice::Current& = Ice::emptyCurrent) override;
145 
146  void select(const std::string& layer, const std::string& elementName, const Ice::Current& = Ice::emptyCurrent) override;
147  void deselect(const std::string& layer, const std::string& elementName, const Ice::Current& = Ice::emptyCurrent) override;
148 
149  DebugDrawerSelectionList getSelections(const Ice::Current& = Ice::emptyCurrent) override;
150 
151 
152  private:
153 
154  viz::Layer& getLayer(const std::string& layerName);
155  viz::data::ElementSeq::iterator
156  findLayerElement(viz::Layer& layer, const std::string& elementName);
157 
158 
159  template <class Element>
160  void setLayerElement(viz::Layer& layer, Element element)
161  {
162  bool found = false;
163  for (size_t i = 0; i < layer.data_.elements.size(); ++i)
164  {
165  if (layer.data_.elements[i]->id == element.data_->id)
166  {
167  // Replace existing element with given element.
168  layer.data_.elements[i] = element.data_;
169  found = true;
170  break;
171  }
172  }
173  if (!found)
174  {
175  // Add given element.
176  layer.add(element);
177  }
178  }
179  template <class Element>
180  void setLayerElement(const std::string& layerName, Element element)
181  {
182  setLayerElement(getLayer(layerName), element);
183  }
184 
185  template <class Element>
186  void setAndCommit(const std::string& layerName, Element element)
187  {
188  viz::Layer& layer = getLayer(layerName);
189  setLayerElement(layer, element);
190  arviz.commit({layer});
191  }
192 
193  void removeLayerElement(viz::Layer& layer, const std::string& name);
194  void removeAndCommit(const std::string& layerName, const std::string& name);
195 
196 
197  public:
198 
200 
201 
202  private:
203 
204  const std::string DEBUG_LAYER_NAME = "debug";
205 
206  std::mutex mutex;
207 
208  viz::Client arviz;
209 
210  std::map<std::string, viz::Layer> layers;
211 
212  std::map<std::pair<std::string, std::string>, viz::Robot> robots;
213 
214  };
215 }
Client.h
armarx::DebugDrawerToArViz::removeSphereDebugLayerVisu
void removeSphereDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:637
armarx::DebugDrawerToArViz::setTextDebugLayerVisu
void setTextDebugLayerVisu(const std::string &name, const std::string &text, const Vector3BasePtr &globalPosition, const DrawColor &color, Ice::Int size, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:464
armarx::DebugDrawerToArViz::layerNames
Ice::StringSeq layerNames(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:710
armarx::viz::Client::commit
CommitResult commit(StagedCommit const &commit)
Definition: Client.cpp:80
armarx::DebugDrawerToArViz::setCircleDebugLayerVisu
void setCircleDebugLayerVisu(const std::string &name, const Vector3BasePtr &globalPosition, const Vector3BasePtr &directionVec, Ice::Float radius, Ice::Float circleCompletion, Ice::Float width, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:496
armarx::DebugDrawerToArViz::layerBlackWhitelist
armarx::StringBlackWhitelist layerBlackWhitelist
Definition: DebugDrawerToArViz.h:199
armarx::DebugDrawerToArViz::removePointCloudDebugLayerVisu
void removePointCloudDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:641
armarx::VariantType::Float
const VariantTypeId Float
Definition: Variant.h:918
armarx::DebugDrawerToArViz::exportLayer
void exportLayer(const std::string &filename, const std::string &layerName, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:114
armarx::DebugDrawerToArViz::removeTextVisu
void removeTextVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:535
armarx::DebugDrawerToArViz::setCylinderVisu
void setCylinderVisu(const std::string &layer, const std::string &name, const Vector3BasePtr &globalPosition, const Vector3BasePtr &direction, Ice::Float length, Ice::Float radius, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:334
armarx::DebugDrawerToArViz::setSphereVisu
void setSphereVisu(const std::string &layer, const std::string &name, const Vector3BasePtr &globalPosition, const DrawColor &color, Ice::Float radius, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:207
armarx::DebugDrawerToArViz::set24BitColoredPointCloudDebugLayerVisu
void set24BitColoredPointCloudDebugLayerVisu(const std::string &name, const DebugDrawer24BitColoredPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:476
armarx::DebugDrawerToArViz::removeSphereVisu
void removeSphereVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:543
armarx::DebugDrawerToArViz::removeLineDebugLayerVisu
void removeLineDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:621
armarx::DebugDrawerToArViz::removePoseDebugLayerVisu
void removePoseDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:617
armarx::DebugDrawerToArViz::enableSelections
void enableSelections(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:740
armarx::DebugDrawerToArViz::removePointCloudVisu
void removePointCloudVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:551
armarx::DebugDrawerToArViz::setCylinderDebugLayerVisu
void setCylinderDebugLayerVisu(const std::string &name, const Vector3BasePtr &globalPosition, const Vector3BasePtr &direction, Ice::Float length, Ice::Float radius, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:492
armarx::DebugDrawerToArViz::setTriMeshDebugLayerVisu
void setTriMeshDebugLayerVisu(const std::string &name, const DebugDrawerTriMesh &triMesh, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:484
armarx::DebugDrawerToArViz::enableAllLayers
void enableAllLayers(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:735
armarx::DebugDrawerToArViz::removeBoxVisu
void removeBoxVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:527
BlackWhitelist.h
armarx::DebugDrawerToArViz::removeCylinderVisu
void removeCylinderVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:599
armarx::DebugDrawerToArViz::removeTriMeshVisu
void removeTriMeshVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:583
armarx::DebugDrawerToArViz::select
void select(const std::string &layer, const std::string &elementName, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:753
armarx::viz::Layer::add
void add(ElementT const &element)
Definition: Layer.h:29
armarx::DebugDrawerToArViz::set24BitColoredPointCloudVisu
void set24BitColoredPointCloudVisu(const std::string &layer, const std::string &name, const DebugDrawer24BitColoredPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:254
armarx::DebugDrawerToArViz::removePolygonVisu
void removePolygonVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:575
armarx::DebugDrawerToArViz::setArrowVisu
void setArrowVisu(const std::string &layer, const std::string &name, const Vector3BasePtr &position, const Vector3BasePtr &direction, const DrawColor &color, Ice::Float length, Ice::Float width, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:323
armarx::DebugDrawerToArViz::removeArrowVisu
void removeArrowVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:591
armarx::DebugDrawerToArViz::disableAllLayers
void disableAllLayers(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:731
armarx::DebugDrawerToArViz::setPoseVisu
void setPoseVisu(const std::string &layer, const std::string &name, const PoseBasePtr &globalPose, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:120
armarx::DebugDrawerToArViz::removeLineVisu
void removeLineVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:511
armarx::DebugDrawerToArViz::setLineVisu
void setLineVisu(const std::string &layer, const std::string &name, const Vector3BasePtr &globalPosition1, const Vector3BasePtr &globalPosition2, Ice::Float lineWidth, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:140
armarx::DebugDrawerToArViz::clearAll
void clearAll(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:674
armarx::DebugDrawerToArViz::remove24BitColoredPointCloudVisu
void remove24BitColoredPointCloudVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:567
armarx::DebugDrawerToArViz::setCircleArrowVisu
void setCircleArrowVisu(const std::string &layer, const std::string &name, const Vector3BasePtr &globalPosition, const Vector3BasePtr &directionVec, Ice::Float radius, Ice::Float circleCompletion, Ice::Float width, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:346
armarx::DebugDrawerToArViz::setBoxDebugLayerVisu
void setBoxDebugLayerVisu(const std::string &name, const PoseBasePtr &globalPose, const Vector3BasePtr &dimensions, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:460
armarx::DebugDrawerToArViz::deselect
void deselect(const std::string &layer, const std::string &elementName, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:758
armarx::DebugDrawerToArViz::setBoxVisu
void setBoxVisu(const std::string &layer, const std::string &name, const PoseBasePtr &globalPose, const Vector3BasePtr &dimensions, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:186
armarx::DebugDrawerToArViz::remove24BitColoredPointCloudDebugLayerVisu
void remove24BitColoredPointCloudDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:649
armarx::DebugDrawerToArViz::updateRobotNodeColor
void updateRobotNodeColor(const std::string &layer, const std::string &name, const std::string &robotNodeName, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:426
armarx::DebugDrawerToArViz::setScaledPoseVisu
void setScaledPoseVisu(const std::string &layer, const std::string &name, const PoseBasePtr &globalPose, Ice::Float scale, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:130
armarx::DebugDrawerToArViz::setPoseDebugLayerVisu
void setPoseDebugLayerVisu(const std::string &name, const PoseBasePtr &globalPose, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:444
armarx::viz::Layer::data_
data::LayerUpdate data_
Definition: Layer.h:53
armarx::DebugDrawerToArViz::updateRobotPose
void updateRobotPose(const std::string &layer, const std::string &name, const PoseBasePtr &globalPose, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:381
armarx::DebugDrawerToArViz::removeCircleVisu
void removeCircleVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:607
armarx::DebugDrawerToArViz::removeRobotVisu
void removeRobotVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:432
armarx::DebugDrawerToArViz::setColoredPointCloudVisu
void setColoredPointCloudVisu(const std::string &layer, const std::string &name, const DebugDrawerColoredPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:233
armarx::DebugDrawerToArViz::clearDebugLayer
void clearDebugLayer(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:695
armarx::DebugDrawerToArViz::hasLayer
bool hasLayer(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:721
filename
std::string filename
Definition: VisualizationRobot.cpp:83
armarx::DebugDrawerToArViz::layerInformation
LayerInformationSequence layerInformation(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:715
armarx::viz::Robot
Definition: Robot.h:10
armarx::DebugDrawerToArViz::removeColoredPointCloudVisu
void removeColoredPointCloudVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:559
armarx::DebugDrawerToArViz::setRobotVisu
void setRobotVisu(const std::string &layer, const std::string &name, const std::string &robotFile, const std::string &armarxProject, DrawStyle drawStyleType, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:358
armarx::DebugDrawerToArViz::updateRobotColor
void updateRobotColor(const std::string &layer, const std::string &name, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:411
armarx::DebugDrawerToArViz::setPointCloudDebugLayerVisu
void setPointCloudDebugLayerVisu(const std::string &name, const DebugDrawerPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:472
armarx::DebugDrawerToArViz::clearLayer
void clearLayer(const std::string &layer, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:687
armarx::DebugDrawerToArViz::setPolygonDebugLayerVisu
void setPolygonDebugLayerVisu(const std::string &name, const PolygonPointList &polygonPoints, const DrawColor &colorInner, const DrawColor &colorBorder, Ice::Float lineWidth, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:480
armarx::DebugDrawerToArViz::setLineSetVisu
void setLineSetVisu(const std::string &layer, const std::string &name, const DebugDrawerLineSet &lineSet, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:151
armarx::DebugDrawerToArViz::setScaledPoseDebugLayerVisu
void setScaledPoseDebugLayerVisu(const std::string &name, const PoseBasePtr &globalPose, Ice::Float scale, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:448
armarx::armem::server::ltm::util::mongodb::detail::update
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
Definition: mongodb.cpp:67
armarx::DebugDrawerToArViz::removeCircleDebugLayerVisu
void removeCircleDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:669
armarx::DebugDrawerToArViz::disableSelections
void disableSelections(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:744
armarx::DebugDrawerToArViz::clearSelections
void clearSelections(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:748
armarx::BlackWhitelist< std::string >
armarx::DebugDrawerToArViz::enableDebugLayerVisu
void enableDebugLayerVisu(bool visible, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:705
armarx::control::njoint_controller::platform::platform_follower_controller::NameValueMap
std::map< std::string, float > NameValueMap
Definition: PlatformFollowerController.h:91
armarx::DebugDrawerToArViz::updateRobotConfig
void updateRobotConfig(const std::string &layer, const std::string &name, const NameValueMap &configuration, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:396
armarx::DebugDrawerToArViz
Passes updates from DebugDrawerInterface to ArViz.
Definition: DebugDrawerToArViz.h:40
armarx::DebugDrawerToArViz::removeTextDebugLayerVisu
void removeTextDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:633
armarx::DebugDrawerToArViz::setPointCloudVisu
void setPointCloudVisu(const std::string &layer, const std::string &name, const DebugDrawerPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:217
armarx::DebugDrawerToArViz::removeColoredPointCloudDebugLayerVisu
void removeColoredPointCloudDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:645
armarx::DebugDrawerToArViz::removeBoxDebugLayerVisu
void removeBoxDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:629
armarx::DebugDrawerToArViz::setLineDebugLayerVisu
void setLineDebugLayerVisu(const std::string &name, const Vector3BasePtr &globalPosition1, const Vector3BasePtr &globalPosition2, Ice::Float lineWidth, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:452
armarx::DebugDrawerToArViz::removeLayer
void removeLayer(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:726
armarx::DebugDrawerToArViz::removePolygonDebugLayerVisu
void removePolygonDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:653
armarx::DebugDrawerToArViz::setLineSetDebugLayerVisu
void setLineSetDebugLayerVisu(const std::string &name, const DebugDrawerLineSet &lineSet, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:456
armarx::VariantType::Int
const VariantTypeId Int
Definition: Variant.h:916
armarx::DebugDrawerToArViz::setPolygonVisu
void setPolygonVisu(const std::string &layer, const std::string &name, const PolygonPointList &polygonPoints, const DrawColor &colorInner, const DrawColor &colorBorder, Ice::Float lineWidth, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:275
armarx::DebugDrawerToArViz::getSelections
DebugDrawerSelectionList getSelections(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:764
armarx::DebugDrawerToArViz::exportScene
void exportScene(const std::string &filename, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:110
armarx::DebugDrawerToArViz::removeArrowDebugLayerVisu
void removeArrowDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:661
armarx::DebugDrawerToArViz::updateBlackWhitelist
void updateBlackWhitelist(const BlackWhitelistUpdate &update, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:87
armarx::DebugDrawerToArViz::enableLayerVisu
void enableLayerVisu(const std::string &layer, bool visible, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:700
armarx::DebugDrawerToArViz::setTriMeshVisu
void setTriMeshVisu(const std::string &layer, const std::string &name, const DebugDrawerTriMesh &triMesh, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:291
armarx::DebugDrawerToArViz::setArrowDebugLayerVisu
void setArrowDebugLayerVisu(const std::string &name, const Vector3BasePtr &position, const Vector3BasePtr &direction, const DrawColor &color, Ice::Float length, Ice::Float width, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:488
armarx::viz::Client
Definition: Client.h:109
armarx::viz::Layer
Definition: Layer.h:12
armarx::DebugDrawerToArViz::setTextVisu
void setTextVisu(const std::string &layer, const std::string &name, const std::string &text, const Vector3BasePtr &globalPosition, const DrawColor &color, Ice::Int size, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:196
armarx::DebugDrawerToArViz::removeLineSetVisu
void removeLineSetVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:519
armarx::DebugDrawerToArViz::removePoseVisu
void removePoseVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:503
armarx::DebugDrawerToArViz::setSphereDebugLayerVisu
void setSphereDebugLayerVisu(const std::string &name, const Vector3BasePtr &globalPosition, const DrawColor &color, Ice::Float radius, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:468
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::DebugDrawerToArViz::removeLineSetDebugLayerVisu
void removeLineSetDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:625
armarx::DebugDrawerToArViz::removeTriMeshDebugLayerVisu
void removeTriMeshDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:657
armarx::DebugDrawerToArViz::removeCylinderDebugLayerVisu
void removeCylinderDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:665
armarx::DebugDrawerToArViz::setArViz
void setArViz(viz::Client arviz)
Definition: DebugDrawerToArViz.cpp:81