Skip to content

Commit

Permalink
fix issue #912
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Jan 15, 2024
1 parent cf91493 commit 6d356a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plotjuggler_plugins/ParserROS/ros_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ bool ParserROS::parseMessage(const PJ::MessageRef serialized_msg, double& timest
ts = sec + 1e-9*nsec;
}
else {
auto sec = _flat_msg.value[1].second.convert<double>();
auto nsec = _flat_msg.value[2].second.convert<double>();
ts = sec + 1e-9*nsec;
ts = _flat_msg.value[1].second.convert<RosMsgParser::Time>().toSec();
}
timestamp = (ts > 0) ? ts : timestamp;
}
Expand Down

0 comments on commit 6d356a3

Please sign in to comment.