ros2 / ros1_bridge

ROS 2 package that provides bidirectional communication between ROS 1 and ROS 2
Apache License 2.0
436 stars 283 forks source link

Unable to build a bridge for mavros packages #336

Closed kribe48 closed 2 years ago

kribe48 commented 2 years ago

Bug report

Required Info:

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_msgsmsgOverrideRCIn__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?

kribe48 commented 2 years ago

Solved the issue by building the mavros package from source.