-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
91eb4e4
to
94b8631
Compare
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.
@emersonknapp Now in mcap we have two timestamps for each message.
- timestamp when message was send
- timestamp when message was received or logged in.
For a while they are fulfilled both with received timestamp. However please consider to add both timestamps options in reader order.
e.g.
rosbag2_storage::ReadOrder::TimestampReceived
rosbag2_storage::ReadOrder::TimestampSend
We can throw some " feature unimplemented" exception for the case rosbag2_storage::ReadOrder::TimestampSend:
for a while
@MichaelOrlov there is no index on the publish time, we would need to make a new version of the MCAP spec to support that. Since it cannot be properly supported with current MCAP I would suggest not adding an enum option that leads users to believe it might start working at some point. |
@jhurliman In case of timestamp I tend to agree that it make sense to have only one enum value for received and sent timestamp. @emersonknapp After some consideration it looks like we will need reverse direction for all enum values in |
c0e026d
to
8f1d1d3
Compare
a9b1526
to
d88f653
Compare
@MichaelOrlov @james-rms @jhurliman re-requesting review now that ros2/rosbag2#1083 is merged |
Gist: https://gist.githubusercontent.com/emersonknapp/dd8525d484b3a202eccb140d466d6024/raw/ad6e7e56bc4b85a164c3cfb1588e08dfc4a4d102/ros2.repos |
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.
Implementation looks good to me.
Although need to fix failure on Windows build.
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
d88f653
to
a7a5440
Compare
Just as an FYI, I rebased this onto the latest so that I can use this as the basis for something else. |
@clalancette We have MS Windows build failure in this PR with message
May be you have came across with the similar issue and have some advice how to fix it? |
So it is tricky. The easiest thing to do is to rename your package to have a shorter name. It may also be possible to enable long paths, as described in https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation, but that comes with some tradeoffs (and would have to be a change to the infrastructure). |
@clalancette Thanks for the advice. |
Gist: https://gist.githubusercontent.com/emersonknapp/0ac509a1c6b43db9058f067b849a44cb/raw/ad6e7e56bc4b85a164c3cfb1588e08dfc4a4d102/ros2.repos |
I tried to go an alternate route of adding the test messages into a test-subpackage, not to be exposed as a released package, but it opened up some complexity with the message_definition_cache being able to find message definitions from installed package. I think the package rename is the most reliable solution for now, though I don't like it. |
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.
LGTM with green CI.
Gist: https://gist.githubusercontent.com/emersonknapp/d213d28d034b03ceb7a7f6cb26df5e56/raw/ad6e7e56bc4b85a164c3cfb1588e08dfc4a4d102/ros2.repos |
I am now realizing that I don't know if we have run Windows CI on this package before. It is not (yet) part of any released variant or |
4bc90dc
to
a7a5440
Compare
* Implement new set_read_order API for storage Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com> Signed-off-by: James Smith <james@foxglove.dev>
Depends on #51
Depends on ros2/rosbag2#1083