Issue with microxrceddsgen Command Not Found in ROS2 + ArduPilot Setup

Hi everyone,

I’m currently working on integrating ROS2 with ArduPilot and have been following the official documentation. However, I’m encountering an issue when I try to run the following command:

microxrceddsgen -help

It returns the error message: “microxrceddsgen: command not found.” After spending several hours troubleshooting, I haven’t been able to figure out the cause. I’ve also tried installing it using the command:

sudo snap install micro-xrce-dds-agent

but the problem persists. As a result, I’m stuck and unable to proceed with the project.

Has anyone experienced this issue or knows how to resolve it? Any help would be greatly appreciated!

Thank you in advance!