39 #ifndef SICK_SCAN_MARKER_H_ 40 #define SICK_SCAN_MARKER_H_ 43 #include <std_msgs/ColorRGBA.h> 44 #include <visualization_msgs/MarkerArray.h> 46 #include "sick_scan/LFErecMsg.h" 47 #include "sick_scan/LIDoutputstateMsg.h" 61 void updateMarker(
const std::vector<SickScanMonField>& fields,
int fieldset,
int eval_field_logic);
63 void updateMarker(sick_scan::LIDoutputstateMsg&
msg,
int eval_field_logic);
65 void updateMarker(sick_scan::LFErecMsg& msg,
int eval_field_logic);
72 FieldInfo(
int idx=0,
int result=0,
const std::string& status=
"",
const std::string& name=
"",
const std_msgs::ColorRGBA&
color=std_msgs::ColorRGBA())
82 std::vector<visualization_msgs::Marker>
createMonFieldMarker(
const std::vector<FieldInfo>& field_info);
83 std::vector<visualization_msgs::Marker>
createMonFieldLegend(
const std::vector<FieldInfo>& field_info);
85 std::vector<visualization_msgs::Marker>
createOutputStateLegend(
const std::vector<std::string>& output_state,
const std::vector<std::string>& output_count,
const std::vector<std_msgs::ColorRGBA>& output_colors);
std::vector< visualization_msgs::Marker > createMonFieldsetLegend(int fieldset)
std::vector< visualization_msgs::Marker > m_scan_outputstate_legend
SickScanMarker(ros::NodeHandle *nh=0, const std::string &marker_topic="", const std::string &marker_frame_id="")
void updateMarker(const std::vector< SickScanMonField > &fields, int fieldset, int eval_field_logic)
std::vector< visualization_msgs::Marker > m_scan_mon_field_marker
virtual ~SickScanMarker()
std::vector< sick_scan::SickScanMonField > m_scan_mon_fields
std_msgs::ColorRGBA field_color
FieldInfo(int idx=0, int result=0, const std::string &status="", const std::string &name="", const std_msgs::ColorRGBA &color=std_msgs::ColorRGBA())
std::vector< visualization_msgs::Marker > createMonFieldLegend(const std::vector< FieldInfo > &field_info)
static std_msgs::ColorRGBA color(float r, float g, float b, float a=0.5f)
std::vector< visualization_msgs::Marker > createMonFieldMarker(const std::vector< FieldInfo > &field_info)
std::vector< visualization_msgs::Marker > createOutputStateLegend(const std::vector< std::string > &output_state, const std::vector< std::string > &output_count, const std::vector< std_msgs::ColorRGBA > &output_colors)
std::vector< visualization_msgs::Marker > m_scan_mon_field_legend
float m_marker_output_legend_offset_x
std::vector< visualization_msgs::Marker > m_scan_fieldset_legend
ros::Publisher m_marker_publisher