/home/firmament/codes/24navigation/src/icp_localization_ros2/src/transform/TfPublisher.cpp: In member function ‘void icp_loco::TfPublisher::publishMapToRangeSensor(const Time&)’: /home/firmament/codes/24navigation/src/icp_localization_ros2/src/transform/TfPublisher.cpp:68:78: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’? 68 | std::cout<<"this should happen but where -------------------------------"<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/11/iostream:39, from /home/firmament/codes/24navigation/src/icp_localization_ros2/include/icp_localization_ros2/transform/RigidTransform.hpp:20, from /home/firmament/codes/24navigation/src/icp_localization_ros2/include/icp_localization_ros2/transform/TfPublisher.hpp:9, from /home/firmament/codes/24navigation/src/icp_localization_ros2/src/transform/TfPublisher.cpp:8: /usr/include/c++/11/ostream:684:5: note: ‘std::endl’ declared here 684 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ /home/firmament/codes/24navigation/src/icp_localization_ros2/src/transform/TfPublisher.cpp: In member function ‘void icp_loco::TfPublisher::odometryCallback(const Odometry&)’: /home/firmament/codes/24navigation/src/icp_localization_ros2/src/transform/TfPublisher.cpp:123:59: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’? 123 | std::cout<<"what the hell!!!!!!!!!!!!!!!!!!!!!!!!!!"<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/11/iostream:39, from /home/firmament/codes/24navigation/src/icp_localization_ros2/include/icp_localization_ros2/transform/RigidTransform.hpp:20, from /home/firmament/codes/24navigation/src/icp_localization_ros2/include/icp_localization_ros2/transform/TfPublisher.hpp:9, from /home/firmament/codes/24navigation/src/icp_localization_ros2/src/transform/TfPublisher.cpp:8: /usr/include/c++/11/ostream:684:5: note: ‘std::endl’ declared here 684 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~ In file included from /home/firmament/codes/24navigation/src/icp_localization_ros2/src/localizer_node.cpp:7: /home/firmament/codes/24navigation/src/icp_localization_ros2/include/icp_localization_ros2/ICPlocalization.hpp:51:73: warning: ‘geometry_msgs::msg::PoseWithCovarianceStamped_ >::ConstPtr’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;] 51 | const geometry_msgs::msg::PoseWithCovarianceStamped::ConstPtr &msg); | ^ In file included from /opt/ros/humble/include/geometry_msgs/geometry_msgs/msg/pose_with_covariance_stamped.hpp:7, from /opt/ros/humble/include/tf2_geometry_msgs/tf2_geometry_msgs/tf2_geometry_msgs.hpp:49, from /home/firmament/codes/24navigation/src/icp_localization_ros2/include/icp_localization_ros2/ICPlocalization.hpp:24, from /home/firmament/codes/24navigation/src/icp_localization_ros2/src/localizer_node.cpp:7: /opt/ros/humble/include/geometry_msgs/geometry_msgs/msg/detail/pose_with_covariance_stamped__struct.hpp:115:5: note: declared here 115 | ConstPtr; | ^~~~~~~~ gmake[2]: *** [CMakeFiles/icp_localization.dir/build.make:230: CMakeFiles/icp_localization.dir/src/transform/TfPublisher.cpp.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/icp_localization.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2