ros2/ros1_bridge

Unable to build a bridge for mavros packages

Closed this issue · 1 comments

Bug report

Required Info:

  • Operating System:
    • Unbuntu 20.04, ROS Galactic, ROS Noetic
  • Installation type:
    • binaries + ros-distro-mavros
  • Version or commit hash:
    • master and galactic
  • Client library (if applicable):
    • N/A

Steps to reproduce issue

sudo apt-get-install ros-noetic-desktop
sudo apt-get install ros-noetic-mavros
sudo apt-get install ros-galactic-desktop
sudo apt-get install ros-galactic-mavros 

And then build the bridge (after sourcing appropriate bash files)

Expected behavior

Possible to build the bridge.

Actual behavior

Error: ros_bridge_ws/build/ros1_bridge/generated/mavros_msgs__msg__OverrideRCIn__factories.cpp:61:32: error: static assertion failed: destination array not large enough for source array
61 | (ros2_msg.channels.size()) >= (ros1_msg.channels.size()),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Additional information

Got this to work during the summer. Might it be due to changes in the ros-galactic-mavros-msgs definition that makes them incompatible?

Solved the issue by building the mavros package from source.