Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add icons for location tags #141

Merged
merged 5 commits into from
Sep 4, 2023
Merged

Add icons for location tags #141

merged 5 commits into from
Sep 4, 2023

Conversation

luca-della-vedova
Copy link
Member

New feature implementation

Implemented feature

Closes #101. Adds icons to the small rectangles around the locations to show their properties on first inspection. An example of the behavior is below:

Screencast.from.2023-06-27.10-28-28.webm

Implementation description

I adapted the available icons from traffic editor and sketched two new ones for workcells and robot spawning. They don't look great but I'm not sure how to do them better, happy to substitute them with anything.
The code is very verbose because of the tags being contained in a vector, I'll play around a bit and see if I can simplify it a bit (but that might require refactoring the LocationTags component).

Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
@luca-della-vedova
Copy link
Member Author

Cleaned it up a bit, I suspect some of the duplicated code to go through new tags and spawn meshes if necessary could be refactored into a separate function but since the duplicated functions differ a bit (one always spawns all tags on new location, one needs to check for differences on updated tags) it would be not too immediate / introduce a bit of overhead, but that can be done if needed.

@luca-della-vedova luca-della-vedova marked this pull request as ready for review June 28, 2023 01:34
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
@luca-della-vedova
Copy link
Member Author

With 557d68f, removed spawn robot and workcell tag visualization since these will be handled by the upcoming Scenarios

@luca-della-vedova luca-della-vedova merged commit 72082a5 into main Sep 4, 2023
5 checks passed
@luca-della-vedova luca-della-vedova deleted the luca/location_icons branch September 4, 2023 02:03
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.

Add icons to the location markers
2 participants