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

Reenable sensor_msgs test #422

Merged
merged 10 commits into from
May 27, 2021
Merged

Reenable sensor_msgs test #422

merged 10 commits into from
May 27, 2021

Conversation

gleichdick
Copy link
Contributor

This was separated from #368

@clalancette
Copy link
Contributor

Thanks for splitting this out. CI:

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

Signed-off-by: Chris Lalancette <[email protected]>
@clalancette
Copy link
Contributor

@gleichdick FYI, please take a look at 7eb81ba and let me know what you think. I did a few additional cleanups in there.

@gleichdick
Copy link
Contributor Author

Thanks, your cleanup commit looks good!

@clalancette
Copy link
Contributor

OK, Windows was complaining about stuffing doubles into floats. I don't have a great solution for that, so in 283cc4b, I ended up just doing a cast. That can lead to subtle problems in some situations, I guess, but I don't know what else to do there. Also, this is pre-existing behavior; we are just seeing it now because we added tests.

Here's another round of CI:

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

@clalancette
Copy link
Contributor

@ahcorde This all looks good to me, but since I've made some non-trivial contributions here, I'd appreciate a second review from you.

@@ -25,10 +25,10 @@
<depend>tf2_ros</depend>
<!-- <depend>python_orocos_kdl</depend> -->
<!-- <test_depend>rostest</test_depend> -->

<exec_depend>tf2_ros_py</exec_depend>
<!-- <exec_depend>tf2_ros_py</exec_depend> -->
Copy link
Contributor

Choose a reason for hiding this comment

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

remove

Comment on lines 26 to 27
<!-- <depend>python_orocos_kdl</depend> -->
<!-- <test_depend>rostest</test_depend> -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove

Comment on lines 66 to 67
cloud, "B", tf2::durationFromSec(
2.0));
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks wierd.

Suggested change
cloud, "B", tf2::durationFromSec(
2.0));
cloud, "B", tf2::durationFromSec(2.0));

Comment on lines 76 to 78
sensor_msgs::msg::PointCloud2 cloud_advanced = tf_buffer->transform(
cloud, "B", tf2::timeFromSec(2.0),
"A", tf2::durationFromSec(3.0));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
sensor_msgs::msg::PointCloud2 cloud_advanced = tf_buffer->transform(
cloud, "B", tf2::timeFromSec(2.0),
"A", tf2::durationFromSec(3.0));
sensor_msgs::msg::PointCloud2 cloud_advanced = tf_buffer->transform(
cloud, "B", tf2::timeFromSec(2.0), "A", tf2::durationFromSec(3.0));

Comment on lines 103 to 104
t.header.stamp.sec = 2;
t.header.stamp.nanosec = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you try this?

Suggested change
t.header.stamp.sec = 2;
t.header.stamp.nanosec = 0;
t.header.stamp.sec = rclcpp::Time(2, 0);

Comment on lines 60 to 61
cloud.header.stamp.sec = 2;
cloud.header.stamp.nanosec = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

same as below

@gleichdick
Copy link
Contributor Author

gleichdick commented May 26, 2021

Btw, closes #365

@ahcorde
Copy link
Contributor

ahcorde commented May 26, 2021

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

Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

small nit

@@ -23,12 +23,11 @@
<depend>sensor_msgs</depend>
<depend>tf2</depend>
<depend>tf2_ros</depend>
<!-- <depend>python_orocos_kdl</depend> -->
<!-- <test_depend>rostest</test_depend> -->
Copy link
Contributor

Choose a reason for hiding this comment

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

I still think we should remove this. It's a ros1 dependency

Copy link
Contributor

Choose a reason for hiding this comment

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

@gleichdick I will relaunch CI when this line will be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed them, furhtermore some more flake8 issues are resolved which the CI found. Maybe we should add the flake8 modules mentioned here to the CI of this project (not the big one)?

Copy link
Contributor

Choose a reason for hiding this comment

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

While I agree we should eventually do that, I don't think we should do that here. The next step for this package in my opinion is to split it up into separate tf2_sensor_msgs and tf2_sensor_msgs_py packages, and actually get the Python stuff working (which it currently isn't). At that point, it would make sense to enable the automated flake8 tests.

@ahcorde
Copy link
Contributor

ahcorde commented May 27, 2021

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

@clalancette
Copy link
Contributor

All right, we have two approvals and green CI. I'm going to merge this one, thanks for splitting it out @gleichdick .

@clalancette clalancette merged commit bb565b9 into ros2:ros2 May 27, 2021
@gleichdick gleichdick deleted the cp_tests_2 branch May 27, 2021 13:45
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