Visu.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #include "datatypes/Location.h"
7 
9 {
10 
11  class Visu
12  {
13  public:
15  {
17  std::optional<Eigen::Vector3f> extents;
18  };
19 
21 
22  {
23  }
24 
25  ~Visu() = default;
26 
28  locationsToLayer(const std::string& layerName,
29  const std::map<std::string, FramedLocationData>& locationData) const;
30 
32  const std::string& layerName,
33  const std::map<std::string, Eigen::Matrix4f>& locationGlobalPoses) const;
34 
36  const std::string& layerName,
37  const std::map<std::string, std::pair<Eigen::Matrix4f, Eigen::Vector3f>>&
38  locationGlobalPosesAndExtends) const;
39 
40  protected:
42  const std::string& id,
43  const Eigen::Matrix4f& locationGlobalPose) const;
44 
46  const std::string& id,
47  const Eigen::Matrix4f& locationGlobalPose,
48  const Eigen::Vector3f& extends) const;
49 
50  public:
51  struct Settings
52  {
53  // FramedLocation
55 
56  // FramedBoxedLocation
58 
59  } settings;
60 
61  protected:
63  };
64 } // namespace armarx::priorknowledge::util::location
Client.h
armarx::priorknowledge::util::location::Visu::Visu
Visu(viz::Client &arviz)
Definition: Visu.h:20
armarx::priorknowledge::util::location::Visu::framedBoxedLocationsToLayer
viz::Layer framedBoxedLocationsToLayer(const std::string &layerName, const std::map< std::string, std::pair< Eigen::Matrix4f, Eigen::Vector3f >> &locationGlobalPosesAndExtends) const
Definition: Visu.cpp:68
armarx::priorknowledge::util::location::Visu::FramedLocationData::extents
std::optional< Eigen::Vector3f > extents
Definition: Visu.h:17
armarx::priorknowledge::util::location::Visu::Settings::framedBoxedLocationColor
viz::Color framedBoxedLocationColor
Definition: Visu.h:57
ScopedClient.h
armarx::priorknowledge::util::location::Visu
Definition: Visu.h:11
armarx::priorknowledge::util::location::Visu::addFramedBoxedLocationToLayer
void addFramedBoxedLocationToLayer(viz::Layer &, const std::string &id, const Eigen::Matrix4f &locationGlobalPose, const Eigen::Vector3f &extends) const
Definition: Visu.cpp:22
armarx::priorknowledge::util::location::Visu::FramedLocationData
Definition: Visu.h:14
armarx::priorknowledge::util::location::Visu::arviz
viz::Client & arviz
Definition: Visu.h:62
armarx::priorknowledge::util::location::Visu::Settings
Definition: Visu.h:51
Color
uint32_t Color
RGBA color.
Definition: color.h:8
armarx::viz::Color
Definition: Color.h:13
armarx::priorknowledge::util::location::Visu::FramedLocationData::globalPose
Eigen::Matrix4f globalPose
Definition: Visu.h:16
GfxTL::Matrix4f
MatrixXX< 4, 4, float > Matrix4f
Definition: MatrixXX.h:601
Location.h
armarx::priorknowledge::util::location::Visu::settings
struct armarx::priorknowledge::util::location::Visu::Settings settings
armarx::priorknowledge::util::location::Visu::Settings::framedLocationArrowColor
viz::Color framedLocationArrowColor
Definition: Visu.h:54
armarx::priorknowledge::util::location::Visu::~Visu
~Visu()=default
armarx::priorknowledge::util::location::Visu::addFramedLocationToLayer
void addFramedLocationToLayer(viz::Layer &, const std::string &id, const Eigen::Matrix4f &locationGlobalPose) const
Definition: Visu.cpp:8
armarx::priorknowledge::util::location::Visu::locationsToLayer
viz::Layer locationsToLayer(const std::string &layerName, const std::map< std::string, FramedLocationData > &locationData) const
Definition: Visu.cpp:35
armarx::viz::Color::green
static Color green(int g=255, int a=255)
Definition: Color.h:84
armarx::viz::Client
Definition: Client.h:109
armarx::priorknowledge::util::location
Definition: Visu.cpp:5
armarx::viz::Layer
Definition: Layer.h:12
armarx::priorknowledge::util::location::Visu::framedLocationsToLayer
viz::Layer framedLocationsToLayer(const std::string &layerName, const std::map< std::string, Eigen::Matrix4f > &locationGlobalPoses) const
Definition: Visu.cpp:54