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

Search and Grouping Feature #39

Open
wants to merge 12 commits into
base: noetic-devel
Choose a base branch
from

Conversation

ipa-danb
Copy link
Contributor

@ipa-danb ipa-danb commented Dec 3, 2024

  • Bug fix: Deleted Frames not beeing able to be reused
  • Chore: Moved from prints to rospy logging
  • Feature: Added search bar for both tf and frame list (style: grey out or hide frames with argument --filter_style) (Addresses Last used frames on top #13 )
  • Feature: Add Grouping Option for frames by setting the group attribute in the yaml file
  • Feature: TF Frame list is automatically grouped by self-defined (Frames) and external frames (Other)
  • Feature: Clear Frame Buffer and Added loading animation for tf frame list when pressing either refresh button or deleting frames
  • Feature: Automatically Update TF Frame List when adding/duplicating frames (without clearing the frame buffer)

@ipa-danb ipa-danb requested a review from ipa-jsk December 3, 2024 17:49
@ipa-danb ipa-danb mentioned this pull request Dec 4, 2024
Copy link
Collaborator

@ipa-jsk ipa-jsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Nice work :)
Open questions for me:

  • UI for grouping?
  • documentation for grouping
  • clean commits

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! The grouping feature could also be mentioned, what do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea! But there is no UI (yet) to set the group, right?

@@ -379,17 +379,17 @@ def __init__(self, editor, element, style):
self.old_element = element

if style == "plane":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 169 potentially should copy the group, too? (+duplicate button)

@@ -190,13 +196,13 @@ def load_data(self, data):
f = Object_Mesh(name, position, orientation, frame["parent"], dat["package"], dat["path"], dat["scale"])
f.set_color(color)
else:
f = Frame(name, position, orientation, frame["parent"])
f = Frame(name, position, orientation, frame["parent"], group=group)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also add group to the SetFrame Service, shouldn't we?

@@ -7,12 +7,14 @@
import rospkg
import tf
import actionlib
import threading
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not used?

# Clear the existing items in the tree
self.widget.list_tf.clear()

# Create root items for grouping (this is just an example)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

# First, search in top-level items
top_level_items = self.widget.list_frames.findItems(name, Qt.MatchExactly)

# If not found at the top level, search recursively in child items
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, its not recursive ;)

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.

2 participants