-
Notifications
You must be signed in to change notification settings - Fork 219
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
rviz2 crashes when launched as a node #442
Comments
👍 I'm facing the same issue |
It worked for me to rewrite my launch file as below. I'm not sure if rviz should be launched as a node, though that seems to be a common practice.
|
I ran into a similar issue where I attempted to use the new option from the command line:
or
I guess this has something to do with rviz being run as a Qt application. |
Additionally, prior to ros2/launch_ros#52, if start_rviz_remapped_cmd = launch.actions.ExecuteProcess(
cmd=[os.path.join(get_package_prefix('rviz2'), 'lib/rviz2/rviz2'),
['__ns:=/', rviz_namespace],
['/some_topic:=some_topic_remapped'],
cwd=[launch_dir], output='screen') This no longer works, the namespace is not applied and some_topic is not remapped. |
The parsing is done during the call to
(Seems like) all that is needed is to have it ignore this flag by adding: QCommandLineOption ros_args(
QStringList() << "r" << "ros-args",
"ROS arguments passed to rclcpp::init");
parser.addOption(ros_args); probably here: The arguments are still passed to
I tested successfully launching as |
Also choking on the -r/--remap option introduced in ros2/launch_ros#59 |
As a temporary solution, checked out ros2/launch_ros@606eaee to proceed. |
@jacobperron @wjwwood - there are work-arounds for this like launching rviz as a proess instead of node but that means every launch file that is currently doing that will need to change in order to work with Eloquent. Can we get this on the Eloquent must-fix list please? |
@mkhansen-intel I'll look into resolving this. |
Resolves #442 Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Please see #474 for a proposed fix. |
Resolves #442 Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Thanks @jacobperron! |
thanks! |
When launching using a
launch_ros.actions.Node
, RViz2 crashes, choking on the newly introduced--ros-args
option. Seems to be caused by ros2/launch_ros#52The text was updated successfully, but these errors were encountered: