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

unable to find models #3

Open
su4kk opened this issue Nov 11, 2024 · 2 comments
Open

unable to find models #3

su4kk opened this issue Nov 11, 2024 · 2 comments

Comments

@su4kk
Copy link

su4kk commented Nov 11, 2024

gz sim -v4 -r iris_runway_ngps.sdf
[Msg] Gazebo Sim GUI v7.9.0
[Dbg] [gz.cc:165] Subscribing to [/gazebo/starting_world].
[Dbg] [gz.cc:167] Waiting for a world to be set from the GUI...
[Dbg] [Gui.cc:261] Waiting for subscribers to [/gazebo/starting_world]...
[Msg] Received world [iris_runway_ngps.sdf] from the GUI.
[Dbg] [gz.cc:171] Unsubscribing from [/gazebo/starting_world].
[Msg] Gazebo Sim Server v7.9.0
[Msg] Loading SDF world file[/home/yash/ap_nongps/worlds/iris_runway_ngps.sdf].
[Dbg] [Application.cc:89] Initializing application.
[Dbg] [Application.cc:121] Qt using OpenGL graphics interface
[GUI] [Dbg] [Application.cc:600] Create main window
[Err] [Server.cc:159] Error Code 14: [/sdf/world[@name="iris_runway"]/include[0]/uri:/home/yash/ap_nongps/worlds/iris_runway_ngps.sdf:L114]: Msg: Unable to find uri[model://runway]
[Err] [Server.cc:159] Error Code 14: [/sdf/world[@name="iris_runway"]/include[1]/uri:/home/yash/ap_nongps/worlds/iris_runway_ngps.sdf:L119]: Msg: Unable to find uri[model://iris_with_gimbal]
[Dbg] [gz.cc:417] Shutting down gz-sim-server
[GUI] [Dbg] [SignalHandler.cc:142] Received signal[2].
[GUI] [Dbg] [SignalHandler.cc:142] Received signal[2].
[GUI] [Dbg] [PathManager.cc:67] Requesting resource paths through [/gazebo/resource_paths/get]
[GUI] [Dbg] [Application.cc:166] Terminating application.

@snktshrma
Copy link
Owner

snktshrma commented Nov 12, 2024

Hi @su4kk ! You'll have to pull this repo: ardupilot_gazebo_ap.
It also has setup instructions that will point to the models.

Also you can run the new setup.sh script to set up everything.

@su4kk
Copy link
Author

su4kk commented Nov 13, 2024

Thank you for doing setup.sh
Can you specify the system specifications because some package versions are not available in my os
bash setup.sh
Starting setup script for ArduPilot Gazebo...
Cloning the ardupilot_gazebo_ap repository...
Cloning into 'ardupilot_gazebo_ap'...
remote: Enumerating objects: 918, done.
remote: Counting objects: 100% (477/477), done.
remote: Compressing objects: 100% (244/244), done.
remote: Total 918 (delta 344), reused 233 (delta 233), pack-reused 441 (from 1)
Receiving objects: 100% (918/918), 65.45 MiB | 10.38 MiB/s, done.
Resolving deltas: 100% (538/538), done.
Updating package lists...
Get:1 file:/var/cuda-repo-ubuntu2004-11-3-local InRelease
Ign:1 file:/var/cuda-repo-ubuntu2004-11-3-local InRelease
Get:2 file:/var/cuda-repo-ubuntu2004-11-3-local Release [564 B]
Get:2 file:/var/cuda-repo-ubuntu2004-11-3-local Release [564 B]
Hit:4 https://download.docker.com/linux/ubuntu focal InRelease
Hit:5 https://updates.signal.org/desktop/apt xenial InRelease
Hit:6 https://packages.microsoft.com/repos/code stable InRelease
Hit:7 http://packages.osrfoundation.org/gazebo/ubuntu-stable focal InRelease
Hit:8 http://packages.ros.org/ros/ubuntu focal InRelease
Hit:9 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:10 http://apt.pop-os.org/proprietary focal InRelease
Hit:11 http://packages.ros.org/ros2/ubuntu focal InRelease
Hit:12 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Hit:13 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu focal InRelease
Get:14 http://ppa.launchpad.net/system76/pop/ubuntu focal InRelease [18.0 kB]
Hit:15 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease
Hit:16 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:17 http://us.archive.ubuntu.com/ubuntu focal-security InRelease
Hit:18 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:19 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Fetched 18.0 kB in 3s (5,556 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
71 packages can be upgraded. Run 'apt list --upgradable' to see them.
Installing required libraries for Gazebo and GStreamer...
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgz-sim8-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
gstreamer1.0-libav is already the newest version (1.16.2-2).
libopencv-dev is already the newest version (4.2.0+dfsg-5).
gstreamer1.0-gl is already the newest version (1.16.3-0ubuntu1.3).
libgstreamer-plugins-base1.0-dev is already the newest version (1.16.3-0ubuntu1.3).
libgstreamer1.0-dev is already the newest version (1.16.3-0ubuntu1.1).
gstreamer1.0-plugins-bad is already the newest version (1.16.3-0ubuntu1.1).
0 upgraded, 0 newly installed, 0 to remove and 71 not upgraded.
Setting GZ_VERSION environment variable...
Entering the ardupilot_gazebo_ap directory and building project...
-- The C compiler identification is GNU 10.5.0
-- The CXX compiler identification is Clang 10.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for gz-common5 -- found version 5.6.0
-- Searching for dependencies of gz-common5
-- Looking for gz-utils2 -- found version 2.2.0
-- Searching for dependencies of gz-utils2
-- Looking for dlfcn.h - found
-- Looking for libdl - found
-- Found DL: TRUE
-- Checking for module 'uuid'
-- Found uuid, version 2.34.0
-- Found UUID: TRUE
-- Looking for gz-common5 - found

CMake Warning at /usr/share/cmake/gz-cmake3/cmake3/GzFindPackage.cmake:243 (find_package):
By not providing "Findgz-rendering8.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"gz-rendering8", but CMake did not find one.

Could not find a package configuration file provided by "gz-rendering8"
with any of the following names:

gz-rendering8Config.cmake
gz-rendering8-config.cmake

Add the installation prefix of "gz-rendering8" to CMAKE_PREFIX_PATH or set
"gz-rendering8_DIR" to a directory containing one of the above files. If
"gz-rendering8" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:28 (gz_find_package)

-- Looking for gz-rendering8 - not found

CMake Warning at /usr/share/cmake/gz-cmake3/cmake3/GzFindPackage.cmake:243 (find_package):
By not providing "Findgz-sim8.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "gz-sim8", but
CMake did not find one.

Could not find a package configuration file provided by "gz-sim8" with any
of the following names:

gz-sim8Config.cmake
gz-sim8-config.cmake

Add the installation prefix of "gz-sim8" to CMAKE_PREFIX_PATH or set
"gz-sim8_DIR" to a directory containing one of the above files. If
"gz-sim8" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:31 (gz_find_package)

-- Looking for gz-sim8 - not found

-- Compiling against Gazebo Harmonic
-- RapidJSON found. Headers: /usr/include
-- Found OpenCV: /usr (found version "4.2.0")
-- Checking for modules 'gstreamer-1.0;gstreamer-app-1.0'
-- Found gstreamer-1.0, version 1.16.3
-- Found gstreamer-app-1.0, version 1.16.3
-- Configuring done (0.7s)
CMake Error at CMakeLists.txt:73 (target_link_libraries):
Target "ArduPilotPlugin" links to:

gz-sim::gz-sim

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

CMake Error at CMakeLists.txt:84 (target_link_libraries):
Target "ParachutePlugin" links to:

gz-sim::gz-sim

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

CMake Error at CMakeLists.txt:95 (target_link_libraries):
Target "CameraZoomPlugin" links to:

gz-rendering::gz-rendering

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

CMake Error at CMakeLists.txt:110 (target_link_libraries):
Target "GstCameraPlugin" links to:

gz-sim::gz-sim

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

-- Generating done (0.0s)
CMake Generate step failed. Build files cannot be regenerated correctly.
Error: CMake configuration failed.

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

2 participants