Visu.cpp
Go to the documentation of this file.
1 #include "Visu.h"
2 
4 
6 
8 {
10  Visu::commonPlaceToLayer(const std::string& layerName,
11  const std::map<std::string, CommonPlaceData>& commonPlaceData) const
12  {
13  auto layer = arviz.layer(layerName);
14  for (auto& [id, data] : commonPlaceData)
15  {
16  auto o = armarx::viz::Object("");
17  o = o.fileByObjectFinder(armarx::ObjectID(data.objectId));
18  o.pose(data.globalPose).alpha(0.5);
19  layer.add(o);
20  }
21  return layer;
22  }
23 
24 } // namespace armarx::priorknowledge::util::common_place
armarx::priorknowledge::util::common_place::Visu::arviz
viz::Client & arviz
Definition: Visu.h:38
armarx::ObjectID
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
Definition: ObjectID.h:11
armarx::priorknowledge::util::common_place::Visu::commonPlaceToLayer
viz::Layer commonPlaceToLayer(const std::string &layerName, const std::map< std::string, CommonPlaceData > &data) const
Definition: Visu.cpp:10
Visu.h
armarx::viz::Object
Definition: Elements.h:321
data
uint8_t data[1]
Definition: EtherCATFrame.h:68
ObjectID.h
armarx::priorknowledge::util::common_place
Definition: Visu.cpp:7
Logging.h
armarx::viz::Client::layer
Layer layer(std::string const &name) const
Definition: Client.cpp:73
armarx::viz::Layer
Definition: Layer.h:12