-
Notifications
You must be signed in to change notification settings - Fork 151
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
Huge delay (about 2 years) in ros messages timestamps when using PTP #366
Comments
Hi @mcamurri, The ouster-ros driver currently adds
Can you examine the the output of Also since this doesn't appear to be a driver problem it might be a good question to post on Ouster https://community.ouster.com. |
I actually thought of the opposite, that there is some problem with the driver (perhaps a mismatch with the SDK since it seems old). I'm not using a ethernet-usb adapter, and I have used the same computer with many other ouster devices before with no problem. Further, as shown by the outputs, the PTP is working correctly on the machine. I'll ask someone to the lab to post the output of the HTTP call you suggested. |
As you suggested, the issue has been reposted here: |
No the SDK version shouldn't impact the PTP as the SDK C++ client wasn't updated for the last two releases. In any case, the SDK client will be updated to a more a recent version as part of #363 I rarely use PTP in my daily development routine so I can't tell for certain that the ouster-ros driver is at fault here, but this part of the code wasn't much altered since it was introduced. As I noted above the driver merely forward the timestamp it receives from the sensor. The only thing that the driver does in addition to the SDK is by default it subtracts 37 seconds when PTP mode is in use but this can be easily eliminated by passing |
Based on the response of the |
Describe the bug
When the lidar is set in PTP mode, the timestamps produced have a fixed offset of
74986812
seconds (about 2 years) on a correctly configured machine with a PTP supported NIC.The output of
lspci -nnk | grep -A2 Ethernet
is:The output of
ethtool -T enp45s0
is:The Ouster diagnostic and ptp config files are attached here:
diagnostic_and_config.zip
To Reproduce
enp45s0
) and set it to link local modeptp4l
utility (config file is attached):the output is as follows:
phc2sys
to sync the NIC to theCLOCK_REALTIME
:Example output:
example output is:
which is consistent with the timestamps, which are in the order of
165xxxxxxx
nanoseconds while the actual ones from all other sensors are172xxxxxxx
The PTP syncing is correct as evidenced by the outputs above, but as double check the output of the
CLOC_REALTIME
and the NIC itself are also in sync:Screenshots
Configuration on the dashboard (everything was left untouched except for the PTP timestamp mode on the Ouster):
Platform (please complete the following information):
OS-1-128
ousteros-image-prod-bootes-v3.1.0+20240426041747
)noetic
Ubuntu 20.04
with kernel6.1.100-0601100-generic
x64
origin/master
as of 12 Sep 2024 (e59e9a4).Note that at this hash, the submodule for the ouster-sdk points to: 2898060 which is from Oct 2023
The text was updated successfully, but these errors were encountered: