-
Notifications
You must be signed in to change notification settings - Fork 68
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
Fix test linking issues on Windows #10
Conversation
include/message_filters/cache.h
Outdated
@@ -272,12 +272,12 @@ class Cache : public SimpleFilter<M> | |||
|
|||
MConstPtr out ; | |||
|
|||
int i=cache_.size()-1 ; | |||
size_t i=cache_.size()-1 ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes the condition in the while loop (i>=0
) obsolete. When cache_
is empty a rollover would occur.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'll go back and verify anywhere that I made signedness changes.
test/msg_cache_unittest.cpp
Outdated
@@ -135,7 +135,7 @@ TEST(Cache, easySurroundingInterval) | |||
} | |||
|
|||
|
|||
std::shared_ptr<Msg const> buildMsg(double time, int data) | |||
std::shared_ptr<Msg const> buildMsg(int32_t time, int data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the argument be named seconds
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, also is there a reason that we don't have a double
constructor for time in ROS2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason that we don't have a
double
constructor for time in ROS2?
Probably just not implemented yet.
@tfoote I believe after this, we should be able to put this in ros2.repos for CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't speak much for Windows, but the changes look good to me and CI is all clear.
Fixes #9 by correctly depending on ament_cmake_ros as well as general cleaning of Windows-specific warnings.