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

timestamp_domain #9172

Closed
mengxz0203 opened this issue Jun 7, 2021 · 6 comments
Closed

timestamp_domain #9172

mengxz0203 opened this issue Jun 7, 2021 · 6 comments

Comments

@mengxz0203
Copy link

Hello,I want to know how to record a bag file with system_time but not global_time? I have tried several times but failed.


Required Info
Camera Model D400
Firmware Version 05.12.12.100
Operating System & Version Win10
Kernel Version (Linux Only) 1909
Platform PC
SDK Version pyrealsense2
Language python
Segment Robot

Issue Description

I find timestamp_domain in the doc, but I don't know how to set system_time in viewer or with python code.
image
image

@mengxz0203
Copy link
Author

After I uncheck the Global Time Enabled, clock domain becomes hardware
image
image

@MartyG-RealSense
Copy link
Collaborator

Hi @mengxz0203 The link below contains Python scripting for setting the status of global time.

#8112

image

Instead of setting rs.option.global_time_enabled to '1' (true) like the script does, use '0' instead to disable global time.

@mengxz0203
Copy link
Author

@MartyG-RealSense I tried your code but the clock was hardware
image
image
so how to get system_time

@mengxz0203
Copy link
Author

@MartyG-RealSense And I also want to know the difference between global_time and system_time, thanks a lot.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jun 7, 2021

It looks as though your hardware clock image is from the RealSense Viewer. A Python program will not change any settings in the RealSense Viewer.

The global time setting toggles between Global Time when it is true and Hardware Clock (if supported) when it is false. Device time and system time are aligned when Global Time is enabled. The link below is a good reference about the workings of global time.

#4505 (comment)

System Time is a software timestamp that is used when hardware timestamps are not available (for example, if metadata support is not installed). If hardware timestamps are available, librealsense will take advantage of them.

#1294

On Windows, metadata support can be added using information in the link below, or more easily by instead using a pop-up box in the RealSense Viewer that may appear when launching it to request if you want to enable metadata support.

https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_windows.md#enabling-metadata-on-windows

More information about how different timestamps function is here:

#2188 (comment)

@mengxz0203
Copy link
Author

@MartyG-RealSense Thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants