-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: noetic-devel
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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": |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, its not recursive ;)
grey
out orhide
frames with argument--filter_style
) (Addresses Last used frames on top #13 )group
attribute in the yaml fileFrames
) and external frames (Other
)