rapyuta-robotics / RapyutaSimulationPlugins

Apache License 2.0
18 stars 9 forks source link

Time Sync #200

Closed Hisham178 closed 12 months ago

Hisham178 commented 1 year ago

How do we sync time, because I noticed time from odom and sensors up untill nano seconds. But from blueprint only in seconds?

yuokamoto commented 1 year ago

1) Since nano seconds is defined as unsigned int which is not supported in BP, nano seconds can not be exposed. 2) Since time in header is fill from UE time, such as UGameplayStatics::GetTimeSeconds(GetWorld()), you can get/save time when odom is published inside UE.

Hisham178 commented 1 year ago

I just found out, you can get up to nano second by doing this. With sim time is true and clock topic. I can finally sync my time across all my nodes

Screenshot from 2023-08-29 15-39-38