-
Notifications
You must be signed in to change notification settings - Fork 10
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
Ros2 add RViz launch #433
Ros2 add RViz launch #433
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
use_rviz = LaunchConfiguration("use_rviz") | ||
declare_use_rviz_arg = DeclareLaunchArgument( | ||
"use_rviz", | ||
default_value="True", | ||
description="Run RViz simultaneously.", | ||
choices=["True", "true", "False", "false"], | ||
) |
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.
Shouldn't this be in simulation.launch.py
? What's the point of argument that makes the same file do nothing, better make that decision on higher level
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 may seem strange, but we already have it done in other packages as well (on latest ros2-lynx-devel). Since the arguments are passed to the parent launch file, there is no need to specify this parameter in bringup.launch.py and simulation.launch.py, which improves the readability of these two most important files.
The launch files are not ideal, but imo this solution is cleaner and reduce redundancy of declarated argument.
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.
That's not my point, this argument should be on simulation launch file level. There you decide if you should launch rviz or not, not inside rviz launching file. Why would you ever want to use rviz.launch file with argument that says "don't launch it"?
Picture that, If you go to simulation file you will see that rviz is called without any arguments so you assume that it is going to be launched. You don't have any indication that it should be otherwise. It's good to have arguments that are rviz specific "hidden" in simulation.launch, but this one refers to the way the simulation should be launched.
Description
Requirements
Tests 🧪