You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is for the same ability with ros2/rclcpp#910 for rclpy. i believe that this is needed for rclpy also not only for rclcpp.
Sorry, I didn't understand that.
The title sounds like rclpy is not using ROS_DOMAIN_ID environment variable.
Can you update the description and reopen? Thanks!
For the same reason than here ros2/rclcpp#910 (comment), it's better to wait now. The other set of PRs will be done soon, after that, this will be unblocked.
Activity
fujitatomoya commentedon Dec 17, 2019
related to ros2/rclcpp#910
ivanpauno commentedon Dec 18, 2019
Closing, as I think it has been clarified in ros2/rclcpp#910 (comment).
Please, reopen if not.
fujitatomoya commentedon Dec 19, 2019
@ivanpauno
this is for the same ability with ros2/rclcpp#910 for rclpy. i believe that this is needed for rclpy also not only for rclcpp.
ivanpauno commentedon Dec 19, 2019
Sorry, I didn't understand that.
The title sounds like rclpy is not using
ROS_DOMAIN_IDenvironment variable.Can you update the description and reopen? Thanks!
fujitatomoya commentedon Dec 20, 2019
@ivanpauno
my bad, that confuses you.
will do it right now.
[-]Domain ID not changable via ROS_DOMAIN_ID[/-][+]Ability to configure domain ID in rclpy[/+]suab321321 commentedon Jan 2, 2020
@ivanpauno sir I would like to contribute to this.
ivanpauno commentedon Jan 2, 2020
For the same reason than here ros2/rclcpp#910 (comment), it's better to wait now. The other set of PRs will be done soon, after that, this will be unblocked.
fujitatomoya commentedon Jun 11, 2020
@ivanpauno
this one too, you can leave it to us.
Barry-Xu-2018 commentedon Jun 12, 2020
@ivanpauno @fujitatomoya
After checking current implementation of rclpy, it only supports use default rcl_opitions.
rclpy/rclpy/src/rclpy/_rclpy.c
Lines 523 to 528 in 8f601c6
If want to support configuring domain ID, I have to expose InitOption to rclpy.
What do you think ?
fujitatomoya commentedon Jun 15, 2020
@Barry-Xu-2018
i think we do need to expose InitOption to rclpy, i think that's the idea.
Barry-Xu-2018 commentedon Jun 15, 2020
Thank you.
Barry-Xu-2018 commentedon Jun 16, 2020
@ivanpauno
Friendly ping.
If have time, please look at comment. #484 (comment)
I want to hear your opioin.
ivanpauno commentedon Jun 29, 2020
Prefer adding an extra keyword argument to the functions with a default:
rclpy/rclpy/rclpy/__init__.py
Line 62 in 7116fb4
rclpy/rclpy/rclpy/context.py
Line 36 in 7116fb4
Both should have a new
, domain_id: int = get_default_domain_id()argument.In
_rclpy.c, you will need to write a newrclpy_get_default_domain_idfunction, and extendrclpy_initsignature with an extra argument.Barry-Xu-2018 commentedon Jun 30, 2020
Thanks for your suggestion.
ivanpauno commentedon Jun 30, 2020
You could also use the number here as a default value, and
rclwill check the environment variable here.Barry-Xu-2018 commentedon Jul 1, 2020
Thanks. Got it.
Barry-Xu-2018 commentedon Jul 2, 2020
@ivanpauno @fujitatomoya
Please review codes.
#596
fujitatomoya commentedon Aug 6, 2020
CC: @ivanpauno
i am closing this since #596 is merged.