Skip to content

Conversation

@sansha
Copy link
Contributor

@sansha sansha commented Jul 16, 2025

Solved Problem

Fixes #25188 (detailed description in that issue)

Solution

Hi, this is the PR fixing #25188 by removing the -h 127.0.0.1 flag in the launch command for the client.
This fix works for me, not sure if other setups are affected.

Let me know your thoughts!

Changelog Entry

For release notes:

Feature/Bugfix Fix bug where UXRCE_DDS_AG_IP was not read when launching the xrce client in SITL.

Alternatives

In the first commit I load the env variable explicitly but changed this to just remove the flag since I cannot test this right now. But this of course would also be an option

Test coverage

Context

Related links, screenshot before/after, video

Copy link
Member

@beniaminopozzan beniaminopozzan left a comment

Choose a reason for hiding this comment

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

thanks @sansha , could you set the default value for the IP address in simulation to 127.0.0.1 to maintain back-compatibility?

@sansha
Copy link
Contributor Author

sansha commented Jul 17, 2025

thanks @sansha , could you set the default value for the IP address in simulation to 127.0.0.1 to maintain back-compatibility?

Hey, not sure what you mean. I can set the default to 127.0.0.1 (see 59a751d) but the problem I had was in simulation, so I would like to also change it in simulation. Maybe outside of sim we want to keep it to 127.0.0.1?

@beniaminopozzan
Copy link
Member

@sansha , outside the sim, when you set UXRCE_DDS_CFG=Ethernet, it uses whaterver value you set for UXRCE_DDS_AG_IP.
As the most common case in sim is ip set to 127.0.0.1 my request is to keep the defaul IP for sim / posix target to 127.0.0.1.

So, please make the default value for UXRCE_DDS_AG_IP equal to 127.0.0.1 (2130706433) in sim, thanks!

@sansha
Copy link
Contributor Author

sansha commented Jul 25, 2025

@beniaminopozzan thank you for the feedback and apologies for taking so long. I added setting a default value earlier in the script. Is this what you intended?
Thank you!

Do you think this fix can make it into 1.16.0? Would be amazing to have this in and being able move to a stable version.

@sansha
Copy link
Contributor Author

sansha commented Jul 25, 2025

CI Failing with MAVROS Mission Tests is not related I think, will try resolving by merging main.

Unable to find image 'px4io/px4-dev-ros-melodic:2021-09-08' locally
docker: Error response from daemon: toomanyrequests: You have reached your unauthenticated pull rate limit. https://www.docker.com/increase-rate-limit.
See 'docker run --help'.

Copy link
Member

@beniaminopozzan beniaminopozzan left a comment

Choose a reason for hiding this comment

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

Thanks @sansha !

@beniaminopozzan beniaminopozzan merged commit 959587d into PX4:main Jul 25, 2025
66 checks passed
@beniaminopozzan
Copy link
Member

@sansha yes, it can go in 1.16!

Could you open a backport pr on the release/1.16 brach cherry picking the merged commit please? Thanks!

sansha added a commit to sansha/PX4-Autopilot that referenced this pull request Jul 25, 2025
* Read XRCE_DDS IP from ENV

* just remove the -h flag from the launch command

* add 127.0.0.1 as default IP

* add default value for IP
@sansha
Copy link
Contributor Author

sansha commented Jul 25, 2025

@beniaminopozzan awesome, I opened a backport PR here: #25299
Thanks!

mrpollo pushed a commit that referenced this pull request Aug 6, 2025
* Read XRCE_DDS IP from ENV

* just remove the -h flag from the launch command

* add 127.0.0.1 as default IP

* add default value for IP
raiots pushed a commit to MEI-LI-Yutong/PX4-Autopilot-MAAL that referenced this pull request Oct 3, 2025
* Read XRCE_DDS IP from ENV

* just remove the -h flag from the launch command

* add 127.0.0.1 as default IP

* add default value for IP
raiots pushed a commit to MEI-LI-Yutong/PX4-Autopilot-MAAL that referenced this pull request Oct 3, 2025
* Read XRCE_DDS IP from ENV

* just remove the -h flag from the launch command

* add 127.0.0.1 as default IP

* add default value for IP
raiots pushed a commit to MEI-LI-Yutong/PX4-Autopilot-MAAL that referenced this pull request Oct 3, 2025
* Read XRCE_DDS IP from ENV

* just remove the -h flag from the launch command

* add 127.0.0.1 as default IP

* add default value for IP
mrpollo pushed a commit that referenced this pull request Nov 24, 2025
* Read XRCE_DDS IP from ENV

* just remove the -h flag from the launch command

* add 127.0.0.1 as default IP

* add default value for IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] XRCE_DDS Bridge does not work in SITL across docker containers because PX4_PARAM_UXRCE_DDS_AG_IP is not respected

2 participants