Skip to content

Commit

Permalink
fix: rviz warning of updatePalette (autowarefoundation#3478)
Browse files Browse the repository at this point in the history
Signed-off-by: Takagi, Isamu <[email protected]>
  • Loading branch information
isamu-takagi authored Apr 26, 2023
1 parent 5a91719 commit 77f2adf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,14 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase
m_default_topic{default_topic}
{
m_display_type_property = new rviz_common::properties::EnumProperty(
"Polygon Type", "3d", "Type of the polygon to display object.", this, SLOT(updatePalette()));
"Polygon Type", "3d", "Type of the polygon to display object.");
// Option values here must correspond to indices in palette_textures_ array in onInitialize()
// below.
m_display_type_property->addOption("3d", 0);
m_display_type_property->addOption("2d", 1);
m_display_type_property->addOption("Disable", 2);
m_simple_visualize_mode_property = new rviz_common::properties::EnumProperty(
"Visualization Type", "Normal", "Simplicity of the polygon to display object.", this,
SLOT(updatePalette()));
"Visualization Type", "Normal", "Simplicity of the polygon to display object.");
m_simple_visualize_mode_property->addOption("Normal", 0);
m_simple_visualize_mode_property->addOption("Simple", 1);
// iterate over default values to create and initialize the properties.
Expand Down

0 comments on commit 77f2adf

Please sign in to comment.