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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bridge between msgs::Float_V and ros_gz_interfaces/Float32Array msg types #306

Merged
merged 4 commits into from
Oct 4, 2022

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Sep 30, 2022

馃帀 New feature

Summary

Bridges the gz msgs::Float_V and a new ros_gz_interfaces/Float32Array message types

Alternatives considered

The initial implementation converts the gz msgs::Float_V msg type to ros2 std_msgs/Float32MultiArray msg type. However, this was discarded because the API doc for Float32MultiArray mentions that the message is deprecated as of Foxy.

Test it

Run the integration test:

colcon test --merge-install --event-handlers console_direct+ --packages-select ros_gz_bridge

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
@iche033 iche033 changed the title Bridge between msgs::Float_V<-> ros_gz_interfaces/Float32Array msg types Bridge between msgs::Float_V and ros_gz_interfaces/Float32Array msg types Sep 30, 2022
@osrf-triage osrf-triage added this to Inbox in Core development Sep 30, 2022
ignition::msgs::Float_V expected_msg;
createTestMsg(expected_msg);

EXPECT_FLOAT_EQ(expected_msg.data()[0], _msg->data()[0]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we double-check that all values are the same and the sizes are similar? Same in the other compareTestMsg.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, updated test 21f82d1

@ahcorde ahcorde moved this from Inbox to In review in Core development Sep 30, 2022
Signed-off-by: Ian Chen <ichen@openrobotics.org>
@iche033 iche033 merged commit 0f82d51 into humble Oct 4, 2022
Core development automation moved this from In review to Done Oct 4, 2022
@iche033 iche033 deleted the iche033/float_array branch October 4, 2022 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants