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
Rolling namespace in title #1074
Rolling namespace in title #1074
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.
Sorry, I fixed the linters error |
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.
Can you please remove all of the unrelated changes? It makes it hard to review what is actually changed here.
13e878d
to
8bfaaa7
Compare
Sorry, I used the |
Hm, it is interesting that those made all the changes they did, since we already run them (without |
I also put some efforts to get it working for humble. It would be nice to merge that pull #1073 request as well. |
/// Adding a namespace prefix on the window frame title | ||
std::string node_namespace; | ||
node_namespace = rviz_ros_node_.lock()->get_raw_node()->get_namespace(); | ||
if (node_namespace.compare("/") != 0) { | ||
title = node_namespace + " - " + title; | ||
} |
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.
I don't think we should add this by default. I think that the title is already too long. Let's remove this for now, since the rest of the PR already adds in the ability for the user to set it to what they want.
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.
This is getting closer! A few more changes that I think will clean this up.
… {CONFIG_PATH} and {CONFIG_FILENAME}
Co-authored-by: Chris Lalancette <clalancette@gmail.com> Signed-off-by: Markus Bader <markus.bader@tirol.com>
…rviz into rolling_namespace_in_title
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.
One more minor thing to fix, then we can run CI on this.
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.
Missing " added
Hm, I don't see it for some reason? Did you maybe forget to push? |
Yes, sorry |
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.
Thanks for all of the iteration here! I'll run full CI on this next to see where it is.
So it looks like Windows is unhappy with this change:
|
Sorry, I am not working with Windows. But I think I have a solution. It seems that the convention of path to string works with under Linux but not under Windows. I just added now c_str() to the path arguments, this is the suggested way. |
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.
Hi, I hope that was the issue, I do not have any Windows machine around for testing.
Co-authored-by: Chris Lalancette <clalancette@gmail.com> Signed-off-by: Markus Bader <markus.bader@tirol.com>
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.
I think if you apply the latest changes, it will now work. At least, I verified locally that it compiles on Windows for me. I also noticed that "relative_path" isn't what we want; we actually want "parent_path". With these things fixed, we can give CI another go.
Co-authored-by: Chris Lalancette <clalancette@gmail.com> Signed-off-by: Markus Bader <markus.bader@tirol.com>
Co-authored-by: Chris Lalancette <clalancette@gmail.com> Signed-off-by: Markus Bader <markus.bader@tirol.com>
https://github.com/Mergifyio backport humble iron |
✅ Backports have been created
|
* Update visualization_frame.cpp * window title format option added Signed-off-by: Markus Bader <markus.bader@tirol.com> Co-authored-by: Chris Lalancette <clalancette@gmail.com> (cherry picked from commit ea2dbb3) # Conflicts: # rviz_common/src/rviz_common/visualizer_app.cpp
* Update visualization_frame.cpp * window title format option added Signed-off-by: Markus Bader <markus.bader@tirol.com> Co-authored-by: Chris Lalancette <clalancette@gmail.com> (cherry picked from commit ea2dbb3) # Conflicts: # rviz_common/src/rviz_common/visualizer_app.cpp
Hi
I like to request a merge, with the proposed changes RVIZ shows the currently used namespace in the title. This comes very handy when using multiple robots with namespaces.
See #1073