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

add toSec() function to the rclcpp::Time Class #889

Closed
hakuturu583 opened this issue Oct 13, 2019 · 2 comments
Closed

add toSec() function to the rclcpp::Time Class #889

hakuturu583 opened this issue Oct 13, 2019 · 2 comments

Comments

@hakuturu583
Copy link

Feature request

In ROS1, we can get duration and time in seconds.
Via toSec() method. (ros::TimeBase< T, D > Class Template Reference)
But now, I think there is no API to get the time and duration in Seconds.
So, I want to add toSec() method to the rclcpp::Time Class

Feature description

toSec() method returns the rclcpp::Time and Duration data in Seconds.

Implementation considerations

@dirk-thomas
Copy link
Member

That functionality already exists since #526. Please note the docblock about the potential precision loss.

@hakuturu583
Copy link
Author

Thanks!

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

No branches or pull requests

2 participants