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

gz-sim plugin not loaded #362

Open
napat35253 opened this issue Feb 9, 2023 · 6 comments
Open

gz-sim plugin not loaded #362

napat35253 opened this issue Feb 9, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@napat35253
Copy link

Environment

  • OS Version: MacOS M2, parallels VM Ubuntu 22.04
  • Source or binary build? : source humble

Description

  • Expected behavior: gz-sim plugin loaded
  • Actual behavior:
[ruby $(which ign) gazebo-1] [Err] [SystemLoader.cc:78] Failed to load system plugin [gz-sim-sensors-system] : couldn't find shared library.

Steps to reproduce

  1. use ros_gz_sim to launch the world
  2. ros2 launch ros_gz_sim gz_sim.launch.py gz_args:="test.sdf"

Output

[ruby $(which ign) gazebo-1] [Err] [SystemLoader.cc:78] Failed to load system plugin [gz-sim-sensors-system] : couldn't find shared library.

image

If I change the world file from for example

      <plugin
        filename="gz-sim-sensors-system"
        name="gz::sim::systems::Sensors">
        <render_engine>ogre2</render_engine>
      </plugin>

to

      <plugin
        filename="ignition-gazebo-sensors-system"
        name="ignition::gazebo::systems::Sensors">
        <render_engine>ogre2</render_engine>
      </plugin>

it seems to work but I'm not sure should this is the way to solve this problem or not.

@napat35253 napat35253 added the bug Something isn't working label Feb 9, 2023
@napat35253 napat35253 changed the title gz-sim plugin not loading gz-sim plugin not loaded Feb 9, 2023
@ahcorde
Copy link
Collaborator

ahcorde commented Feb 9, 2023

@napat35253, which Gazebo version are you using ? Fortress? Garden ?

@napat35253
Copy link
Author

@napat35253, which Gazebo version are you using ? Fortress? Garden ?

I'm using Garden

@iche033
Copy link
Contributor

iche033 commented Feb 9, 2023

From the error messages, you may have Fortress installed instead of Garden (or may be both?). We changed ignition and ign to gz in Garden. It seems like ros_gz_sim is loading Fortress in your case.

@napat35253
Copy link
Author

@iche033 I've tried uninstall and re-install following this https://gazebosim.org/docs/garden/install_ubuntu tutorial but it seems to have the same issue. Also, I try to setup a docker container for this and it has the same issue

@azeey azeey moved this to In progress in Core development Jul 24, 2023
@Sebastian-Schroder
Copy link

I can concur but i have no extra information to add sadly.
I was required to change the plugin filename and name to the older ignition naming scheme despite having gazebo garden, and no file on my computer with that specific file name.

    <plugin
      filename="libgz-sim7-joint-state-publisher-system.so"
      name="gz::sim::systems::JointStatePublisher">
    </plugin>

-->

    <plugin
      filename="ignition-gazebo-joint-state-publisher-system"
      name="ignition::gazebo::systems::JointStatePublisher">
    </plugin>

@zhikh1
Copy link

zhikh1 commented Feb 5, 2024

Just specify the gz version explicitly in the ros_gz_sim launch args
launch_arguments=[ ('gz_version', '7'),...
Then the ros_gz_sim launch file will use gz instead of ign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In progress
Development

No branches or pull requests

5 participants