Function polygon_rviz_plugins::getColor
Defined in File polygon_parts.hpp
Function Documentation
-
std_msgs::msg::ColorRGBA polygon_rviz_plugins::getColor(rviz_common::properties::ColorProperty *color_property, rviz_common::properties::FloatProperty *alpha_property = nullptr)
Given a Color Property and an optional Float property, return a ROS Color message.
- Parameters:
color_property – Color selector
alpha_property – Optional alpha selector. If null, alpha is assumed to be 1.0
- Returns:
std_msgs::msg::ColorRGBA with all four channels in range [0, 1]