ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Hi, please help me out with this as well would really appreciate it!!!!

CLoned the following git repo: git clone https://github.com/ros/geometry2.git on kinetic for ubuntu 16.04

Getting the following error in the Geometry2/tf2 file:

/home/bhushan/catkin_ws/src/geometry2/tf2_ros/include/tf2_ros/static_transform_broadcaster.h:58:75: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11

/home/bhushan/catkin_ws/src/geometry2/tf2_ros/include/tf2_ros/static_transform_broadcaster.h:58:75: error: no matching function for call to ‘std::vector<geometry_msgs::transformstamped_<std::allocator<void> > >::vector(<brace-enclosed initializer="" list="">)’

In file included from /usr/include/c++/5/vector:64:0, from /usr/include/boost/format.hpp:17, from /usr/include/boost/math/policies/error_handling.hpp:31, from /usr/include/boost/math/special_functions/round.hpp:14, from /opt/ros/kinetic/include/ros/time.h:58, from /opt/ros/kinetic/include/ros/ros.h:38, from /home/bhushan/catkin_ws/src/geometry2/tf2_ros/src/static_transform_broadcaster.cpp:34:

/usr/include/c++/5/bits/stl_vector.h:407:9: note: candidate: template<class _inputiterator=""> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) vector(_InputIterator __first, _InputIterator __last,

further errors:

/home/bhushan/catkin_ws/src/geometry2/tf2_ros/src/static_transform_broadcaster.cpp:52:10: error: ‘predicate’ does not name a type auto predicate = &input { ^

/home/bhushan/catkin_ws/src/geometry2/tf2_ros/src/static_transform_broadcaster.cpp:55:10: error: ‘existing’ does not name a type auto existing = std::find_if(net_message_.transforms.begin(), net_message_.transforms.end(), predicate); ^

/home/bhushan/catkin_ws/src/geometry2/tf2_ros/src/static_transform_broadcaster.cpp:57:9: error: ‘existing’ was not declared in this scope if (existing != net_message_.transforms.end())