Skip to content

Support TF Prefixing#3332

Merged
Nir-Az merged 2 commits intorealsenseai:ros2-developmentfrom
pondersome:ros2-feature-tf-prefix
May 5, 2025
Merged

Support TF Prefixing#3332
Nir-Az merged 2 commits intorealsenseai:ros2-developmentfrom
pondersome:ros2-feature-tf-prefix

Conversation

@pondersome
Copy link
Contributor

  • Added a tf_prefix parameter that can be used to prefix all TF frames produced by the node.
  • Added documentation for this parameter and the base_frame_id parameter into the readme. Fixed some typos there too.
  • Added functionality to the launch file to warn about unsupported parameters
  • Added a test for the new tf_prefix parameter, but only supporting the D455 which I can test with
  • To run just the new test: python3 -m pytest test_camera_tf_tests.py -v -k "TestCamera_TestTF_Prefix"

- Added a tf_prefix parameter that can be used to prefix all TF frames produced by the node.
- Added documentation for this parameter and the base_frame_id parameter into the readme. Fixed some typos there too.
- Added functionality to the launch file to warn about unsupported parameters
- Added a test for the new tf_prefix parameter, but only supporting the D455 which I can test with
- To run just the new test:
python3 -m pytest test_camera_tf_tests.py -v -k "TestCamera_TestTF_Prefix"
@sysrsbuild
Copy link

Can one of the admins verify this patch?

@pondersome
Copy link
Contributor Author

this is meant to address:
#3331

# Get list of supported parameters
supported_params = set(param['name'] for param in configurable_parameters)

# Check for unsupported parameters in command line arguments
Copy link
Collaborator

@ashrafk93 ashrafk93 Apr 23, 2025

Choose a reason for hiding this comment

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

i see what you tried to do here, but its not alerting about arguments passed with command line.
i.e.

ros2 launch realsense2_camera rs_launch.py blabla:=true

doesn't throw any warning

for config file the check works though

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should be good to go. also added another missing parameter. the launch file still doesn't expose all available params, but i'm only adding those i've needed and tested.

@ashrafk93 ashrafk93 self-requested a review April 23, 2025 10:49
@ashrafk93 ashrafk93 requested a review from Nir-Az April 24, 2025 06:44
@Nir-Az Nir-Az merged commit a6f69ec into realsenseai:ros2-development May 5, 2025
5 of 7 checks passed
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.

4 participants