Go to the documentation of this file.
28 #include <RobotAPI/interface/visualization/DebugDrawerToArViz.h>
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;
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;
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;
81 void setPoseDebugLayerVisu(
const std::string& name,
const PoseBasePtr& globalPose,
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;
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;
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;
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;
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;
130 void enableLayerVisu(
const std::string& layer,
bool visible,
const Ice::Current& = Ice::emptyCurrent)
override;
133 Ice::StringSeq
layerNames(
const Ice::Current& = Ice::emptyCurrent)
override;
134 LayerInformationSequence
layerInformation(
const Ice::Current& = Ice::emptyCurrent)
override;
136 bool hasLayer(
const std::string&,
const Ice::Current& = Ice::emptyCurrent)
override;
137 void removeLayer(
const std::string&,
const Ice::Current& = Ice::emptyCurrent)
override;
140 void enableAllLayers(
const Ice::Current& = Ice::emptyCurrent)
override;
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;
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;
149 DebugDrawerSelectionList
getSelections(
const Ice::Current& = Ice::emptyCurrent)
override;
154 viz::Layer& getLayer(
const std::string& layerName);
155 viz::data::ElementSeq::iterator
156 findLayerElement(
viz::Layer& layer,
const std::string& elementName);
159 template <
class Element>
160 void setLayerElement(
viz::Layer& layer, Element element)
163 for (
size_t i = 0; i < layer.
data_.elements.size(); ++i)
165 if (layer.
data_.elements[i]->id == element.data_->id)
168 layer.
data_.elements[i] = element.data_;
179 template <
class Element>
180 void setLayerElement(
const std::string& layerName, Element element)
182 setLayerElement(getLayer(layerName), element);
185 template <
class Element>
186 void setAndCommit(
const std::string& layerName, Element element)
189 setLayerElement(layer, element);
193 void removeLayerElement(
viz::Layer& layer,
const std::string& name);
194 void removeAndCommit(
const std::string& layerName,
const std::string& name);
204 const std::string DEBUG_LAYER_NAME =
"debug";
210 std::map<std::string, viz::Layer> layers;
212 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)