ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Fairf4x's profile - activity

2022-09-10 23:10:04 -0500 received badge  Good Question (source)
2020-11-18 21:28:40 -0500 received badge  Nice Answer (source)
2019-12-26 10:30:55 -0500 received badge  Nice Question (source)
2018-10-18 10:46:46 -0500 received badge  Student (source)
2018-01-11 02:32:03 -0500 commented question Drone/Quadrotor simulation

I believe you can find a lot of useful information in hector_quadrotor project. They already have gazebo model of their

2017-05-18 13:47:05 -0500 received badge  Famous Question (source)
2017-01-18 16:13:28 -0500 received badge  Notable Question (source)
2017-01-17 15:29:53 -0500 received badge  Self-Learner (source)
2017-01-17 15:29:53 -0500 received badge  Teacher (source)
2017-01-17 15:22:12 -0500 received badge  Supporter (source)
2017-01-17 15:16:19 -0500 answered a question Conversion from ROS timestamp to ISO-8601 time format

I tested the code and it works as it is.

Later I found out, that the string compliant with ISO-8601 can represent time with various precision.

Anyway the output I got from the ROS timestamp using the function:

boost::posix_time::to_iso_extended_string(my_posix_time)

looked like this:

iso_time_str = 2017-01-17T21:02:40.289279

I needed only seconds so I am happy with the result. Thank you for quick answer.

2017-01-17 13:44:59 -0500 received badge  Scholar (source)
2017-01-17 13:44:47 -0500 received badge  Popular Question (source)
2017-01-14 16:11:23 -0500 asked a question Conversion from ROS timestamp to ISO-8601 time format

I would like to convert a ROS timestamp like this:

ros::Time stamp = ros::Time::now();

to string in ISO-8601 format.

The best resource I was able to google up so far is this topic:

http://stackoverflow.com/questions/79...

Is there by any chance any function in ROS I can use instead of coding my own convertor?