Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
新ui实例:
trigger_change:
- name: "visualize_state"
data:
- { config: { type: "circle", width: 2, radius: 10, start_position: [ 960, 540 ], color: "pink" } }
- { config: { type: "circle", width: 2, radius: 10, start_position: [ 900, 540 ], color: "pink" } }
- { config: { type: "circle", width: 2, radius: 10, start_position: [ 840, 540 ], color: "pink" } }
通过/visualize_state传入一个bool 数组, 顺序对应data中ui的顺序,0为红色,1为绿色。
flash:
- name: "customize_display"
data:
- { flag: 1, config: { type: "line", width: 2, color: "pink",start_position: [ 117, 456 ], end_position: [ 626, 230 ] } }
- { flag: 1, config: { type: "line", width: 3, color: "pink",start_position: [ 17, 456 ], end_position: [ 626, 230 ] } }
- { flag: 2, config: { type: "line", width: 2, color: "orange",start_position: [ 117, 456 ], end_position: [ 1245, 245 ] } }
通过/customize_display_ui传入一个uint32数据,只显示话题中数字对应flag的UI。可以有多个图形共用flag同时显示。