QuanergySystems / quanergy_client_ros

Quanergy ROS driver sample source

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to use ROS timestamp

opened this issue · comments

Hello

We are unable to configure the driver to use ROS time, getting always a relative time (relative to driver launch).
We tried with client.xml and including the flag --useRosTime in arguments, but no success.
We also tried to solve this issue and this is what we found:

  • In file simple_publisher.h:
    • In line 31, in constructor SimplePublisher( const std::string& topic = "unnamed", bool useRosTime = false) both useRosTime_ and useRosTime are true
    • In line 43 , when running instantiated object's (with SimplePublisher constructor) method "slot", useRosTime_ is false

Please solve this issue

Regards

Thanks for the information. It appears that a recent refactor may have inadvertently broken this. We'll take a closer look.

Thanks for bringing the issue to our attention, and sorry for any problems that it has caused you.
There is a new release, v2.3.1 that should fix the bug. The changes are also reflected on the master branch.