flexbe_app icon indicating copy to clipboard operation
flexbe_app copied to clipboard

Unexpected Behavior if State and Outcome have identical Names on branch "ros2-devel"

Open tiko5000 opened this issue 2 years ago • 1 comments

Given this setup: If you try to connect outcome done of State A to the outcome A of the behavior.

grafik

The arrow automatically points to the State A itself, instead of the the outcome A of the behavior.

grafik

If connected to the outcome B of the behavior, the arrow automatically points to the State B instead of the the outcome B of the behavior.

grafik

The same inside a Concurrency Container: The Outputs can be connected.

grafik

tiko5000 avatar Jun 30 '23 09:06 tiko5000

Effectively these outcomes are same as a state for connecting transitions.
You rightfully argue that we should detect and prevent this conflict, so I will mark as enhancement for future development, but do not expect to be a near term priority.

To avoid, follow a standard naming convention. We normally use PascalCase for state names, and snake_case for outcomes. So your container outcomes would be "a" and "b" which would not conflict.

dcconner avatar Jul 24 '23 16:07 dcconner