Skip to content

Update getTimestamp and getFramId to not return const references - #14

Merged
dhood merged 5 commits into
ros2from
update_gettimestamp
Apr 25, 2017
Merged

dhood merged 5 commits into
ros2from
update_gettimestamp

Conversation

@dhood

@dhood dhood commented Apr 19, 2017 •

Copy link
Copy Markdown
Member

Connects to ros2/navigation#5
getTimestamp and getFrameId are safe (enough) to return const ros::Time& in ROS 1.

For ROS 2, we need to convert from builtin_interfaces::msg::Time to tf2::TimePoint, which involves more than just passing the timestamp through.

For that reason, this PR changes the signature of getTimestamp to not return const references. For good measure, I did the same for getFrameId because you never know what might need to happen underneath.

@clalancette clalancette left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, and should fix the issues we are having.

@clalancette

Copy link
Copy Markdown
Contributor

Actually, while the changes look good to me, it would be best to get some CI on it.

@dhood

dhood commented Apr 25, 2017 •

Copy link
Copy Markdown
Member Author

ci osx Build Status
aarch64 Build Status
windows Build Status
linux Build Status

@dhood
dhood merged commit 3ac358a into ros2 Apr 25, 2017
@dhood dhood removed the in review Waiting for review (Kanban column) label Apr 25, 2017
@dhood
dhood deleted the update_gettimestamp branch April 25, 2017 19:47
srmainwaring pushed a commit to srmainwaring/geometry2 that referenced this pull request Sep 18, 2023
If the variables happen to have semicolons in them, then an
unquoted version means that we get CMake errors about
set_target_properties having the wrong number of arguments.
Make sure to quote all of the variables.

(cherry picked from commit 08bff5916ffd2331afa1511b66a8ce48125c2a10)

Signed-off-by: Chris Lalancette <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants