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

Apply camera name in topics #2857

Conversation

hyunseok-yang
Copy link
Contributor

@hyunseok-yang hyunseok-yang commented Aug 24, 2023

Camera name is not applied into topic name.

[Tracked by RSDEV-472]

@hyunseok-yang
Copy link
Contributor Author

To achevie what I expected, it needs to be modified as latest commit.

@SamerKhshiboun
As we disccused at this PR #2764, the code should be modified.

the command

ros2 launch realsense2_camera rs_launch.py align_depth.enable:=true rgb_camera.profile:=640x480x6 depth_module.profile:=640x480x6 enable_sync:=True camera_name:=cam1 camera_namespace:=ns1

latest of ros2-development

/ns1/aligned_depth_to_color/camera_info
/ns1/aligned_depth_to_color/image_raw
/ns1/aligned_depth_to_color/image_raw/compressed
/ns1/aligned_depth_to_color/image_raw/compressedDepth
/ns1/aligned_depth_to_color/image_raw/theora
/ns1/color/camera_info
/ns1/color/image_raw
/ns1/color/image_raw/compressed
/ns1/color/image_raw/compressedDepth
/ns1/color/image_raw/theora
/ns1/color/metadata
/ns1/depth/camera_info
/ns1/depth/image_rect_raw
/ns1/depth/image_rect_raw/compressed
/ns1/depth/image_rect_raw/compressedDepth
/ns1/depth/image_rect_raw/theora
/ns1/depth/metadata
/ns1/extrinsics/depth_to_color
/ns1/extrinsics/depth_to_depth
/ns1/imu

after apply the latest commit

/ns1/cam1/aligned_depth_to_color/camera_info
/ns1/cam1/aligned_depth_to_color/image_raw
/ns1/cam1/aligned_depth_to_color/image_raw/compressed
/ns1/cam1/aligned_depth_to_color/image_raw/compressedDepth
/ns1/cam1/aligned_depth_to_color/image_raw/theora
/ns1/cam1/color/camera_info
/ns1/cam1/color/image_raw
/ns1/cam1/color/image_raw/compressed
/ns1/cam1/color/image_raw/compressedDepth
/ns1/cam1/color/image_raw/theora
/ns1/cam1/color/metadata
/ns1/cam1/depth/camera_info
/ns1/cam1/depth/image_rect_raw
/ns1/cam1/depth/image_rect_raw/compressed
/ns1/cam1/depth/image_rect_raw/compressedDepth
/ns1/cam1/depth/image_rect_raw/theora
/ns1/cam1/depth/metadata
/ns1/cam1/extrinsics/depth_to_color
/ns1/cam1/extrinsics/depth_to_depth
/ns1/cam1/imu

@SamerKhshiboun
Copy link
Collaborator

@hyunseok-yang Thanks for submitting the PR.
I see that a lot of test failed due to this change, and that what is blocking the PR right now.
Do you think you can solve these test issues ?

Assigning @Arun-Prasad-V as reviewer.

@SamerKhshiboun
Copy link
Collaborator

Tracked by RSDEV-472 internally.

We should also update the README and announce this change to all users.

@hyunseok-yang
Copy link
Contributor Author

@SamerKhshiboun
Well, it looks test suite was failed since I changed the topic of publishers.

I'm not sure I can modify all of test scirpt in the workspace.

And, for the README file, where should I modify it?

@Arun-Prasad-V
Copy link
Contributor

Hi @hyunseok-yang ,

Please take a look at this https://design.ros2.org/articles/topic_and_service_names.html.

image

Refer the last row: if you just prefix "~/" to the input topic name, it will automatically add the node namespace and the node name.

Can we try this?

@hyunseok-yang
Copy link
Contributor Author

Hi @hyunseok-yang ,

Please take a look at this https://design.ros2.org/articles/topic_and_service_names.html.

image Refer the last row: if you just prefix "~/" to the input topic name, it will automatically add the node namespace and the node name.

Can we try this?

Thank you for your suggestion.
It seems work!

I've updated the commit.

@hyunseok-yang hyunseok-yang force-pushed the fix-camera-name-in-topic branch from 92ce4ea to 72b5524 Compare August 25, 2023 06:45
@Arun-Prasad-V
Copy link
Contributor

@hyunseok-yang ,

Please update the poindcloud topic name as well. Refer file "named_filter.cpp" line number 125. https://github.com/IntelRealSense/realsense-ros/blob/72b552497892992fb31a8661f186192dd4d1c15c/realsense2_camera/src/named_filter.cpp#L125

@hyunseok-yang hyunseok-yang force-pushed the fix-camera-name-in-topic branch from 72b5524 to cd506dd Compare August 25, 2023 07:53
@hyunseok-yang hyunseok-yang force-pushed the fix-camera-name-in-topic branch from cd506dd to 180a711 Compare August 25, 2023 07:53
@hyunseok-yang
Copy link
Contributor Author

@hyunseok-yang ,

Please update the poindcloud topic name as well. Refer file "named_filter.cpp" line number 125. https://github.com/IntelRealSense/realsense-ros/blob/72b552497892992fb31a8661f186192dd4d1c15c/realsense2_camera/src/named_filter.cpp#L125

@Arun-Prasad-V
Updated that part as well.
Please review the latest commit :)

@hyunseok-yang
Copy link
Contributor Author

@Arun-Prasad-V

I think test suite scripts should be modified also in spite of topic is modified as we expected.

Could you give any guidance or hint where should I edit it?

@Arun-Prasad-V
Copy link
Contributor

@Arun-Prasad-V

I think test suite scripts should be modified also in spite of topic is modified as we expected.

Could you give any guidance or hint where should I edit it?

@hyunseok-yang ,
Sure. We will review and let you know about test suite updates and readme update.
Thanks.

cc: @PrasRsRos

@SamerKhshiboun SamerKhshiboun merged commit c92ddf0 into IntelRealSense:ros2-development Aug 29, 2023
@hyunseok-yang
Copy link
Contributor Author

@SamerKhshiboun
how about test suite??

@SamerKhshiboun
Copy link
Collaborator

@SamerKhshiboun how about test suite??

Tests have been fixed and merged by @PrasRsRos.
Thanks for your contributions

@hyunseok-yang hyunseok-yang deleted the fix-camera-name-in-topic branch September 7, 2023 02:04
tatsuya-ishihara added a commit to CMU-cabot/cabot-people that referenced this pull request Jun 14, 2024
both camera namespace and camera name are used for topic name (IntelRealSense/realsense-ros#2857)

DCO 1.1 Signed-off-by: Tatsuya Ishihara <tisihara@jp.ibm.com>
tatsuya-ishihara added a commit to CMU-cabot/cabot-people that referenced this pull request Jul 3, 2024
both camera namespace and camera name are used for topic name (IntelRealSense/realsense-ros#2857)

DCO 1.1 Signed-off-by: Tatsuya Ishihara <tisihara@jp.ibm.com>
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.

3 participants