marker_helper.h
Go to the documentation of this file.
00001 
00018 #ifndef MARKER_HELPER_H
00019 #define MARKER_HELPER_H
00020 
00021 #include <ros/ros.h>
00022 #include <visualization_msgs/MarkerArray.h>
00023 
00024 namespace visualization_server {
00025 
00026 
00027 class MarkerHelper {
00028 
00029 private:
00030 
00031     double DEFAULT_MARKER_LIFETIME = 2.0;
00032 
00033     double marker_lifetime_;
00034 
00035     std::string dome_config_path_;
00036     std::string mild_config_path_;
00037 
00038     bool parseDoubleCsv(std::string csv_in, std::vector<double> &csv_out, std::string delim);
00039 
00040     visualization_msgs::Marker createMarker(const std::string &name, const std::string &mesh, const std::vector<double> &pose, const std::vector<double> &scale, int id, bool use_mat);
00041 
00042     visualization_msgs::MarkerArray parseXmlFile(std::string xml_path);
00043 
00044 public:
00045 
00046     MarkerHelper() : MarkerHelper(DEFAULT_MARKER_LIFETIME, std::string(), std::string()) {}
00047 
00048     MarkerHelper(double marker_lifetime, const std::string &dome_config_path, const std::string &mild_config_path);
00049 
00050     visualization_msgs::MarkerArray getAllMarkersDome();
00051 
00052     visualization_msgs::MarkerArray getAllMarkersMild();
00053 
00054 };
00055 
00056 }
00057 
00058 #endif /* MARKER_HELPER_H */
00059 
00060 


asr_visualization_server
Author(s): Allgeyer Tobias, Braun Kai, Heller Florian, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Wittenbeck Valerij
autogenerated on Thu Jun 6 2019 21:15:28