Skip to content

The now() function in rclcpp::Node and rclcpp_lifecycle::LifecycleNode is not const #844

@mjeronimo

Description

@mjeronimo

This issue is a reminder to investigate the now() function in ROS2, considering whether it should be declared as const. This came up when in the costmap_2d_ros code where getRobotPose was declared as const, but uses the lifecycle node's own now() method, which is declared as non-const. The getRobotPose method had to have const removed. It seems that now() could be declared const (have to look into whether the node's state is actually being updated with a call to now).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions