Skip to content
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

Change default Gazebo installation from source to binaries #662

Closed
M1chaelM opened this issue May 23, 2023 · 11 comments
Closed

Change default Gazebo installation from source to binaries #662

M1chaelM opened this issue May 23, 2023 · 11 comments
Assignees
Milestone

Comments

@M1chaelM
Copy link
Collaborator

We have been building Gazebo Sim from source, but it would simplify our installation process a bit if we could use the binaries instead. It would be great to make this switch for the final code freeze.

@caguero What do you think?

@M1chaelM M1chaelM added this to the 2.3.0 milestone May 23, 2023
@caguero
Copy link
Contributor

caguero commented May 23, 2023

I think we should be fine using binaries.

@M1chaelM
Copy link
Collaborator Author

@caguero It looks like we can install Gazebo garden from binaries, but ros_gz is only available from source for Gazebo Garden. This is frustrating because it means our users have to build this code in the same workspace, which makes the process more complicated, makes the build take longer, and also prints lots of warning messages during the build process saying that the ignition namespace is deprecated.

Any ideas for improving this? Do you know why there is no binary for ros_gz garden?

@caguero
Copy link
Contributor

caguero commented May 27, 2023

The binaries for this bridge combination are available but are a bit experimental, so we need to double-check that things are working. They're hosted in the prerelease Gazebo package repository.

https://packages.osrfoundation.org/gazebo/ubuntu-prerelease/pool/main/r/

Follow the testing instructions from: gazebo-tooling/release-tools#895

@bperseghetti
Copy link

@caguero @j-rivero I think it would be great if we were also able to prerelease them for Iron ASAP as well. IE: ros-iron-ros-gzgarden

@M1chaelM
Copy link
Collaborator Author

The binaries for this bridge combination are available but are a bit experimental, so we need to double-check that things are working. They're hosted in the prerelease Gazebo package repository.

Amazing! Thank you! I thought we were out of luck. I'll give it a try and then work on getting the binary version into our CI image.

@M1chaelM M1chaelM self-assigned this Jun 6, 2023
@M1chaelM
Copy link
Collaborator Author

M1chaelM commented Jun 6, 2023

Note: this needs to happen before #643

@M1chaelM
Copy link
Collaborator Author

M1chaelM commented Jun 7, 2023

OK, I've update the tutorial to use the ros_gz binaries. Installation is much nicer! I believe we can also build without setting GZ_VERSION every time, so I've removed this section:

Note: Make sure to set the GZ_VERSION to garden. This is needed for building the ros_gz package.

It seems to build and run without that variable, but let me know if we need it for something I haven't understood. Similarly, I think we no longer need to set the pythonpath variable since we are not installing Gazebo Sim from source, so I am removing the following from the Running VRX tutorial:

Set PYTHONPATH environment variable

export PYTHONPATH=$PYTHONPATH:<YOUR_GAZEBO_WS>/install/lib/python

Here's an example:

export PYTHONPATH=$PYTHONPATH:/home/caguero/garden_ws/install/lib/python

@caguero Please let me know if you think either of the removed steps above is still necessary.

@M1chaelM
Copy link
Collaborator Author

Package has been added to stable, so we no longer need to add the prelease.

TODO: update the tutorial again. Then test on Docker.

@SBhat2615
Copy link

@M1chaelM hi, i'm trying to make the vrx setup on ros2 humble on m1 mac on an ubuntu vm using UTM. Got stuck in the process of installing gazebo garden. Is there any better way to install this or make whole setup on m1 mac in a easier way ??

@M1chaelM
Copy link
Collaborator Author

@SBhat2615 I have updated the installation instructions so we use binaries now. See if that works. If not please create a bug report and use the form to describe your configuration. Thanks!

@M1chaelM
Copy link
Collaborator Author

This is now resolved. The installation tutorial on the Wiki has been updated to assume a binary install and the CI image has also been modified to test this configuration (see #663).

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

No branches or pull requests

4 participants