gazebosim / docs

High-level Gazebo documentation that gets published to https://gazebosim.org/docs/
https://gazebosim.org/docs
48 stars 117 forks source link

Possible wrong version of gz-transport package in the sensors tutorial #427

Closed Mohammadreza-Beygifard closed 7 months ago

Mohammadreza-Beygifard commented 7 months ago

Environment

Description

I followed the steps mentioned here: Docs / Gazebo Harmonic tutorials

When I run the cmake on the build directory which I made under docs/tree/master/harmonic/tutorials/sensors directory, I get the following error:

Could not find a package configuration file provided by "gz-transport12"

After checking my packages with pkg-config --list-all | grep gz I figured out that the installed package is "gz-transport13".

Changing the version in the cmake file to 13 solved my issue. I decided to communicate it to you to update the version in the cmake file if you can verify the same issue.

summary:

Steps to reproduce

  1. install gazebo following Docs / Gazebo Harmonic
  2. clone the current repo
  3. cd docs/tree/master/harmonic/tutorials/sensors
  4. mkdir build && cd build
  5. make ..

Output

Screenshot 2024-02-09 at 17 05 48

Possible solution:

Change the gz-transport library to 13 in the cmake file.

I have solved the issue like this. Thanks!

azeey commented 7 months ago

Thanks! I think changing the version to 13 in the harmonic directory makes sense. Would you be able to open a PR?

Mohammadreza-Beygifard commented 7 months ago

Yes, of course, I'll do it now!