ros / geometry2

A set of ROS packages for keeping track of coordinate transforms.
191 stars 279 forks source link

Error while compiling using catkin for python3.8 #548

Closed vdorbala closed 1 year ago

vdorbala commented 1 year ago

While compiling the melodic-devel package, I get the folowing error -

`Errors
<< tf2:make /home/vdorbala/catkin_ws/logs/tf2/build.make.004.log

In file included from /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:18:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/cache.cpp:38: /opt/ros/melodic/include/std_msgs/Header.h:46:74: error: ‘allocator_traits’ in namespace ‘std’ does not name a template type typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _frame_id_type; ^ /opt/ros/melodic/include/std_msgs/Header.h:46:90: error: expected template-argument before ‘<’ token typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _frame_id_type; ^ /opt/ros/melodic/include/std_msgs/Header.h:46:90: error: expected ‘>’ before ‘<’ token In file included from /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:18:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/cache.cpp:38: /opt/ros/melodic/include/std_msgs/Header.h:46:141: error: template argument 3 is invalid typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _frame_id_type; ^ /opt/ros/melodic/include/std_msgs/Header.h:46:155: error: expected ‘::’ before ‘;’ token typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _frame_id_type; ^ /opt/ros/melodic/include/std_msgs/Header.h:46:155: error: expected identifier before ‘;’ token /opt/ros/melodic/include/std_msgs/Header.h:46:155: warning: ‘typedef’ was ignored in this declaration /opt/ros/melodic/include/std_msgs/Header.h:47:3: error: ‘_frame_id_type’ does not name a type _frame_id_type frame_id; ^ In file included from /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:18:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/cache.cpp:38: /opt/ros/melodic/include/std_msgs/Header.h: In constructor ‘stdmsgs::Header::Header_()’: /opt/ros/melodic/include/std_msgs/Header.h:29:7: error: class ‘stdmsgs::Header’ does not have any field named ‘frame_id’ , frame_id() { ^ /opt/ros/melodic/include/std_msgs/Header.h: In constructor ‘stdmsgs::Header::Header_(const ContainerAllocator&)’: /opt/ros/melodic/include/std_msgs/Header.h:34:7: error: class ‘stdmsgs::Header’ does not have any field named ‘frame_id’ , frame_id(_alloc) { ^ In file included from /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:18:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/cache.cpp:38: /opt/ros/melodic/include/std_msgs/Header.h: In static member function ‘static void ros::message_operations::Printer<stdmsgs::Header >::stream(Stream&, const string&, const stdmsgs::Header&)’: /opt/ros/melodic/include/std_msgs/Header.h:218:75: error: ‘allocator_traits’ in namespace ‘std’ does not name a template type Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.frame_id); ^ /opt/ros/melodic/include/std_msgs/Header.h:218:91: error: expected template-argument before ‘<’ token Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.frame_id); ^ /opt/ros/melodic/include/std_msgs/Header.h:218:91: error: expected ‘>’ before ‘<’ token /opt/ros/melodic/include/std_msgs/Header.h:218:179: error: template argument 3 is invalid Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.frame_id); ^ /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected ‘::’ before ‘;’ token Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.frame_id); ^ /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected identifier before ‘;’ token /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected template-argument before ‘;’ token /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected ‘>’ before ‘;’ token /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: template argument 1 is invalid /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected ‘::’ before ‘;’ token /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected identifier before ‘;’ token In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/cache.cpp:38:0: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h: At global scope: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:74: error: ‘allocator_traits’ in namespace ‘std’ does not name a template type typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _child_frame_id_type; ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:90: error: expected template-argument before ‘<’ token typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _child_frame_id_type; ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:90: error: expected ‘>’ before ‘<’ token In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/cache.cpp:38:0: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:141: error: template argument 3 is invalid typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _child_frame_id_type; ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:161: error: expected ‘::’ before ‘;’ token typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _child_frame_id_type; ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:161: error: expected identifier before ‘;’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:161: warning: ‘typedef’ was ignored in this declaration /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:46:3: error: ‘_child_frame_id_type’ does not name a type _child_frame_id_type child_frame_id; ^ In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/cache.cpp:38:0: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h: In constructor ‘geometrymsgs::TransformStamped::TransformStamped_()’: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:30:7: error: class ‘geometrymsgs::TransformStamped’ does not have any field named ‘child_frame_id’ , child_frame_id() ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h: In constructor ‘geometrymsgs::TransformStamped::TransformStamped_(const ContainerAllocator&)’: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:35:7: error: class ‘geometrymsgs::TransformStamped’ does not have any field named ‘child_frame_id’ , child_frame_id(_alloc) ^ In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/cache.cpp:38:0: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h: In static member function ‘static void ros::message_operations::Printer<geometrymsgs::TransformStamped >::stream(Stream&, const string&, const geometrymsgs::TransformStamped&)’: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:75: error: ‘allocator_traits’ in namespace ‘std’ does not name a template type Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.child_frame_id); ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:91: error: expected template-argument before ‘<’ token Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.child_frame_id); ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:91: error: expected ‘>’ before ‘<’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:185: error: template argument 3 is invalid Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.child_frame_id); ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected ‘::’ before ‘;’ token Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.child_frame_id); ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected identifier before ‘;’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected template-argument before ‘;’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected ‘>’ before ‘;’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: template argument 1 is invalid /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected ‘::’ before ‘;’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected identifier before ‘;’ token make[2]: [CMakeFiles/tf2.dir/src/cache.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... In file included from /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:18:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/include/tf2/buffer_core.h:44, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:32: /opt/ros/melodic/include/std_msgs/Header.h:46:74: error: ‘allocator_traits’ in namespace ‘std’ does not name a template type typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _frame_id_type; ^ /opt/ros/melodic/include/std_msgs/Header.h:46:90: error: expected template-argument before ‘<’ token typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _frame_id_type; ^ /opt/ros/melodic/include/std_msgs/Header.h:46:90: error: expected ‘>’ before ‘<’ token In file included from /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:18:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/include/tf2/buffer_core.h:44, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:32: /opt/ros/melodic/include/std_msgs/Header.h:46:141: error: template argument 3 is invalid typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _frame_id_type; ^ /opt/ros/melodic/include/std_msgs/Header.h:46:155: error: expected ‘::’ before ‘;’ token typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _frame_id_type; ^ /opt/ros/melodic/include/std_msgs/Header.h:46:155: error: expected identifier before ‘;’ token /opt/ros/melodic/include/std_msgs/Header.h:46:155: warning: ‘typedef’ was ignored in this declaration /opt/ros/melodic/include/std_msgs/Header.h:47:3: error: ‘_frame_id_type’ does not name a type _frame_id_type frame_id; ^ In file included from /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:18:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/include/tf2/buffer_core.h:44, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:32: /opt/ros/melodic/include/std_msgs/Header.h: In constructor ‘stdmsgs::Header::Header_()’: /opt/ros/melodic/include/std_msgs/Header.h:29:7: error: class ‘stdmsgs::Header’ does not have any field named ‘frame_id’ , frame_id() { ^ /opt/ros/melodic/include/std_msgs/Header.h: In constructor ‘stdmsgs::Header::Header_(const ContainerAllocator&)’: /opt/ros/melodic/include/std_msgs/Header.h:34:7: error: class ‘stdmsgs::Header’ does not have any field named ‘frame_id’ , frame_id(_alloc) { ^ In file included from /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:18:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/include/tf2/buffer_core.h:44, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:32: /opt/ros/melodic/include/std_msgs/Header.h: In static member function ‘static void ros::message_operations::Printer<stdmsgs::Header >::stream(Stream&, const string&, const stdmsgs::Header&)’: /opt/ros/melodic/include/std_msgs/Header.h:218:75: error: ‘allocator_traits’ in namespace ‘std’ does not name a template type Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.frame_id); ^ /opt/ros/melodic/include/std_msgs/Header.h:218:91: error: expected template-argument before ‘<’ token Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.frame_id); ^ /opt/ros/melodic/include/std_msgs/Header.h:218:91: error: expected ‘>’ before ‘<’ token /opt/ros/melodic/include/std_msgs/Header.h:218:179: error: template argument 3 is invalid Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.frame_id); ^ /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected ‘::’ before ‘;’ token Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.frame_id); ^ /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected identifier before ‘;’ token /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected template-argument before ‘;’ token /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected ‘>’ before ‘;’ token /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: template argument 1 is invalid /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected ‘::’ before ‘;’ token /opt/ros/melodic/include/std_msgs/Header.h:218:180: error: expected identifier before ‘;’ token In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/include/tf2/buffer_core.h:44:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:32: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h: At global scope: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:74: error: ‘allocator_traits’ in namespace ‘std’ does not name a template type typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _child_frame_id_type; ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:90: error: expected template-argument before ‘<’ token typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _child_frame_id_type; ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:90: error: expected ‘>’ before ‘<’ token In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/include/tf2/buffer_core.h:44:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:32: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:141: error: template argument 3 is invalid typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _child_frame_id_type; ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:161: error: expected ‘::’ before ‘;’ token typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _child_frame_id_type; ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:161: error: expected identifier before ‘;’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:45:161: warning: ‘typedef’ was ignored in this declaration /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:46:3: error: ‘_child_frame_id_type’ does not name a type _child_frame_id_type child_frame_id; ^ In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/include/tf2/buffer_core.h:44:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:32: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h: In constructor ‘geometrymsgs::TransformStamped::TransformStamped_()’: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:30:7: error: class ‘geometrymsgs::TransformStamped’ does not have any field named ‘child_frame_id’ , child_frame_id() ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h: In constructor ‘geometrymsgs::TransformStamped::TransformStamped_(const ContainerAllocator&)’: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:35:7: error: class ‘geometrymsgs::TransformStamped’ does not have any field named ‘child_frame_id’ , child_frame_id(_alloc) ^ In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/include/tf2/buffer_core.h:44:0, from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:32: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h: In static member function ‘static void ros::message_operations::Printer<geometrymsgs::TransformStamped >::stream(Stream&, const string&, const geometrymsgs::TransformStamped&)’: /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:75: error: ‘allocator_traits’ in namespace ‘std’ does not name a template type Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.child_frame_id); ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:91: error: expected template-argument before ‘<’ token Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.child_frame_id); ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:91: error: expected ‘>’ before ‘<’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:185: error: template argument 3 is invalid Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.child_frame_id); ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected ‘::’ before ‘;’ token Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.child_frame_id); ^ /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected identifier before ‘;’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected template-argument before ‘;’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected ‘>’ before ‘;’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: template argument 1 is invalid /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected ‘::’ before ‘;’ token /opt/ros/melodic/include/geometry_msgs/TransformStamped.h:260:186: error: expected identifier before ‘;’ token In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:35:0: /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h: At global scope: /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:41:74: error: ‘allocator_traits’ in namespace ‘std’ does not name a template type typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _error_string_type; ^ /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:41:90: error: expected template-argument before ‘<’ token typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _error_string_type; ^ /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:41:90: error: expected ‘>’ before ‘<’ token In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:35:0: /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:41:141: error: template argument 3 is invalid typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _error_string_type; ^ /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:41:159: error: expected ‘::’ before ‘;’ token typedef std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc> _error_string_type; ^ /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:41:159: error: expected identifier before ‘;’ token /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:41:159: warning: ‘typedef’ was ignored in this declaration /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:42:3: error: ‘_error_string_type’ does not name a type _error_string_type error_string; ^ In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:35:0: /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h: In constructor ‘tf2msgs::TF2Error::TF2Error_()’: /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:28:7: error: class ‘tf2msgs::TF2Error’ does not have any field named ‘error_string’ , error_string() { ^ /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h: In constructor ‘tf2msgs::TF2Error::TF2Error_(const ContainerAllocator&)’: /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:32:7: error: class ‘tf2msgs::TF2Error’ does not have any field named ‘error_string’ , error_string(_alloc) { ^ In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:35:0: /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h: In static member function ‘static void ros::message_operations::Printer<tf2msgs::TF2Error >::stream(Stream&, const string&, const tf2msgs::TF2Error&)’: /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:252:75: error: ‘allocator_traits’ in namespace ‘std’ does not name a template type Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.error_string); ^ /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:252:91: error: expected template-argument before ‘<’ token Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.error_string); ^ /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:252:91: error: expected ‘>’ before ‘<’ token /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:252:183: error: template argument 3 is invalid Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.error_string); ^ /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:252:184: error: expected ‘::’ before ‘;’ token Printer<std::basic_string<char, std::char_traits, typename std::allocator_traits::template rebind_alloc>>::stream(s, indent + " ", v.error_string); ^ /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:252:184: error: expected identifier before ‘;’ token /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:252:184: error: expected template-argument before ‘;’ token /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:252:184: error: expected ‘>’ before ‘;’ token /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:252:184: error: template argument 1 is invalid /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:252:184: error: expected ‘::’ before ‘;’ token /home/vdorbala/catkin_ws/devel/.private/tf2_msgs/include/tf2_msgs/TF2Error.h:252:184: error: expected identifier before ‘;’ token /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp: In function ‘void tf2::transformTF2ToMsg(const tf2::Transform&, geometry_msgs::TransformStamped&, ros::Time, const string&, const string&)’: /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:69:14: error: ‘geometrymsgs::TransformStamped<std::allocator >::_header_type {aka struct stdmsgs::Header<std::allocator >}’ has no member named ‘frame_id’ msg.header.frame_id = frame_id; ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:70:7: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ msg.child_frame_id = child_frame_id; ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp: In function ‘void tf2::transformTF2ToMsg(const tf2::Quaternion&, const tf2::Vector3&, geometry_msgs::TransformStamped&, ros::Time, const string&, const string&)’: /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:88:14: error: ‘geometrymsgs::TransformStamped<std::allocator >::_header_type {aka struct stdmsgs::Header<std::allocator >}’ has no member named ‘frame_id’ msg.header.frame_id = frame_id; ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:89:7: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ msg.child_frame_id = child_frame_id; ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp: In member function ‘bool tf2::BufferCore::setTransform(const TransformStamped&, const string&, bool)’: /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:214:19: error: ‘geometrymsgs::TransformStamped<std::allocator >::_header_type {aka struct stdmsgs::Header<std::allocator >}’ has no member named ‘frame_id’ stripped.header.frame_id = stripSlash(stripped.header.frame_id); ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:214:57: error: ‘geometrymsgs::TransformStamped<std::allocator >::_header_type {aka struct stdmsgs::Header<std::allocator >}’ has no member named ‘frame_id’ stripped.header.frame_id = stripSlash(stripped.header.frame_id); ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:215:12: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ stripped.child_frame_id = stripSlash(stripped.child_frame_id); ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:215:49: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ stripped.child_frame_id = stripSlash(stripped.child_frame_id); ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:219:16: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ if (stripped.child_frame_id == stripped.header.frame_id) ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:219:50: error: ‘geometrymsgs::TransformStamped<std::allocator >::_header_type {aka struct stdmsgs::Header<std::allocator >}’ has no member named ‘frame_id’ if (stripped.child_frame_id == stripped.header.frame_id) ^ In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:38:0: /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:221:188: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ CONSOLE_BRIDGE_logError("TF_SELF_TRANSFORM: Ignoring transform from authority \"%s\" with frame_id and child_frame_id \"%s\" because they are the same", authority.c_str(), stripped.child_frame_id.c_str()); ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:225:16: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ if (stripped.child_frame_id == "") ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:231:23: error: ‘geometrymsgs::TransformStamped<std::allocator >::_header_type {aka struct stdmsgs::Header<std::allocator >}’ has no member named ‘frame_id’ if (stripped.header.frame_id == "") ^ In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:38:0: /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:233:151: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ CONSOLE_BRIDGE_logError("TF_NO_FRAME_ID: Ignoring transform with child_frame_id \"%s\" from authority \"%s\" because frame_id not set", stripped.child_frame_id.c_str(), authority.c_str()); ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:241:24: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ stripped.child_frame_id.c_str(), authority.c_str(), ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:256:23: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ stripped.child_frame_id.c_str(), authority.c_str(), ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:266:70: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ CompactFrameID frame_number = lookupOrInsertFrameNumber(stripped.child_frame_id); ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:271:96: error: ‘geometrymsgs::TransformStamped<std::allocator >::_header_type {aka struct stdmsgs::Header<std::allocator >}’ has no member named ‘frame_id’ if (frame->insertData(TransformStorage(stripped, lookupOrInsertFrameNumber(stripped.header.frame_id), frame_number))) ^ In file included from /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:38:0: /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:277:207: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ CONSOLE_BRIDGE_logWarn("TF_OLD_DATA ignoring data from the past for frame %s at time %g according to authority %s\nPossible reasons are listed at http://wiki.ros.org/tf/Errors%%20explained", stripped.child_frame_id.c_str(), stripped.header.stamp.toSec(), authority.c_str()); ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp: In member function ‘geometry_msgs::TransformStamped tf2::BufferCore::lookupTransform(const string&, const string&, const ros::Time&) const’: /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:599:21: error: ‘geometrymsgs::TransformStamped<std::allocator >::_header_type {aka struct stdmsgs::Header<std::allocator >}’ has no member named ‘frame_id’ identity.header.frame_id = target_frame; ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:600:14: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ identity.child_frame_id = source_frame; ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp: In member function ‘geometry_msgs::TransformStamped tf2::BufferCore::lookupTransform(const string&, const ros::Time&, const string&, const ros::Time&, const string&) const’: /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:666:17: error: ‘geometrymsgs::TransformStamped<std::allocator >::_header_type {aka struct stdmsgs::Header<std::allocator >}’ has no member named ‘frame_id’ output.header.frame_id = target_frame; ^ /home/vdorbala/catkin_ws/src/geometry2/tf2/src/buffer_core.cpp:667:10: error: ‘geometry_msgs::TransformStamped {aka struct geometrymsgs::TransformStamped<std::allocator >}’ has no member named ‘child_frame_id’ output.child_frame_id = source_frame; ^

make[2]: *** [CMakeFiles/tf2.dir/src/buffer_core.cpp.o] Error 1

make[1]: *** [CMakeFiles/tf2.dir/all] Error 2

make: *** [all] Error 2 ` I want to use tf2_ros for python3, and am compiling the geometry2 package using python3 as suggested in this solution here. I've tried reinstalling RoS, but that does not fix the issue? What can be the error here?

vdorbala commented 1 year ago

Turned out to be an issue with my gcc version, which was 5. I updated it to 9 and it compiles now.