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

[YarpDataplayer] fixed timestamp propagation #2560

Merged
merged 1 commit into from
May 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions doc/release/master/yarpdataplayer_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
yarpdataplayer_fix {#master}
------------------

### Tools

#### yarpdataplayer

* fixed `yarpdataplayer` to interpret the timestamp correctly, dealing with locale issues, as described in [#2558](https://github.com/robotology/yarp/issues/2558).
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,8 @@ int DataplayerWorker::sendBottle(int part, int frame)
outBot = tmp;

//propagate timestamp
Stamp ts(frame, utilities->partDetails[part].timestamp[frame]);
std::string time = yarp::conf::numeric::to_string(utilities->partDetails[part].timestamp[frame]);
Bottle ts(time);
the_port->setEnvelope(ts);

if (utilities->sendStrict) {
Expand Down