-
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
Support for custom timestamp #97
Comments
Can you give some more details on exactly what you are trying to do and how the current code doesn't meet your needs? As far as I can tell the current code doesn't directly depend on |
@clalancette Sorry for not being clearer. I am referring to the |
Sorry, now I see what you mean. I think that as it stands, that won't really work because the code expects those fields to be a particular type. I think you'd have to reimplement parts of https://github.com/ros2/message_filters/blob/rolling/include/message_filters/message_traits.h to make it work properly. |
@clalancette |
Please feel free to open a PR if you implement something. As long as it doesn't break backwards compatibility (i.e. the default is still to use |
I do not plan on working on it any time soon, but I am happy to hear that you are open to including this feature. |
I also need this feature. If I donot use |
It seems user override the namespace message_filters
{
namespace message_traits
{
template<>
struct TimeStamp<Msg>
{
static rclcpp::Time value(const Msg & m)
{
return m.user_stamp;
}
};
} // namespace message_traits
} // namespace message_filters |
Hello!
Thank you for developing such a useful package. It has become an irreplaceable piece of our system.
In our system, the timestamp is expressed as a single uint64 number with nanosecond precision. Even if converting from
nanosec
tosec
+nanosec
is perfectly feasible, it would be cleaner if we could just use the timestamp as is.Hence my question: would it be possible to use a custom definition of std_msgs/msg/Header Message for time synchronization with
TimeSynchronizer
orApproximateTimeSynchronizer
?Concretely, I would like to use a header whose timestamp is a single
uint64
stamp with nanosecond precision, instead of twoint32
anduint32
stamps with second and nanosecond precision respectively, as in the default ROS2 definition.If this feature is not implemented yet, I would like to contribute with a pull request. Just let me know if there is any request or suggestion on your side.
Regards
Giorgio
The text was updated successfully, but these errors were encountered: