tfly
September 10, 2025, 8:46am
1
In PX4 User Guide(v1.14):
git clone https://github.com/eProsima/Micro-XRCE-DDS-Agent.git
In PX4 User Guide(main):
git clone -b v2.4.2 https://github.com/eProsima/Micro-XRCE-DDS-Agent.git
Which one is better, the master branch or the v2.4.2 branch?
Or it doesn’t matter either way.
JeSz
September 12, 2025, 11:59pm
2
From what I understand, you are referring to this ROS2 guide ? Give more info next time.
The master branch consists version 3.0.1 of uXRCE, but 1.15.4 and 1.16.0 PX4 firmware use a forked version 2.4.0 of the eProsima repository (look here ).
I successfully used version 2.4.3 with my setup, if I remember correctly.
tfly
September 14, 2025, 6:34am
3
OK, I only want to know which one is suitable for PX4 firmware.
Did you encounter any errors when building the agent?
I am encountering a Git reference problem
[ 41%] Performing test step for 'fastcdr'
[ 44%] Completed 'fastcdr'
[ 50%] Built target fastcdr
[ 52%] Performing download step (git clone) for 'fastdds'
Cloning into 'fastdds'...
fatal: invalid reference: 2.12.x
CMake Error at /home/../Micro-XRCE-DDS-Agent/build/fastdds/tmp/fastdds-gitclone.cmake:40 (message):
Failed to checkout tag: '2.12.x'
make[2]: [CMakeFiles/fastdds.dir/build.make:101: fastdds/src/fastdds-stamp/fastdds-download] Error 1
make[1]: [CMakeFiles/Makefile2:141: CMakeFiles/fastdds.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Looks like the build system is trying to checkout a Git branch/tag 2.12.x that doesn’t exist in the FastDDS repository?
I am following the PX4 ROS2 User Guide and running make on git clone -b v2.4.2 https://github.com/eProsima/Micro-XRCE-DDS-Agent.git
tfly
September 18, 2025, 4:00am
5
Me too. You may try the following commands.
cd Micro-XRCE-DDS-Agent/build
sed -i 's/checkout 2\.12\.x --/checkout v2.12.1 --/' ./fastdds/tmp/fastdds-gitclone.cmake
system
Closed
December 17, 2025, 4:01am
6
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.