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_ros2_control-system] Could not find shared library #390

Open
Juancams opened this issue Aug 9, 2024 · 3 comments
Open

[gz_ros2_control-system] Could not find shared library #390

Juancams opened this issue Aug 9, 2024 · 3 comments

Comments

@Juancams
Copy link

Juancams commented Aug 9, 2024

Hi!

I'm trying to get the tiago robot working inside harmonic with ros 2 jazzy and I'm having the following problem:

[gz-1] [Err] [SystemLoader.cc:92] Failed to load system plugin [gz_ros2_control-system] : Could not find shared library.

This is what I have in my ros2_control.urdf.xacro

...

<!-- Init the ROS 2 control gazebo interface -->
    <xacro:if value="${use_sim_time}">
      <gazebo>
        <plugin name="gz_ros2_control::GazeboSimROS2ControlPlugin" filename="gz_ros2_control-system">
          <parameters>$(find tiago_description)/ros2_control/gazebo_controller_manager_cfg.yaml</parameters>
        </plugin>
      </gazebo>
    </xacro:if>

    <!-- ROS 2 control config-->
    <ros2_control name="ros2_control_tiago_system" type="system">

      <!-- Execution env config -->
      <hardware>
        <xacro:if value="${use_sim_time}">
          <plugin>gz_ros2_control/GazeboSimSystem</plugin>

        <!-- IMU sensor (only in simulation)-->
        <xacro:ros2_control_imu name="base_imu_sensor"/>
        </xacro:if>
        <xacro:unless value="${use_sim_time}">
          <plugin>robot_control/RobotControl</plugin>
        </xacro:unless>
      </hardware>

...

In another simulator that I have in which I use a UR10 I have no problem putting it like that, but here there is no way and I have tried to call it in different ways.

Thank you so much!

@christophfroehlich
Copy link
Contributor

First of all, can you run the gz_ros2_control_demos successfully?

@Juancams
Copy link
Author

Yes, they work correctly.

@christophfroehlich
Copy link
Contributor

You should cleanup the part from your snippet, why do you have several plugin tags? Use a clean simple working one from the demos, and put some xacro conditions afterwards if you need them.

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