Skip to content

Add ability to configure domain ID - #596

Merged
ivanpauno merged 9 commits into
ros2:masterfrom
Barry-Xu-2018:topic-support-configure-domain-id
Aug 5, 2020
Merged

ivanpauno merged 9 commits into
ros2:masterfrom
Barry-Xu-2018:topic-support-configure-domain-id

Conversation

@Barry-Xu-2018

Copy link
Copy Markdown
Contributor

Signed-off-by: Barry Xu [email protected]

@Barry-Xu-2018

Barry-Xu-2018 commented Jul 8, 2020 •

Copy link
Copy Markdown
Contributor Author

After checking error, I find below 2 functions doesn't exist in rcl

  • rcl_init_options_get_domain_id
  • rcl_init_options_set_domain_id

Rpr__rclpy__ubuntu_focal_amd64 environment use rcl package from http://repo.ros2.org/ubuntu/testing/pool/main/r/ros-foxy-rcl/

ros-foxy-rcl-dbgsym_1.1.5-1focal.20200624.145908_amd64.deb 2020-06-24 15:26 180K
ros-foxy-rcl-dbgsym_1.1.5-1focal.20200625.081610_arm64.deb 2020-06-25 08:28 177K
ros-foxy-rcl_1.1.5-1focal.20200624.145908_amd64.deb 2020-06-24 15:26 118K
ros-foxy-rcl_1.1.5-1focal.20200625.081610_arm64.deb 2020-06-25 08:28 113K
ros-foxy-rcl_1.1.5-1focal.debian.tar.xz 2020-06-04 03:48 8.2K
ros-foxy-rcl_1.1.5-1focal.dsc 2020-06-04 03:48 1.4K
ros-foxy-rcl_1.1.5.orig.tar.gz 2020-06-04 03:48 181K

But these 2 functions are added at 6/30.
So have to wait for rcl package updated

@Barry-Xu-2018

Barry-Xu-2018 commented Jul 9, 2020 •

Copy link
Copy Markdown
Contributor Author

@ros-pull-request-builder

I find rcl package has been updated in http://repo.ros2.org/ubuntu/testing/pool/main/r/ros-foxy-rcl/.
This change depends on rcl commit (6/30).
I think current updated rcl package has included dependent interfaces.
Could you help to do retest ?

Comment thread rclpy/rclpy/__init__.py Resolved
@Barry-Xu-2018

Copy link
Copy Markdown
Contributor Author

@fujitatomoya

domain_id should be checked if it is greater than or equal to zero?

Updated codes.
Please review again.

Comment thread rclpy/rclpy/context.py Resolved

@fujitatomoya fujitatomoya left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@Barry-Xu-2018

Copy link
Copy Markdown
Contributor Author

@ivanpauno

Please help to review this commit.

Comment thread rclpy/rclpy/context.py Resolved
Comment thread rclpy/src/rclpy/_rclpy.c Resolved
Comment thread rclpy/src/rclpy/_rclpy.c Outdated
* \return domain id
*/
static PyObject *
rclpy_get_domain_id_in_context(PyObject * Py_UNUSED(self), PyObject * args)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Barry-Xu-2018 this comment still seems to be valid.

@ivanpauno ivanpauno added enhancement New feature or request in review Waiting for review (Kanban column) labels Jul 24, 2020
@Barry-Xu-2018

Copy link
Copy Markdown
Contributor Author

@ivanpauno

Please review again.

@Barry-Xu-2018
Barry-Xu-2018 force-pushed the topic-support-configure-domain-id branch from c35d9e4 to e756376 Compare July 27, 2020 07:15
Comment thread rclpy/rclpy/context.py Resolved
Comment thread rclpy/rclpy/utilities.py Resolved

@ivanpauno ivanpauno left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With #596 (comment) addressed and get_domain_id_in_context deleted I think this is ready to go.

Comment thread rclpy/rclpy/utilities.py Resolved
@Barry-Xu-2018
Barry-Xu-2018 force-pushed the topic-support-configure-domain-id branch from 6b5f7f9 to 5a8c761 Compare July 29, 2020 03:33
@Barry-Xu-2018

Copy link
Copy Markdown
Contributor Author

@ivanpauno

With #596 (comment) addressed and get_domain_id_in_context deleted I think this is ready to go.

Got it. Please look at commit 5a8c761.

@ivanpauno ivanpauno left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for all the iterations!

Comment thread rclpy/test/test_init_shutdown.py Resolved
Comment thread rclpy/test/test_init_shutdown.py Resolved
Signed-off-by: Barry Xu <[email protected]>
@Barry-Xu-2018

Copy link
Copy Markdown
Contributor Author

@ivanpauno

Update test codes at commit 43c42c3.

@ivanpauno

Copy link
Copy Markdown
Member

CI:

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

@ivanpauno
ivanpauno merged commit 04c9b54 into ros2:master Aug 5, 2020
@ivanpauno

Copy link
Copy Markdown
Member

Thanks @Barry-Xu-2018 !

crystaldust pushed a commit to crystaldust/rclpy that referenced this pull request Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request in review Waiting for review (Kanban column)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants