Go to the documentation of this file.
29 #include <RobotAPI/interface/visualization/DebugDrawerToArViz.h>
48 const Ice::Current& = Ice::emptyCurrent)
override;
54 const Ice::Current& = Ice::emptyCurrent)
override;
56 const std::string& layerName,
57 const Ice::Current& = Ice::emptyCurrent)
override;
60 const std::string& name,
61 const PoseBasePtr& globalPose,
62 const Ice::Current& = Ice::emptyCurrent)
override;
64 const std::string& name,
65 const PoseBasePtr& globalPose,
67 const Ice::Current& = Ice::emptyCurrent)
override;
69 const std::string& name,
70 const Vector3BasePtr& globalPosition1,
71 const Vector3BasePtr& globalPosition2,
73 const DrawColor& color,
74 const Ice::Current& = Ice::emptyCurrent)
override;
76 const std::string& name,
77 const DebugDrawerLineSet& lineSet,
78 const Ice::Current& = Ice::emptyCurrent)
override;
80 const std::string& name,
81 const PoseBasePtr& globalPose,
82 const Vector3BasePtr& dimensions,
83 const DrawColor& color,
84 const Ice::Current& = Ice::emptyCurrent)
override;
86 const std::string& name,
87 const std::string& text,
88 const Vector3BasePtr& globalPosition,
89 const DrawColor& color,
91 const Ice::Current& = Ice::emptyCurrent)
override;
93 const std::string& name,
94 const Vector3BasePtr& globalPosition,
95 const DrawColor& color,
97 const Ice::Current& = Ice::emptyCurrent)
override;
99 const std::string& name,
100 const DebugDrawerPointCloud& pointCloud,
101 const Ice::Current& = Ice::emptyCurrent)
override;
103 const std::string& name,
104 const DebugDrawerColoredPointCloud& pointCloud,
105 const Ice::Current& = Ice::emptyCurrent)
override;
107 const std::string& name,
108 const DebugDrawer24BitColoredPointCloud& pointCloud,
109 const Ice::Current& = Ice::emptyCurrent)
override;
111 const std::string& name,
112 const PolygonPointList& polygonPoints,
113 const DrawColor& colorInner,
114 const DrawColor& colorBorder,
116 const Ice::Current& = Ice::emptyCurrent)
override;
118 const std::string& name,
119 const DebugDrawerTriMesh& triMesh,
120 const Ice::Current& = Ice::emptyCurrent)
override;
122 const std::string& name,
123 const Vector3BasePtr& position,
124 const Vector3BasePtr& direction,
125 const DrawColor& color,
128 const Ice::Current& = Ice::emptyCurrent)
override;
130 const std::string& name,
131 const Vector3BasePtr& globalPosition,
132 const Vector3BasePtr& direction,
135 const DrawColor& color,
136 const Ice::Current& = Ice::emptyCurrent)
override;
138 const std::string& name,
139 const Vector3BasePtr& globalPosition,
140 const Vector3BasePtr& directionVec,
144 const DrawColor& color,
145 const Ice::Current& = Ice::emptyCurrent)
override;
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;
154 const std::string& name,
155 const PoseBasePtr& globalPose,
156 const Ice::Current& = Ice::emptyCurrent)
override;
158 const std::string& name,
160 const Ice::Current& = Ice::emptyCurrent)
override;
162 const std::string& name,
163 const DrawColor& color,
164 const Ice::Current& = Ice::emptyCurrent)
override;
166 const std::string& name,
167 const std::string& robotNodeName,
168 const DrawColor& color,
169 const Ice::Current& = Ice::emptyCurrent)
override;
171 const std::string& name,
172 const Ice::Current& = Ice::emptyCurrent)
override;
175 const PoseBasePtr& globalPose,
176 const Ice::Current& = Ice::emptyCurrent)
override;
178 const PoseBasePtr& globalPose,
180 const Ice::Current& = Ice::emptyCurrent)
override;
182 const Vector3BasePtr& globalPosition1,
183 const Vector3BasePtr& globalPosition2,
185 const DrawColor& color,
186 const Ice::Current& = Ice::emptyCurrent)
override;
188 const DebugDrawerLineSet& lineSet,
189 const Ice::Current& = Ice::emptyCurrent)
override;
191 const PoseBasePtr& globalPose,
192 const Vector3BasePtr& dimensions,
193 const DrawColor& color,
194 const Ice::Current& = Ice::emptyCurrent)
override;
196 const std::string& text,
197 const Vector3BasePtr& globalPosition,
198 const DrawColor& color,
200 const Ice::Current& = Ice::emptyCurrent)
override;
202 const Vector3BasePtr& globalPosition,
203 const DrawColor& color,
205 const Ice::Current& = Ice::emptyCurrent)
override;
207 const DebugDrawerPointCloud& pointCloud,
208 const Ice::Current& = Ice::emptyCurrent)
override;
211 const DebugDrawer24BitColoredPointCloud& pointCloud,
212 const Ice::Current& = Ice::emptyCurrent)
override;
214 const PolygonPointList& polygonPoints,
215 const DrawColor& colorInner,
216 const DrawColor& colorBorder,
218 const Ice::Current& = Ice::emptyCurrent)
override;
220 const DebugDrawerTriMesh& triMesh,
221 const Ice::Current& = Ice::emptyCurrent)
override;
223 const Vector3BasePtr& position,
224 const Vector3BasePtr& direction,
225 const DrawColor& color,
228 const Ice::Current& = Ice::emptyCurrent)
override;
230 const Vector3BasePtr& globalPosition,
231 const Vector3BasePtr& direction,
234 const DrawColor& color,
235 const Ice::Current& = Ice::emptyCurrent)
override;
237 const Vector3BasePtr& globalPosition,
238 const Vector3BasePtr& directionVec,
242 const DrawColor& color,
243 const Ice::Current& = Ice::emptyCurrent)
override;
246 const std::string& name,
247 const Ice::Current& = Ice::emptyCurrent)
override;
249 const std::string& name,
250 const Ice::Current& = Ice::emptyCurrent)
override;
252 const std::string& name,
253 const Ice::Current& = Ice::emptyCurrent)
override;
255 const std::string& name,
256 const Ice::Current& = Ice::emptyCurrent)
override;
258 const std::string& name,
259 const Ice::Current& = Ice::emptyCurrent)
override;
261 const std::string& name,
262 const Ice::Current& = Ice::emptyCurrent)
override;
264 const std::string& name,
265 const Ice::Current& = Ice::emptyCurrent)
override;
267 const std::string& name,
268 const Ice::Current& = Ice::emptyCurrent)
override;
270 const std::string& name,
271 const Ice::Current& = Ice::emptyCurrent)
override;
273 const std::string& name,
274 const Ice::Current& = Ice::emptyCurrent)
override;
276 const std::string& name,
277 const Ice::Current& = Ice::emptyCurrent)
override;
279 const std::string& name,
280 const Ice::Current& = Ice::emptyCurrent)
override;
282 const std::string& name,
283 const Ice::Current& = Ice::emptyCurrent)
override;
285 const std::string& name,
286 const Ice::Current& = Ice::emptyCurrent)
override;
289 const Ice::Current& = Ice::emptyCurrent)
override;
291 const Ice::Current& = Ice::emptyCurrent)
override;
293 const Ice::Current& = Ice::emptyCurrent)
override;
295 const Ice::Current& = Ice::emptyCurrent)
override;
297 const Ice::Current& = Ice::emptyCurrent)
override;
299 const Ice::Current& = Ice::emptyCurrent)
override;
301 const Ice::Current& = Ice::emptyCurrent)
override;
304 const Ice::Current& = Ice::emptyCurrent)
override;
306 const std::string& name,
307 const Ice::Current& = Ice::emptyCurrent)
override;
309 const Ice::Current& = Ice::emptyCurrent)
override;
311 const Ice::Current& = Ice::emptyCurrent)
override;
313 const Ice::Current& = Ice::emptyCurrent)
override;
315 const Ice::Current& = Ice::emptyCurrent)
override;
317 const Ice::Current& = Ice::emptyCurrent)
override;
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;
325 const Ice::Current& = Ice::emptyCurrent)
override;
328 Ice::StringSeq
layerNames(
const Ice::Current& = Ice::emptyCurrent)
override;
329 LayerInformationSequence
layerInformation(
const Ice::Current& = Ice::emptyCurrent)
override;
331 bool hasLayer(
const std::string&,
const Ice::Current& = Ice::emptyCurrent)
override;
332 void removeLayer(
const std::string&,
const Ice::Current& = Ice::emptyCurrent)
override;
335 void enableAllLayers(
const Ice::Current& = Ice::emptyCurrent)
override;
337 void enableSelections(
const std::string&,
const Ice::Current& = Ice::emptyCurrent)
override;
339 const Ice::Current& = Ice::emptyCurrent)
override;
340 void clearSelections(
const std::string&,
const Ice::Current& = Ice::emptyCurrent)
override;
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;
349 DebugDrawerSelectionList
getSelections(
const Ice::Current& = Ice::emptyCurrent)
override;
353 viz::Layer& getLayer(
const std::string& layerName);
354 viz::data::ElementSeq::iterator findLayerElement(
viz::Layer& layer,
355 const std::string& elementName);
357 template <
class Element>
359 setLayerElement(
viz::Layer& layer, Element element)
362 for (
size_t i = 0; i < layer.
data_.elements.size(); ++i)
364 if (layer.
data_.elements[i]->id == element.data_->id)
367 layer.
data_.elements[i] = element.data_;
379 template <
class Element>
381 setLayerElement(
const std::string& layerName, Element element)
383 setLayerElement(getLayer(layerName), element);
386 template <
class Element>
388 setAndCommit(
const std::string& layerName, Element element)
391 setLayerElement(layer, element);
395 void removeLayerElement(
viz::Layer& layer,
const std::string& name);
396 void removeAndCommit(
const std::string& layerName,
const std::string& name);
404 const std::string DEBUG_LAYER_NAME =
"debug";
410 std::map<std::string, viz::Layer> layers;
412 std::map<std::pair<std::string, std::string>,
viz::Robot> robots;
void removeSphereDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
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
Ice::StringSeq layerNames(const Ice::Current &=Ice::emptyCurrent) override
CommitResult commit(StagedCommit const &commit)
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
armarx::StringBlackWhitelist layerBlackWhitelist
void removePointCloudDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
const VariantTypeId Float
void exportLayer(const std::string &filename, const std::string &layerName, const Ice::Current &=Ice::emptyCurrent) override
void removeTextVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
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
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
void set24BitColoredPointCloudDebugLayerVisu(const std::string &name, const DebugDrawer24BitColoredPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
void removeSphereVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void removeLineDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void removePoseDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void enableSelections(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
void removePointCloudVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
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
void setTriMeshDebugLayerVisu(const std::string &name, const DebugDrawerTriMesh &triMesh, const Ice::Current &=Ice::emptyCurrent) override
void enableAllLayers(const Ice::Current &=Ice::emptyCurrent) override
void removeBoxVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void removeCylinderVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void removeTriMeshVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void select(const std::string &layer, const std::string &elementName, const Ice::Current &=Ice::emptyCurrent) override
void add(ElementT const &element)
void set24BitColoredPointCloudVisu(const std::string &layer, const std::string &name, const DebugDrawer24BitColoredPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
void removePolygonVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
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
void removeArrowVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void disableAllLayers(const Ice::Current &=Ice::emptyCurrent) override
void setPoseVisu(const std::string &layer, const std::string &name, const PoseBasePtr &globalPose, const Ice::Current &=Ice::emptyCurrent) override
void removeLineVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
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
void clearAll(const Ice::Current &=Ice::emptyCurrent) override
void remove24BitColoredPointCloudVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
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
void setBoxDebugLayerVisu(const std::string &name, const PoseBasePtr &globalPose, const Vector3BasePtr &dimensions, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
void deselect(const std::string &layer, const std::string &elementName, const Ice::Current &=Ice::emptyCurrent) override
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
void remove24BitColoredPointCloudDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void updateRobotNodeColor(const std::string &layer, const std::string &name, const std::string &robotNodeName, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
void setScaledPoseVisu(const std::string &layer, const std::string &name, const PoseBasePtr &globalPose, Ice::Float scale, const Ice::Current &=Ice::emptyCurrent) override
void setPoseDebugLayerVisu(const std::string &name, const PoseBasePtr &globalPose, const Ice::Current &=Ice::emptyCurrent) override
void updateRobotPose(const std::string &layer, const std::string &name, const PoseBasePtr &globalPose, const Ice::Current &=Ice::emptyCurrent) override
void removeCircleVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void removeRobotVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void setColoredPointCloudVisu(const std::string &layer, const std::string &name, const DebugDrawerColoredPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
void clearDebugLayer(const Ice::Current &=Ice::emptyCurrent) override
bool hasLayer(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
LayerInformationSequence layerInformation(const Ice::Current &=Ice::emptyCurrent) override
void removeColoredPointCloudVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
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
void updateRobotColor(const std::string &layer, const std::string &name, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
void setPointCloudDebugLayerVisu(const std::string &name, const DebugDrawerPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
void clearLayer(const std::string &layer, const Ice::Current &=Ice::emptyCurrent) override
void setPolygonDebugLayerVisu(const std::string &name, const PolygonPointList &polygonPoints, const DrawColor &colorInner, const DrawColor &colorBorder, Ice::Float lineWidth, const Ice::Current &=Ice::emptyCurrent) override
void setLineSetVisu(const std::string &layer, const std::string &name, const DebugDrawerLineSet &lineSet, const Ice::Current &=Ice::emptyCurrent) override
void setScaledPoseDebugLayerVisu(const std::string &name, const PoseBasePtr &globalPose, Ice::Float scale, const Ice::Current &=Ice::emptyCurrent) override
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
void removeCircleDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void disableSelections(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
void clearSelections(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
void enableDebugLayerVisu(bool visible, const Ice::Current &=Ice::emptyCurrent) override
void updateRobotConfig(const std::string &layer, const std::string &name, const NameValueMap &configuration, const Ice::Current &=Ice::emptyCurrent) override
Passes updates from DebugDrawerInterface to ArViz.
void removeTextDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void setPointCloudVisu(const std::string &layer, const std::string &name, const DebugDrawerPointCloud &pointCloud, const Ice::Current &=Ice::emptyCurrent) override
void removeColoredPointCloudDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void removeBoxDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void setLineDebugLayerVisu(const std::string &name, const Vector3BasePtr &globalPosition1, const Vector3BasePtr &globalPosition2, Ice::Float lineWidth, const DrawColor &color, const Ice::Current &=Ice::emptyCurrent) override
void removeLayer(const std::string &, const Ice::Current &=Ice::emptyCurrent) override
void removePolygonDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void setLineSetDebugLayerVisu(const std::string &name, const DebugDrawerLineSet &lineSet, const Ice::Current &=Ice::emptyCurrent) override
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
DebugDrawerSelectionList getSelections(const Ice::Current &=Ice::emptyCurrent) override
void exportScene(const std::string &filename, const Ice::Current &=Ice::emptyCurrent) override
void removeArrowDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void updateBlackWhitelist(const BlackWhitelistUpdate &update, const Ice::Current &=Ice::emptyCurrent) override
void enableLayerVisu(const std::string &layer, bool visible, const Ice::Current &=Ice::emptyCurrent) override
void setTriMeshVisu(const std::string &layer, const std::string &name, const DebugDrawerTriMesh &triMesh, const Ice::Current &=Ice::emptyCurrent) override
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
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
void removeLineSetVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void removePoseVisu(const std::string &layer, const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void setSphereDebugLayerVisu(const std::string &name, const Vector3BasePtr &globalPosition, const DrawColor &color, Ice::Float radius, const Ice::Current &=Ice::emptyCurrent) override
This file offers overloads of toIce() and fromIce() functions for STL container types.
void removeLineSetDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void removeTriMeshDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void removeCylinderDebugLayerVisu(const std::string &name, const Ice::Current &=Ice::emptyCurrent) override
void setArViz(viz::Client arviz)