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

Avoid using sys.argv in rclpy.init for the RosAdapters Node #144

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

ivanpauno
Copy link
Member

Fixes #106 (comment).

I was thinking on a regression test, but capturing the output to check if the warning was print doesn't sound like a correct solution, as they are temporal (talking about that: @hidmic should the support of the old command line arguments be deleted for Foxy or for G-Turtle?).

Currently, rclpy doesn't provide a way to introspect the arguments that were used to initialize a Context, so I don't see a good way of adding a regression test (without also adding that minimal enhancement in rclpy)).

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno added bug Something isn't working in review labels Apr 22, 2020
@ivanpauno ivanpauno requested a review from hidmic April 22, 2020 17:42
@ivanpauno ivanpauno self-assigned this Apr 22, 2020
Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @ivanpauno, LGTM !

About deprecating old rules, AFAIK they have been already (see ros2/rcl#603)

@ivanpauno
Copy link
Member Author

About deprecating old rules, AFAIK they have been already (see ros2/rcl#603)

mmm, I was still seeing some deprecation warnings ... but that PR is recent, maybe my workspace wasn't up to date.

@ivanpauno
Copy link
Member Author

ivanpauno commented Apr 22, 2020

CI config:

  • Builds up to launch_ros, test_launch_ros, launch_xml, launch_yaml
  • Tests launch_ros, test_launch_ros
  • Only fastrtps (it shouldn't behave differently with others rmw vendors)
  • Only Linux (extremely unlikely this change is platform dependent)

Jobs:

  • Linux Build Status

@ivanpauno ivanpauno changed the title Avoid using sys.argv in rclpy.init Avoid using sys.argv in rclpy.init for the RosAdapters Node Apr 22, 2020
@ivanpauno ivanpauno merged commit 1d4a912 into master Apr 22, 2020
@delete-merged-branch delete-merged-branch bot deleted the ivanpauno/fix-passing-argv-to-rclpy-init branch April 22, 2020 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants