April 25, 2023 Edit: Objective is to Install and Run "ros_gz_project_template" "diff_drive" ros_gz_project_template on the appropriate gz-garden or gz-fortress install on my Ubuntu 22.04/ROS2 Humble arm64/aarch64 machine.
See April 24, 2023 actions below, that resulted in a successful Ignition Fortress and rs_gz install, but failed ros_gz_project_template compile, that is now my outstanding Question.
April 22, 2023 Previous gz-garden install
With a Gazebo Garden Binary install gz-garden, I was able to get the "Shapes.sdf display, but nothing else worked. Also unable to compile the ros_gz Garden from Source and the Package ros_gz_project_template
April 24, 2023 Actions to reinstall Ignition Fortress and compatible ros_gz from Binary:
With Ubuntu Synaptic and command line $ sudo apt remove: Removed all previous Binary installed gz-garden and gz-fortress packages, and any dependancies referring to gz, gazebo, ign, ignition, etc.
Then I reinstalled $ sudo apt install ros-humble-Desktop-full , that installed ROS 2 with "Simulation Packages" (for Fortress) ros_ign_bridge, ros_ign_bridge, ros_ign_image, ros_ign_interfaxces.
Following Binary Installation Ubuntu , and ros_gz Fortress , successfully able to run $ ign gazebo shapes.sdf ($ gz fortress shapes .sdf is incorrect). This Docs/Gazebo Fortress page recommends the ROS 2 Humble GZ Fortress combination, NOT the GZ Garden labeled "Possible" (though as Recommended on [gz-garden]https://staging.gazebosim.org/docs/garden) .
The DOS/Gazebo Fortress " ROS Integration Tutorials and Advanced run OK.
Question: April 25, 2025 How to compile ros-gz_project_template on the Ignition Fortress & ros_gz ?
After an initial colcon build compile errors, I realized that I had to install with Synaptic, libgz-cmake3-dev, libgz-plugin2, libgz-command5, and libgz-sim7, and configure "export CMAKE_PREFIX_PATH=/usr/share/cmake-gz-make3, which only enable this last package to clear.
I attempted the Known workaround to configure 4 links into a single environment file, which worked for gz-cmake3 as it has an explicit gz-cmake3-config.cmake file, but enable to identify the correct configuration file and location for the remaining links. gz-common5 and gz-plugin2 python3) are installed in /usr/lib/arch64-linux-gnu/ and gz-sim7 in /usr/share/gz .
Here's the error message:
ubuntu@macvm-ub22-r2:~/template_ws$ export GZ_CONFIG_PATH=$HOME/.gz/tools/configs
ubuntu@macvm-ub22-r2:~/template_ws$ env |grep CONFIG
GZ_CONFIG_PATH=/home/ubuntu/.gz/tools/configs
ubuntu@macvm-ub22-r2:~/template_ws$ colcon build --cmake-args -DBUILD_TESTING=ON
Starting >>> ros_z_example_application
Starting >>> ros_gz_example_bringup
Finished <<< ros_gz_example_bringup [0.12s]
Starting >>> ros_z_example_description
Finished <<< ros_gz_example_application [0.13s]
Starting >>> ros_gz_example_gazebo
Finished <<< ros_gz_example_description [0.10s]
--- stderr: ros_gz_example_gazebo
CMake Error at CMakeLists.txt:8 (find_package):
By not providing "Findgz-plugin2.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"gz-plugin2", but CMake did not find one.
Could not find a package configuration file provided by "gz-plugin2" with
any of the following names:
gz-plugin2Config.cmake
gz-plugin2-config.cmake
Add the installation prefix of "gz-plugin2" to CMAKE_PREFIX_PATH or set
"gz-plugin2_DIR" to a directory containing one of the above files. If
"gz-plugin2" provides a separate development package or SDK, be sure it has
been installed.
So there is an unresolved problem to configure a CMAKE_MODULE PATH for the gz-plugin2, gz-common5 and gz-sim7 packages and appreciate suggested actions to enable compiling completion.
I should state that my objective ... (more)