30 #ifndef MAPVIZ_PLUGINS_POINTCLOUD2_PLUGIN_H_ 31 #define MAPVIZ_PLUGINS_POINTCLOUD2_PLUGIN_H_ 47 #include <sensor_msgs/PointCloud2.h> 50 #include "ui_pointcloud2_config.h" 81 void Draw(
double x,
double y,
double scale);
85 void LoadConfig(
const YAML::Node& node,
const std::string& path);
86 void SaveConfig(YAML::Emitter& emitter,
const std::string& path);
92 void PrintInfo(
const std::string& message);
139 Ui::PointCloud2_config
ui_;
166 #endif // MAPVIZ_PLUGINS_LASERSCAN_PLUGIN_H_
std::vector< float > gl_point
void ResetTransformedPointClouds()
void AlphaEdited(double new_value)
bool Initialize(QGLWidget *canvas)
std::vector< double > max_
QColor CalculateColor(const StampedPoint &point)
void Draw(double x, double y, double scale)
void UpdateMinMaxWidgets()
void PointCloud2Callback(const sensor_msgs::PointCloud2ConstPtr &scan)
void ColorTransformerChanged(int index)
std::vector< uint8_t > gl_color
TFSIMD_FORCE_INLINE const tfScalar & y() const
void MaxValueChanged(double value)
void BufferSizeChanged(int value)
void PrintError(const std::string &message)
void SaveConfig(YAML::Emitter &emitter, const std::string &path)
void PrintInfo(const std::string &message)
void LoadConfig(const YAML::Node &node, const std::string &path)
void PointSizeChanged(int value)
void MinValueChanged(double value)
virtual ~PointCloud2Plugin()
TFSIMD_FORCE_INLINE const tfScalar & x() const
std::vector< float > features
QWidget * GetConfigWidget(QWidget *parent)
std::vector< StampedPoint > points
void SetSubscription(bool subscribe)
std::map< std::string, FieldInfo > new_features
float PointFeature(const uint8_t *, const FieldInfo &)
Ui::PointCloud2_config ui_
std::vector< double > min_
void UseAutomaxminChanged(int check_state)
std::deque< Scan > scans_
void UseRainbowChanged(int check_state)
void PrintWarning(const std::string &message)
std::string saved_color_transformer_