Skip to content

AP_DDS: Fixing scope errors that prevent colcon build of ardupilot_dds_tests #30194

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

Closed
wants to merge 1 commit into from

Conversation

mueller-lukas
Copy link

This pull request fixes scope issues in the AP_DDS_Client.cpp file by adding Status:: and other necessary scope resolutions. The initial colcon compile error was:

../../libraries/AP_DDS/AP_DDS_Client.cpp: In member function ‘void AP_DDS_Client::on_request(uxrSession*, uxrObjectId, uint16_t, SampleIdentity*, ucdrBuffer*, uint16_t)’:
../../libraries/AP_DDS/AP_DDS_Client.cpp:1185:58: error: ‘PARAMETER_NOT_SET’ was not declared in this scope; did you mean ‘ParameterType::PARAMETER_NOT_SET’?
 1185 |                 get_parameters_response.values[i].type = PARAMETER_NOT_SET;
      |                                                          ^~~~~~~~~~~~~~~~~
      |                                                          ParameterType::PARAMETER_NOT_SET
compilation terminated due to -Wfatal-errors.

Waf: Leaving directory `/home/hiwi/ardu_ws/src/ardupilot/build/sitl'
Build failed

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the (fix) bit from the commit message

@snktshrma
Copy link
Contributor

snktshrma commented May 28, 2025

Hi @mueller-lukas ! Seems like a duplicate to #29850
We are resolving issues with CI for updated Micro-XRCE-DDS-Gen and once that's sorted, we'll merge the changes

@mueller-lukas mueller-lukas changed the title Fix(AP_DDS): Fixing scope errors that prevent colcon build of ardupilot_dds_tests AP_DDS: Fixing scope errors that prevent colcon build of ardupilot_dds_tests May 28, 2025
@mueller-lukas
Copy link
Author

Hi @mueller-lukas ! Seems like a duplicate to #29850 We are resolving issues with CI for updated Micro-XRCE-DDS-Gen and once that's sorted, we'll merge the changes

Thank you for your quick response. It appears that this issue is indeed a duplicate of #29850.

Is there an estimated timeline for the resolution, as the installation based on ROS 2 with SITL in Gazebo is broken because of this issue.

@snktshrma
Copy link
Contributor

@mueller-lukas For now, if you need to proceed with the build, use this specific state of the XRCE DDS Gen:
https://github.com/ArduPilot/Micro-XRCE-DDS-Gen/tree/93b118a27758eea5cddf14baa17bfcaaaa69dcff
This is an older, stable version and does not include the latest two commits, which are currently causing issues in the generation process.

Or you can continue with the scope resolution additions you did to the AP and use latest Micro-XRCE-DDS-Gen as you are doing until this CI issue is resolved.

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

Successfully merging this pull request may close these issues.

4 participants