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

Remove ROS arguments before passing to QApplication #474

Merged
merged 1 commit into from
Oct 22, 2019

Conversation

jacobperron
Copy link
Member

Resolves #442

Resolves #442

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@dirk-thomas
Copy link
Member

In ROS 1 the init(int argc, char ** argv) function not only used the ROS specific arguments but also updated the arguments to leave only the non-ROS arguments. I think a similar function would be very helpful to avoid the overhead from this PR.

Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for tackling it Jacob.

rviz2/src/main.cpp Show resolved Hide resolved
@jacobperron
Copy link
Member Author

In ROS 1 the init(int argc, char ** argv) function not only used the ROS specific arguments but also updated the arguments to leave only the non-ROS arguments. I think a similar function would be very helpful to avoid the overhead from this PR.

Sounds reasonable to me. But we should be careful in this case, since we still want to pass the argv containing ROS arguments later in main:

if (vapp.init(argc, argv)) {

@wjwwood
Copy link
Member

wjwwood commented Oct 22, 2019

Also see: ros2/rcl#219

@jacobperron jacobperron merged commit 8e68df4 into ros2 Oct 22, 2019
@delete-merged-branch delete-merged-branch bot deleted the jacob/rm_ros_args branch October 22, 2019 20:21
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.

rviz2 crashes when launched as a node
3 participants