gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
686 stars 263 forks source link

[Bug] surface_vehicles.md workspace wget command not working #2329

Closed PerFrivik closed 6 months ago

PerFrivik commented 7 months ago

Environment

``` per@per ~ $ mkdir ~/gazebo_maritime_ws wget https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/surface_vehicles/gazebo_maritime_ws -o ~/gazebo_maritime_ws -r wget: /home/per/gazebo_maritime_ws: Is a directory ```

Description

Steps to reproduce

Run this command:

mkdir ~/gazebo_maritime_ws wget https://raw.githubusercontent.com/gazebosim/gz-sim/gz-sim8/tutorials/files/surface_vehicles/gazebo_maritime_ws -o ~/gazebo_maritime_ws -r

Output

wget: /home/per/gazebo_maritime_ws: Is a directory

Thanks!

caguero commented 7 months ago

Thanks for reporting it, there were problems with the wget commands. See #2330 .

PerFrivik commented 7 months ago

Nice, thanks for the fast response!

PerFrivik commented 7 months ago

I got around the wget issues, but now when trying to run the sydney_regatta, I get the following error:

[Err] [SystemLoader.cc:119] Failed to load system plugin: (Reason: Could not find shared library)

I tried exporting the gazebo plugin paths to the binaries, but it still did not work.

export GAZEBO_PLUGIN_PATH=/home/per/gz-sim/tutorials/files/surface_vehicles/gazebo_maritime_ws/install/lib:${GAZEBO_PLUGIN_PATH}

caguero commented 7 months ago

I can't reproduce it. It works for me.

  1. Did you compile the gazebo_maritime_ws?
  2. Can you see libPublisherPlugin.so under ~/gazebo_maritime_ws/install/lib/?

Make sure that you're setting these environment variables as the tutorial describes:

export GZ_SIM_RESOURCE_PATH=$GZ_SIM_RESOURCE_PATH:~/gazebo_maritime_ws/install/share/gazebo_maritime/models
export GZ_SIM_SYSTEM_PLUGIN_PATH=$GZ_SIM_SYSTEM_PLUGIN_PATH:~/gazebo_maritime_ws/install/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/gazebo_maritime_ws/install/lib