-
Notifications
You must be signed in to change notification settings - Fork 18k
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
Tools: Install uxrceddsgen in Ubuntu #27150
base: master
Are you sure you want to change the base?
Tools: Install uxrceddsgen in Ubuntu #27150
Conversation
Signed-off-by: Ryan Friedman <[email protected]>
0001-Github-Enable-DDS-in-environment-setup-testing.patch Also, this patch could be helpful to ensure DDS is actually going to work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi!
Apart from the two comments, a couple more questions:
First, the flags DO_UXRCGEN_INSTALL
and UXRCE_GEN_TOOL_NAME
are not visible anywhere. Where do you propose that they will be documented?
If I understand this correctly, you download microxrceddsgen
and microxrceddsgen.jar
, but you don't actually use them to produce the DDS libraries. Is this really that useful? The user has to run the generation command anyways.
Also, in your PR descriptions you mention "for users who use ROS2". I don't see a mechanism where these will not be installed with -y
if a user doesn't plan to user ROS.
heading "Installing $UXRCE_GEN_TOOL_NAME" | ||
echo "Downloading from ArduPilot release" | ||
sudo mkdir -p $UXRCE_GEN_ROOT | ||
cd $UXRCE_GEN_ROOT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't you return to the previous directory after this install step is done?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need. The others don't, they use absolute paths for directory changes.
eval $exportline | ||
microxrceddsgen -version | ||
else | ||
echo "Skipping adding $UXRCE_GEN_ROOT to PATH." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you indeed want to skip adding to path if the -y
parameter was passed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that's what the others do.
cd $UXRCE_GEN_ROOT | ||
sudo wget --progress=dot:giga -P $UXRCE_GEN_ROOT/scripts https://github.com/ArduPilot/Micro-XRCE-DDS-Gen/releases/download/v4.5.0/microxrceddsgen | ||
sudo chmod +x scripts/microxrceddsgen | ||
sudo wget --progress=dot:giga -P $UXRCE_GEN_ROOT/share/microxrceddsgen/java https://github.com/ArduPilot/Micro-XRCE-DDS-Gen/releases/download/v4.5.0/microxrceddsgen.jar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if these artifacts should be committed to the tree, and/or whether we should be cloning the entire repo rather than grabbing artifacts.
As best I could, I followed existing patterns. That includes the use of undocumented flags, which are only changed in CI. Thus, I propose doing what's already done and adding more flags, that only CI touches. No, that is not correct. We download those, which are used to produce the ardupilot binaries. Once the binaries are created, microxrceddsgen is not needed at runtime. If a user says "n" to the question, it won't be installed, just like the other optional features in setup. If it doesn't do that, it's a bug. |
|
Can we try this workflow out first? We have the 4.5.1 version that fixed some extranneous stderr behavior, but otherwise expect no changes. This PR makes a good improvement significant improvement in user setup time lowering the barrier to entry in using ROS 2. |
Purpose
Allow users to more easily install MicroXRCEDDSGen without having to compile it using gradle, for users who use ROS 2 with Ubuntu. This is optional during setup. It is used as a compile-time dependency in ArduPilot. It's not used at runtime, thus is only useful for people who compile ArduPilot from source.
Sizes of downloads: