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 
29 #include <RobotAPI/interface/visualization/DebugDrawerToArViz.h>
30 
31 #include "BlackWhitelist.h"
32 
33 namespace armarx
34 {
35 
36  /**
37  * @brief Passes updates from DebugDrawerInterface to ArViz.
38  */
39  class DebugDrawerToArViz : virtual public armarx::DebugDrawerToArvizInterface
40  {
41  public:
42  void setArViz(viz::Client arviz);
43 
44 
45  // BlackWhitelistTopic interface
46  public:
47  void updateBlackWhitelist(const BlackWhitelistUpdate& update,
48  const Ice::Current& = Ice::emptyCurrent) override;
49 
50 
51  // DebugDrawerInterface interface
52  public:
53  void exportScene(const std::string& filename,
54  const Ice::Current& = Ice::emptyCurrent) override;
55  void exportLayer(const std::string& filename,
56  const std::string& layerName,
57  const Ice::Current& = Ice::emptyCurrent) override;
58 
59  void setPoseVisu(const std::string& layer,
60  const std::string& name,
61  const PoseBasePtr& globalPose,
62  const Ice::Current& = Ice::emptyCurrent) override;
63  void setScaledPoseVisu(const std::string& layer,
64  const std::string& name,
65  const PoseBasePtr& globalPose,
66  Ice::Float scale,
67  const Ice::Current& = Ice::emptyCurrent) override;
68  void setLineVisu(const std::string& layer,
69  const std::string& name,
70  const Vector3BasePtr& globalPosition1,
71  const Vector3BasePtr& globalPosition2,
72  Ice::Float lineWidth,
73  const DrawColor& color,
74  const Ice::Current& = Ice::emptyCurrent) override;
75  void setLineSetVisu(const std::string& layer,
76  const std::string& name,
77  const DebugDrawerLineSet& lineSet,
78  const Ice::Current& = Ice::emptyCurrent) override;
79  void setBoxVisu(const std::string& layer,
80  const std::string& name,
81  const PoseBasePtr& globalPose,
82  const Vector3BasePtr& dimensions,
83  const DrawColor& color,
84  const Ice::Current& = Ice::emptyCurrent) override;
85  void setTextVisu(const std::string& layer,
86  const std::string& name,
87  const std::string& text,
88  const Vector3BasePtr& globalPosition,
89  const DrawColor& color,
90  Ice::Int size,
91  const Ice::Current& = Ice::emptyCurrent) override;
92  void setSphereVisu(const std::string& layer,
93  const std::string& name,
94  const Vector3BasePtr& globalPosition,
95  const DrawColor& color,
96  Ice::Float radius,
97  const Ice::Current& = Ice::emptyCurrent) override;
98  void setPointCloudVisu(const std::string& layer,
99  const std::string& name,
100  const DebugDrawerPointCloud& pointCloud,
101  const Ice::Current& = Ice::emptyCurrent) override;
102  void setColoredPointCloudVisu(const std::string& layer,
103  const std::string& name,
104  const DebugDrawerColoredPointCloud& pointCloud,
105  const Ice::Current& = Ice::emptyCurrent) override;
106  void set24BitColoredPointCloudVisu(const std::string& layer,
107  const std::string& name,
108  const DebugDrawer24BitColoredPointCloud& pointCloud,
109  const Ice::Current& = Ice::emptyCurrent) override;
110  void setPolygonVisu(const std::string& layer,
111  const std::string& name,
112  const PolygonPointList& polygonPoints,
113  const DrawColor& colorInner,
114  const DrawColor& colorBorder,
115  Ice::Float lineWidth,
116  const Ice::Current& = Ice::emptyCurrent) override;
117  void setTriMeshVisu(const std::string& layer,
118  const std::string& name,
119  const DebugDrawerTriMesh& triMesh,
120  const Ice::Current& = Ice::emptyCurrent) override;
121  void setArrowVisu(const std::string& layer,
122  const std::string& name,
123  const Vector3BasePtr& position,
124  const Vector3BasePtr& direction,
125  const DrawColor& color,
126  Ice::Float length,
127  Ice::Float width,
128  const Ice::Current& = Ice::emptyCurrent) override;
129  void setCylinderVisu(const std::string& layer,
130  const std::string& name,
131  const Vector3BasePtr& globalPosition,
132  const Vector3BasePtr& direction,
133  Ice::Float length,
134  Ice::Float radius,
135  const DrawColor& color,
136  const Ice::Current& = Ice::emptyCurrent) override;
137  void setCircleArrowVisu(const std::string& layer,
138  const std::string& name,
139  const Vector3BasePtr& globalPosition,
140  const Vector3BasePtr& directionVec,
141  Ice::Float radius,
142  Ice::Float circleCompletion,
143  Ice::Float width,
144  const DrawColor& color,
145  const Ice::Current& = Ice::emptyCurrent) override;
146 
147  void setRobotVisu(const std::string& layer,
148  const std::string& name,
149  const std::string& robotFile,
150  const std::string& armarxProject,
151  DrawStyle drawStyleType,
152  const Ice::Current& = Ice::emptyCurrent) override;
153  void updateRobotPose(const std::string& layer,
154  const std::string& name,
155  const PoseBasePtr& globalPose,
156  const Ice::Current& = Ice::emptyCurrent) override;
157  void updateRobotConfig(const std::string& layer,
158  const std::string& name,
159  const NameValueMap& configuration,
160  const Ice::Current& = Ice::emptyCurrent) override;
161  void updateRobotColor(const std::string& layer,
162  const std::string& name,
163  const DrawColor& color,
164  const Ice::Current& = Ice::emptyCurrent) override;
165  void updateRobotNodeColor(const std::string& layer,
166  const std::string& name,
167  const std::string& robotNodeName,
168  const DrawColor& color,
169  const Ice::Current& = Ice::emptyCurrent) override;
170  void removeRobotVisu(const std::string& layer,
171  const std::string& name,
172  const Ice::Current& = Ice::emptyCurrent) override;
173 
174  void setPoseDebugLayerVisu(const std::string& name,
175  const PoseBasePtr& globalPose,
176  const Ice::Current& = Ice::emptyCurrent) override;
177  void setScaledPoseDebugLayerVisu(const std::string& name,
178  const PoseBasePtr& globalPose,
179  Ice::Float scale,
180  const Ice::Current& = Ice::emptyCurrent) override;
181  void setLineDebugLayerVisu(const std::string& name,
182  const Vector3BasePtr& globalPosition1,
183  const Vector3BasePtr& globalPosition2,
184  Ice::Float lineWidth,
185  const DrawColor& color,
186  const Ice::Current& = Ice::emptyCurrent) override;
187  void setLineSetDebugLayerVisu(const std::string& name,
188  const DebugDrawerLineSet& lineSet,
189  const Ice::Current& = Ice::emptyCurrent) override;
190  void setBoxDebugLayerVisu(const std::string& name,
191  const PoseBasePtr& globalPose,
192  const Vector3BasePtr& dimensions,
193  const DrawColor& color,
194  const Ice::Current& = Ice::emptyCurrent) override;
195  void setTextDebugLayerVisu(const std::string& name,
196  const std::string& text,
197  const Vector3BasePtr& globalPosition,
198  const DrawColor& color,
199  Ice::Int size,
200  const Ice::Current& = Ice::emptyCurrent) override;
201  void setSphereDebugLayerVisu(const std::string& name,
202  const Vector3BasePtr& globalPosition,
203  const DrawColor& color,
204  Ice::Float radius,
205  const Ice::Current& = Ice::emptyCurrent) override;
206  void setPointCloudDebugLayerVisu(const std::string& name,
207  const DebugDrawerPointCloud& pointCloud,
208  const Ice::Current& = Ice::emptyCurrent) override;
209  void
210  set24BitColoredPointCloudDebugLayerVisu(const std::string& name,
211  const DebugDrawer24BitColoredPointCloud& pointCloud,
212  const Ice::Current& = Ice::emptyCurrent) override;
213  void setPolygonDebugLayerVisu(const std::string& name,
214  const PolygonPointList& polygonPoints,
215  const DrawColor& colorInner,
216  const DrawColor& colorBorder,
217  Ice::Float lineWidth,
218  const Ice::Current& = Ice::emptyCurrent) override;
219  void setTriMeshDebugLayerVisu(const std::string& name,
220  const DebugDrawerTriMesh& triMesh,
221  const Ice::Current& = Ice::emptyCurrent) override;
222  void setArrowDebugLayerVisu(const std::string& name,
223  const Vector3BasePtr& position,
224  const Vector3BasePtr& direction,
225  const DrawColor& color,
226  Ice::Float length,
227  Ice::Float width,
228  const Ice::Current& = Ice::emptyCurrent) override;
229  void setCylinderDebugLayerVisu(const std::string& name,
230  const Vector3BasePtr& globalPosition,
231  const Vector3BasePtr& direction,
232  Ice::Float length,
233  Ice::Float radius,
234  const DrawColor& color,
235  const Ice::Current& = Ice::emptyCurrent) override;
236  void setCircleDebugLayerVisu(const std::string& name,
237  const Vector3BasePtr& globalPosition,
238  const Vector3BasePtr& directionVec,
239  Ice::Float radius,
240  Ice::Float circleCompletion,
241  Ice::Float width,
242  const DrawColor& color,
243  const Ice::Current& = Ice::emptyCurrent) override;
244 
245  void removePoseVisu(const std::string& layer,
246  const std::string& name,
247  const Ice::Current& = Ice::emptyCurrent) override;
248  void removeLineVisu(const std::string& layer,
249  const std::string& name,
250  const Ice::Current& = Ice::emptyCurrent) override;
251  void removeLineSetVisu(const std::string& layer,
252  const std::string& name,
253  const Ice::Current& = Ice::emptyCurrent) override;
254  void removeBoxVisu(const std::string& layer,
255  const std::string& name,
256  const Ice::Current& = Ice::emptyCurrent) override;
257  void removeTextVisu(const std::string& layer,
258  const std::string& name,
259  const Ice::Current& = Ice::emptyCurrent) override;
260  void removeSphereVisu(const std::string& layer,
261  const std::string& name,
262  const Ice::Current& = Ice::emptyCurrent) override;
263  void removePointCloudVisu(const std::string& layer,
264  const std::string& name,
265  const Ice::Current& = Ice::emptyCurrent) override;
266  void removeColoredPointCloudVisu(const std::string& layer,
267  const std::string& name,
268  const Ice::Current& = Ice::emptyCurrent) override;
269  void remove24BitColoredPointCloudVisu(const std::string& layer,
270  const std::string& name,
271  const Ice::Current& = Ice::emptyCurrent) override;
272  void removePolygonVisu(const std::string& layer,
273  const std::string& name,
274  const Ice::Current& = Ice::emptyCurrent) override;
275  void removeTriMeshVisu(const std::string& layer,
276  const std::string& name,
277  const Ice::Current& = Ice::emptyCurrent) override;
278  void removeArrowVisu(const std::string& layer,
279  const std::string& name,
280  const Ice::Current& = Ice::emptyCurrent) override;
281  void removeCylinderVisu(const std::string& layer,
282  const std::string& name,
283  const Ice::Current& = Ice::emptyCurrent) override;
284  void removeCircleVisu(const std::string& layer,
285  const std::string& name,
286  const Ice::Current& = Ice::emptyCurrent) override;
287 
288  void removePoseDebugLayerVisu(const std::string& name,
289  const Ice::Current& = Ice::emptyCurrent) override;
290  void removeLineDebugLayerVisu(const std::string& name,
291  const Ice::Current& = Ice::emptyCurrent) override;
292  void removeLineSetDebugLayerVisu(const std::string& name,
293  const Ice::Current& = Ice::emptyCurrent) override;
294  void removeBoxDebugLayerVisu(const std::string& name,
295  const Ice::Current& = Ice::emptyCurrent) override;
296  void removeTextDebugLayerVisu(const std::string& name,
297  const Ice::Current& = Ice::emptyCurrent) override;
298  void removeSphereDebugLayerVisu(const std::string& name,
299  const Ice::Current& = Ice::emptyCurrent) override;
300  void removePointCloudDebugLayerVisu(const std::string& name,
301  const Ice::Current& = Ice::emptyCurrent) override;
302  void
303  removeColoredPointCloudDebugLayerVisu(const std::string& name,
304  const Ice::Current& = Ice::emptyCurrent) override;
306  const std::string& name,
307  const Ice::Current& = Ice::emptyCurrent) override;
308  void removePolygonDebugLayerVisu(const std::string& name,
309  const Ice::Current& = Ice::emptyCurrent) override;
310  void removeTriMeshDebugLayerVisu(const std::string& name,
311  const Ice::Current& = Ice::emptyCurrent) override;
312  void removeArrowDebugLayerVisu(const std::string& name,
313  const Ice::Current& = Ice::emptyCurrent) override;
314  void removeCylinderDebugLayerVisu(const std::string& name,
315  const Ice::Current& = Ice::emptyCurrent) override;
316  void removeCircleDebugLayerVisu(const std::string& name,
317  const Ice::Current& = Ice::emptyCurrent) override;
318 
319  void clearAll(const Ice::Current& = Ice::emptyCurrent) override;
320  void clearLayer(const std::string& layer, const Ice::Current& = Ice::emptyCurrent) override;
321  void clearDebugLayer(const Ice::Current& = Ice::emptyCurrent) override;
322 
323  void enableLayerVisu(const std::string& layer,
324  bool visible,
325  const Ice::Current& = Ice::emptyCurrent) override;
326  void enableDebugLayerVisu(bool visible, const Ice::Current& = Ice::emptyCurrent) override;
327 
328  Ice::StringSeq layerNames(const Ice::Current& = Ice::emptyCurrent) override;
329  LayerInformationSequence layerInformation(const Ice::Current& = Ice::emptyCurrent) override;
330 
331  bool hasLayer(const std::string&, const Ice::Current& = Ice::emptyCurrent) override;
332  void removeLayer(const std::string&, const Ice::Current& = Ice::emptyCurrent) override;
333 
334  void disableAllLayers(const Ice::Current& = Ice::emptyCurrent) override;
335  void enableAllLayers(const Ice::Current& = Ice::emptyCurrent) override;
336 
337  void enableSelections(const std::string&, const Ice::Current& = Ice::emptyCurrent) override;
338  void disableSelections(const std::string&,
339  const Ice::Current& = Ice::emptyCurrent) override;
340  void clearSelections(const std::string&, const Ice::Current& = Ice::emptyCurrent) override;
341 
342  void select(const std::string& layer,
343  const std::string& elementName,
344  const Ice::Current& = Ice::emptyCurrent) override;
345  void deselect(const std::string& layer,
346  const std::string& elementName,
347  const Ice::Current& = Ice::emptyCurrent) override;
348 
349  DebugDrawerSelectionList getSelections(const Ice::Current& = Ice::emptyCurrent) override;
350 
351 
352  private:
353  viz::Layer& getLayer(const std::string& layerName);
354  viz::data::ElementSeq::iterator findLayerElement(viz::Layer& layer,
355  const std::string& elementName);
356 
357  template <class Element>
358  void
359  setLayerElement(viz::Layer& layer, Element element)
360  {
361  bool found = false;
362  for (size_t i = 0; i < layer.data_.elements.size(); ++i)
363  {
364  if (layer.data_.elements[i]->id == element.data_->id)
365  {
366  // Replace existing element with given element.
367  layer.data_.elements[i] = element.data_;
368  found = true;
369  break;
370  }
371  }
372  if (!found)
373  {
374  // Add given element.
375  layer.add(element);
376  }
377  }
378 
379  template <class Element>
380  void
381  setLayerElement(const std::string& layerName, Element element)
382  {
383  setLayerElement(getLayer(layerName), element);
384  }
385 
386  template <class Element>
387  void
388  setAndCommit(const std::string& layerName, Element element)
389  {
390  viz::Layer& layer = getLayer(layerName);
391  setLayerElement(layer, element);
392  arviz.commit({layer});
393  }
394 
395  void removeLayerElement(viz::Layer& layer, const std::string& name);
396  void removeAndCommit(const std::string& layerName, const std::string& name);
397 
398 
399  public:
401 
402 
403  private:
404  const std::string DEBUG_LAYER_NAME = "debug";
405 
406  std::mutex mutex;
407 
408  viz::Client arviz;
409 
410  std::map<std::string, viz::Layer> layers;
411 
412  std::map<std::pair<std::string, std::string>, viz::Robot> robots;
413  };
414 } // namespace armarx
Client.h
armarx::DebugDrawerToArViz::removeSphereDebugLayerVisu
void removeSphereDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:940
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:644
armarx::DebugDrawerToArViz::layerNames
Ice::StringSeq layerNames(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1040
armarx::viz::Client::commit
CommitResult commit(StagedCommit const &commit)
Definition: Client.cpp:89
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:727
armarx::DebugDrawerToArViz::layerBlackWhitelist
armarx::StringBlackWhitelist layerBlackWhitelist
Definition: DebugDrawerToArViz.h:400
armarx::DebugDrawerToArViz::removePointCloudDebugLayerVisu
void removePointCloudDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:946
armarx::VariantType::Float
const VariantTypeId Float
Definition: Variant.h:919
armarx::DebugDrawerToArViz::exportLayer
void exportLayer(const std::string &filename, const std::string &layerName, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:121
armarx::DebugDrawerToArViz::removeTextVisu
void removeTextVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:790
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:438
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:264
armarx::DebugDrawerToArViz::set24BitColoredPointCloudDebugLayerVisu
void set24BitColoredPointCloudDebugLayerVisu(const std::string &name, const DebugDrawer24BitColoredPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:673
armarx::DebugDrawerToArViz::removeSphereVisu
void removeSphereVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:802
armarx::DebugDrawerToArViz::removeLineDebugLayerVisu
void removeLineDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:916
armarx::DebugDrawerToArViz::removePoseDebugLayerVisu
void removePoseDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:910
armarx::DebugDrawerToArViz::enableSelections
void enableSelections(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1079
armarx::DebugDrawerToArViz::removePointCloudVisu
void removePointCloudVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:814
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:714
armarx::DebugDrawerToArViz::setTriMeshDebugLayerVisu
void setTriMeshDebugLayerVisu(const std::string &name, const DebugDrawerTriMesh &triMesh, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:694
armarx::DebugDrawerToArViz::enableAllLayers
void enableAllLayers(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1073
armarx::DebugDrawerToArViz::removeBoxVisu
void removeBoxVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:778
BlackWhitelist.h
armarx::DebugDrawerToArViz::removeCylinderVisu
void removeCylinderVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:886
armarx::DebugDrawerToArViz::removeTriMeshVisu
void removeTriMeshVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:862
armarx::DebugDrawerToArViz::select
void select(const std::string &layer, const std::string &elementName, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1097
armarx::viz::Layer::add
void add(ElementT const &element)
Definition: Layer.h:31
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:327
armarx::DebugDrawerToArViz::removePolygonVisu
void removePolygonVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:850
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:414
armarx::DebugDrawerToArViz::removeArrowVisu
void removeArrowVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:874
armarx::DebugDrawerToArViz::disableAllLayers
void disableAllLayers(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1067
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:127
armarx::DebugDrawerToArViz::removeLineVisu
void removeLineVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:754
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:156
armarx::DebugDrawerToArViz::clearAll
void clearAll(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:996
armarx::DebugDrawerToArViz::remove24BitColoredPointCloudVisu
void remove24BitColoredPointCloudVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:838
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:461
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:634
armarx::DebugDrawerToArViz::deselect
void deselect(const std::string &layer, const std::string &elementName, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1106
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:224
armarx::DebugDrawerToArViz::remove24BitColoredPointCloudDebugLayerVisu
void remove24BitColoredPointCloudDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:959
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:573
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:141
armarx::DebugDrawerToArViz::setPoseDebugLayerVisu
void setPoseDebugLayerVisu(const std::string &name, const PoseBasePtr &globalPose, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:598
armarx::viz::Layer::data_
data::LayerUpdate data_
Definition: Layer.h:57
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:516
armarx::DebugDrawerToArViz::removeCircleVisu
void removeCircleVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:898
armarx::DebugDrawerToArViz::removeRobotVisu
void removeRobotVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:584
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:302
armarx::DebugDrawerToArViz::clearDebugLayer
void clearDebugLayer(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1021
armarx::DebugDrawerToArViz::hasLayer
bool hasLayer(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1054
filename
std::string filename
Definition: VisualizationRobot.cpp:86
armarx::DebugDrawerToArViz::layerInformation
LayerInformationSequence layerInformation(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1047
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:826
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:487
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:554
armarx::DebugDrawerToArViz::setPointCloudDebugLayerVisu
void setPointCloudDebugLayerVisu(const std::string &name, const DebugDrawerPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:665
armarx::DebugDrawerToArViz::clearLayer
void clearLayer(const std::string &layer, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1011
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:682
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:179
armarx::DebugDrawerToArViz::setScaledPoseDebugLayerVisu
void setScaledPoseDebugLayerVisu(const std::string &name, const PoseBasePtr &globalPose, Ice::Float scale, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:606
armarx::armem::server::ltm::util::mongodb::detail::update
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
Definition: mongodb.cpp:68
armarx::DebugDrawerToArViz::removeCircleDebugLayerVisu
void removeCircleDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:990
armarx::DebugDrawerToArViz::disableSelections
void disableSelections(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1085
armarx::DebugDrawerToArViz::clearSelections
void clearSelections(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1091
armarx::BlackWhitelist< std::string >
armarx::DebugDrawerToArViz::enableDebugLayerVisu
void enableDebugLayerVisu(bool visible, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1034
armarx::control::njoint_controller::platform::platform_follower_controller::NameValueMap
std::map< std::string, float > NameValueMap
Definition: PlatformFollowerController.h:88
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:535
armarx::DebugDrawerToArViz
Passes updates from DebugDrawerInterface to ArViz.
Definition: DebugDrawerToArViz.h:39
armarx::DebugDrawerToArViz::removeTextDebugLayerVisu
void removeTextDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:934
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:282
armarx::DebugDrawerToArViz::removeColoredPointCloudDebugLayerVisu
void removeColoredPointCloudDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:952
armarx::DebugDrawerToArViz::removeBoxDebugLayerVisu
void removeBoxDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:928
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:615
armarx::DebugDrawerToArViz::removeLayer
void removeLayer(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1061
armarx::DebugDrawerToArViz::removePolygonDebugLayerVisu
void removePolygonDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:966
armarx::DebugDrawerToArViz::setLineSetDebugLayerVisu
void setLineSetDebugLayerVisu(const std::string &name, const DebugDrawerLineSet &lineSet, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:626
armarx::VariantType::Int
const VariantTypeId Int
Definition: Variant.h:917
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:353
armarx::DebugDrawerToArViz::getSelections
DebugDrawerSelectionList getSelections(const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1115
armarx::DebugDrawerToArViz::exportScene
void exportScene(const std::string &filename, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:115
armarx::DebugDrawerToArViz::removeArrowDebugLayerVisu
void removeArrowDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:978
armarx::DebugDrawerToArViz::updateBlackWhitelist
void updateBlackWhitelist(const BlackWhitelistUpdate &update, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:91
armarx::DebugDrawerToArViz::enableLayerVisu
void enableLayerVisu(const std::string &layer, bool visible, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:1027
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:378
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:702
armarx::viz::Client
Definition: Client.h:117
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:242
armarx::DebugDrawerToArViz::removeLineSetVisu
void removeLineSetVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:766
armarx::DebugDrawerToArViz::removePoseVisu
void removePoseVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:742
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:655
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
armarx::DebugDrawerToArViz::removeLineSetDebugLayerVisu
void removeLineSetDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:922
armarx::DebugDrawerToArViz::removeTriMeshDebugLayerVisu
void removeTriMeshDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:972
armarx::DebugDrawerToArViz::removeCylinderDebugLayerVisu
void removeCylinderDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
Definition: DebugDrawerToArViz.cpp:984
armarx::DebugDrawerToArViz::setArViz
void setArViz(viz::Client arviz)
Definition: DebugDrawerToArViz.cpp:85