GaussianVisualization.h
Go to the documentation of this file.
1 
18 # pragma once
19 
20 // Global includes
21 #include <vector>
22 
23 // Package includes
24 #include <ros/ros.h>
25 #include <std_msgs/ColorRGBA.h>
26 #include <visualization_msgs/Marker.h>
27 
28 #include <tf/LinearMath/Vector3.h>
31 #include <tf/transform_datatypes.h>
32 
33 #include <Eigen/Core>
34 #include <Eigen/Geometry>
35 #include <Eigen/Eigenvalues>
36 
37 namespace Visualization
38 {
46  {
47  public:
48 
53 
58 
66 
72  void setScaleFactor(double pScale);
73 
79  void setObjectLocationFrameID(const std::string& pObjectLocationFrameID);
80 
86  void setAlphaChannel(const float pAlphaChannel);
87 
93  void setSigmaMultiplicator(const float pSigmaMultiplicator);
94 
101  void publishCovarianceEllipsoidMarker(const int pMarkerID, const std_msgs::ColorRGBA& pEllipsoidColor);
102 
113  boost::shared_ptr<visualization_msgs::Marker> generateCovarianceEllipsoidMarker(const int pMarkerID, const int pMarkerShape, const std::vector<std::vector<std::vector<float> > >& pWireFramePolygons, const float& pWireFrameWidth, const std_msgs::ColorRGBA& pEllipsoidColor);
114 
120  void publishCovarianceEllipsoidCoordinateSystemMarker(const int pMarkerID);
121 
129  void publishArrowToPoint(const int pMarkerID, const std_msgs::ColorRGBA& pColor, const boost::shared_ptr<Eigen::Quaternion<double> > pPoint);
130 
138  visualization_msgs::Marker generateArrowToPoint(const int pMarkerID, const std_msgs::ColorRGBA& pColor, const boost::shared_ptr<Eigen::Quaternion<double> > pPoint);
139 
146  void publishPointCloud(const int pMarkerID, const std::vector<boost::shared_ptr<Eigen::Quaternion<double> > > pCloud);
147 
155  visualization_msgs::Marker generatePointCloudPoint(const int pMarkerID, const unsigned int pId, const boost::shared_ptr<Eigen::Quaternion<double> >& pPoint);
156 
163  template <class T> void stlVectorToPointMsg(const std::vector<T> pPositionVector, geometry_msgs::Point& pROSPositionMsg);
164 
165  private:
166 
171 
176 
180  double mScale;
181 
186 
191 
196 
201 
206  };
207 }
visualization_msgs::Marker generatePointCloudPoint(const int pMarkerID, const unsigned int pId, const boost::shared_ptr< Eigen::Quaternion< double > > &pPoint)
void setSigmaMultiplicator(const float pSigmaMultiplicator)
void publishCovarianceEllipsoidMarker(const int pMarkerID, const std_msgs::ColorRGBA &pEllipsoidColor)
void publishArrowToPoint(const int pMarkerID, const std_msgs::ColorRGBA &pColor, const boost::shared_ptr< Eigen::Quaternion< double > > pPoint)
void publishPointCloud(const int pMarkerID, const std::vector< boost::shared_ptr< Eigen::Quaternion< double > > > pCloud)
visualization_msgs::Marker generateArrowToPoint(const int pMarkerID, const std_msgs::ColorRGBA &pColor, const boost::shared_ptr< Eigen::Quaternion< double > > pPoint)
void stlVectorToPointMsg(const std::vector< T > pPositionVector, geometry_msgs::Point &pROSPositionMsg)
void setKernel(const boost::shared_ptr< Eigen::Vector3d > &pMean, const boost::shared_ptr< Eigen::Matrix3d > &pCovariance)
boost::shared_ptr< Eigen::Vector3d > mMean
boost::shared_ptr< ros::Publisher > mPublisher
boost::shared_ptr< visualization_msgs::Marker > generateCovarianceEllipsoidMarker(const int pMarkerID, const int pMarkerShape, const std::vector< std::vector< std::vector< float > > > &pWireFramePolygons, const float &pWireFrameWidth, const std_msgs::ColorRGBA &pEllipsoidColor)
boost::shared_ptr< Eigen::Matrix3d > mCovariance
void setObjectLocationFrameID(const std::string &pObjectLocationFrameID)
void publishCovarianceEllipsoidCoordinateSystemMarker(const int pMarkerID)
void setAlphaChannel(const float pAlphaChannel)


asr_psm_visualizations
Author(s): Gehrung Joachim, Meißner Pascal
autogenerated on Sat Nov 9 2019 03:49:12