Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary modifications to mavROS source build #324

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

amarburg
Copy link
Collaborator

@amarburg amarburg commented Sep 26, 2024

Changes Made

Removes the installation of mavros and mavlink from source.

Associated Issues

Testing

docker buildx bake --no-cache builds.

I'm remote right now, I have not been able to test the software in sim.

@amarburg amarburg self-assigned this Sep 26, 2024
@evan-palmer
Copy link
Collaborator

I think you should be able to remove the MAVLink clone and modifications too. Vladimir pointed out the more recent version of mavlink-gdp-release, which releases binaries for Jazzy and Rolling, and includes the required version of pymavlink. The ROS Index also lists it as available here.

@amarburg amarburg force-pushed the 312-feature-remove-unnecessary-modifications-to-mavros-and-source-build branch from 24f0e3c to 97e5617 Compare September 26, 2024 10:23
@evan-palmer
Copy link
Collaborator

This will end up closing #248 as well

@amarburg
Copy link
Collaborator Author

Performed a very cursory test this morning. The Docker image contains these Mavros/mavlink packages:

(blue) ubuntu@vespine:~/ws_blue$ apt search mavros
Sorting... Done
Full Text Search... Done
ros-rolling-mavros/now 2.8.0-1noble.20240820.001530 amd64 [installed,local]
  MAVROS -- MAVLink extendable communication node for ROS with proxy for Ground Control Station.

ros-rolling-mavros-extras/now 2.8.0-1noble.20240820.011411 amd64 [installed,local]
  Extra nodes and plugins for MAVROS.

ros-rolling-mavros-msgs/now 2.8.0-1noble.20240729.182340 amd64 [installed,local]
  mavros_msgs defines messages for MAVROS.

ros-rolling-libmavconn/now 2.8.0-1noble.20240625.190352 amd64 [installed,local]
  MAVLink communication library.

ros-rolling-mavlink/now 2024.6.6-1noble.20240625.185253 amd64 [installed,local]
  MAVLink message marshaling library.

Unfortunately, I get the "yaml linkage" error for the Mavros vision_pose and vision_speed plugins:

[mavros_node-2] [ERROR] [1727714966.161554013] [mavros]: Plugin vision_pose load exception: Failed to load library /opt/ros/rolling/lib/libmavros_extras_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library dlopen error: /opt/ros/rolling/lib/libmavros_extras_plugins.so: undefined symbol: _ZTIN4YAML13BadConversionE, at ./src/shared_library.c:99
[mavros_node-2] [ERROR] [1727714966.163417636] [mavros]: Plugin vision_speed load exception: Failed to load library /opt/ros/rolling/lib/libmavros_extras_plugins.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Could not load library dlopen error: /opt/ros/rolling/lib/libmavros_extras_plugins.so: undefined symbol: _ZTIN4YAML13BadConversionE, at ./src/shared_library.c:99

Looks like we need packages for Mavros 2.9 (which contains mavros#1994 ).

@evan-palmer
Copy link
Collaborator

I just did some tests and saw the same issue. Here are the binaries that I pulled:

ros-rolling-mavros/now 2.8.0-1noble.20240919.231902 amd64 [installed,local]
  MAVROS -- MAVLink extendable communication node for ROS with proxy for Ground Control Station.

ros-rolling-mavros-extras/now 2.8.0-1noble.20240919.234952 amd64 [installed,local]
  Extra nodes and plugins for MAVROS.

ros-rolling-mavros-msgs/now 2.8.0-1noble.20240919.215846 amd64 [installed,local]
  mavros_msgs defines messages for MAVROS.

It looks like these binaries are older than those just recently released a few days ago. I don't see an updated build for mavros_extras either, which would be here.

Vladimir is pretty responsive. It might be worth just creating an issue and asking him to update the binaries for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants