Namespaces | Macros | Functions
zoneset_to_marker_conversion.h File Reference
#include <string>
#include <vector>
#include <fmt/format.h>
#include <geometry_msgs/Point.h>
#include <geometry_msgs/Point32.h>
#include <std_msgs/ColorRGBA.h>
#include <visualization_msgs/Marker.h>
#include "psen_scan_v2/ZoneSet.h"
Include dependency graph for zoneset_to_marker_conversion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 psen_scan_v2
 Root namespace for the ROS part.
 

Macros

#define TO_MARKER(zoneset_obj, polygon_type, polygon_index, tf_frame)
 

Functions

visualization_msgs::Marker psen_scan_v2::createMarker (const std::string &ns, const std_msgs::ColorRGBA &color, const std::string &frame_id, const std::vector< geometry_msgs::Point32 > &points, const double &z_offset=0)
 
geometry_msgs::Point psen_scan_v2::createPoint (const double &x, const double &y, const double &z)
 
std_msgs::ColorRGBA psen_scan_v2::createRGBA (const float &r, const float &g, const float &b, const float &a)
 
std::string psen_scan_v2::getRangeInfo (const ZoneSet &zoneset)
 
std::vector< visualization_msgs::Marker > psen_scan_v2::toMarkers (const ZoneSet &zoneset)
 

Macro Definition Documentation

◆ TO_MARKER

#define TO_MARKER (   zoneset_obj,
  polygon_type,
  polygon_index,
  tf_frame 
)
Value:
createMarker(fmt::format("active zoneset {}{} {}", #polygon_type, #polygon_index, getRangeInfo(zoneset_obj)), \
createRGBA(strcmp(#polygon_type, "muting") != 0, \
strcmp(#polygon_type, "warn") == 0, \
strcmp(#polygon_type, "muting") == 0, \
1), \
tf_frame, \
zoneset_obj.polygon_type##polygon_index.points, \
0.01 * (strcmp(#polygon_type, "warn") == 0) + 0.02 * (strcmp(#polygon_type, "muting") == 0))

Definition at line 31 of file zoneset_to_marker_conversion.h.

psen_scan_v2::createRGBA
std_msgs::ColorRGBA createRGBA(const float &r, const float &g, const float &b, const float &a)
Definition: zoneset_to_marker_conversion.h:52
psen_scan_v2::getRangeInfo
std::string getRangeInfo(const ZoneSet &zoneset)
Definition: zoneset_to_marker_conversion.h:105
psen_scan_v2::createMarker
visualization_msgs::Marker createMarker(const std::string &ns, const std_msgs::ColorRGBA &color, const std::string &frame_id, const std::vector< geometry_msgs::Point32 > &points, const double &z_offset=0)
Definition: zoneset_to_marker_conversion.h:62


psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Jun 22 2024 02:46:12