Closed mjcarroll closed 2 years ago
As reported in #313, ros1_bridge can not successfully build with newer versions of GCC (such as 11.2.0 on Ubuntu Jammy).
ros1_bridge
This is one alternative which uses std::tuple_size on ROS 2's std::array (https://en.cppreference.com/w/cpp/container/array/tuple_size), and uses static_size from ROS 1's boost::array members.
std::tuple_size
std::array
static_size
boost::array
Here is an example in Compiler Explorer to demonstrate the methodology: example Signed-off-by: Michael Carroll michael@openrobotics.org
As reported in #313,
ros1_bridge
can not successfully build with newer versions of GCC (such as 11.2.0 on Ubuntu Jammy).This is one alternative which uses
std::tuple_size
on ROS 2'sstd::array
(https://en.cppreference.com/w/cpp/container/array/tuple_size), and usesstatic_size
from ROS 1'sboost::array
members.Here is an example in Compiler Explorer to demonstrate the methodology: example Signed-off-by: Michael Carroll michael@openrobotics.org