Skip to content

Add legend option for field-name-only labels - #7

Open
sevahul wants to merge 1 commit into
amgaber95:mainfrom
sevahul:feat/legend-field-name-only
Open

Add legend option for field-name-only labels#7
sevahul wants to merge 1 commit into
amgaber95:mainfrom
sevahul:feat/legend-field-name-only

Conversation

@sevahul

@sevahul sevahul commented Jul 27, 2026

Copy link
Copy Markdown

Summary

  • add a new Legend checkbox: Field Name Only
  • when enabled, legend labels use only the terminal field token (for example pose/position/x -> x)
  • preserve current label behavior as fallback and keep optional value display
  • add property tests to cover the new legend setting mapping

Validation

  • colcon test --packages-select rviz_2d_plot_plugin --event-handlers console_direct+
  • result: 22/22 tests passed

How it works

  • Without the checkbox activated:
image
  • With the checkbox activated:
image

@sevahul
sevahul marked this pull request as draft July 28, 2026 17:58
@sevahul
sevahul marked this pull request as ready for review July 28, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant