ros2 / message_filters

BSD 3-Clause "New" or "Revised" License
76 stars 66 forks source link

ClockQoS’ is not a member of ‘rclcpp’ #83

Closed UtkarshMishra04 closed 2 years ago

UtkarshMishra04 commented 2 years ago

Hi

While installing ros2_foxy, I am facing this error:

--- stderr: message_filters                                                                                                                            
/home/utkubuntu/ros2_foxy/src/ros2/message_filters/test/test_latest_time_policy.cpp: In member function ‘virtual void LatestTimePolicy_ChangeRateLeading_Test::TestBody()’:
/home/utkubuntu/ros2_foxy/src/ros2/message_filters/test/test_latest_time_policy.cpp:212:23: error: ‘ClockQoS’ is not a member of ‘rclcpp’; did you mean ‘Clock’?
  212 |     "/clock", rclcpp::ClockQoS());
      |                       ^~~~~~~~
      |                       Clock
/home/utkubuntu/ros2_foxy/src/ros2/message_filters/test/test_latest_time_policy.cpp: In member function ‘virtual void LatestTimePolicy_ChangeRateTrailing_Test::TestBody()’:
/home/utkubuntu/ros2_foxy/src/ros2/message_filters/test/test_latest_time_policy.cpp:298:23: error: ‘ClockQoS’ is not a member of ‘rclcpp’; did you mean ‘Clock’?
  298 |     "/clock", rclcpp::ClockQoS());
      |                       ^~~~~~~~
      |                       Clock
make[2]: *** [CMakeFiles/message_filters-test_latest_time_policy.dir/build.make:63: CMakeFiles/message_filters-test_latest_time_policy.dir/test/test_latest_time_policy.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:237: CMakeFiles/message_filters-test_latest_time_policy.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---

How to resolve this?

clalancette commented 2 years ago

Please open questions like this on https://answers.ros.org, which is our central Question and Answer site. You'll get a better answer there, and it will be searchable for the future.

Make sure to include a lot of information on what platform you are using, which ROS distribution you are using, and the exact steps you took.