Skip to content
This repository has been archived by the owner on Feb 21, 2021. It is now read-only.

[Issue #441] Replayer Pose3D and Pose3DEncoders threads sync #499

Merged
merged 1 commit into from
Jun 21, 2016
Merged
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
4 changes: 2 additions & 2 deletions src/stable/tools/replayer2/replayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ namespace replayer {

//tiempo para comprobar si vamos muy desacompasados y para rewind - forward
IceUtil::Time pretime = IceUtil::Time::now();
long long int checkState=(1000000+pretime.toMicroSeconds())/1000;
long long int checkState=(pretime.toMicroSeconds())/1000;

while((((relative) - (checkState - this->myPose3d->initState ))<0)&&(myfile.good())){
//no hacemos nada, estamos fuera de tiempo tenemos que avanzar al siguiente frame
Expand Down Expand Up @@ -859,7 +859,7 @@ namespace replayer {

//tiempo para comprobar si vamos muy desacompasados y para rewind - forward
IceUtil::Time pretime = IceUtil::Time::now();
long long int checkState=(1000000+pretime.toMicroSeconds())/1000;
long long int checkState=(pretime.toMicroSeconds())/1000;

while((((relative) - (checkState - this->myPose3d->initState ))<0)&&(myfile.good())){
//no hacemos nada, estamos fuera de tiempo tenemos que avanzar al siguiente frame
Expand Down