Skip to content

Commit

Permalink
use ros2 now()
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-edward committed Feb 9, 2023
1 parent 17aef04 commit faca521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uwrt_mars_rover_science/dinolite/src/cam_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void CamNode::frame() {
// check ok before reading a frame
if (rclcpp::ok() && capture_->read(frame)) {
// timestamp
auto stamp = std::chrono::system_clock::now();
auto stamp = this->get_clock()->now();

// fill message
sensor_msgs::msg::Image::UniquePtr image_msg(new sensor_msgs::msg::Image());
Expand Down

0 comments on commit faca521

Please sign in to comment.