Gazebo | Ignition | Community
Ask Your Question
0

Failed to load gz-sim-diff-drive-system

asked 2023-07-31 10:18:02 -0500

PButov gravatar image

I'm trying to use gz-sim-diff-drive-system plugin like this:

<gazebo>
  <plugin
    filename="gz-sim-diff-drive-system"
    name="gz::sim::systems::DiffDrive">
    <left_joint>Revolute 10</left_joint>
    <right_joint>Revolute 9</right_joint>
    <wheel_separation>0.2</wheel_separation>
    <wheel_radius>0.04</wheel_radius>
    <odom_publish_frequency>1</odom_publish_frequency>
    <topic>cmd_vel</topic>
  </plugin>
</gazebo>

but receiving the following error when starting gazebo:

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

ROS2 version: Iron Gazebo version: Garden

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2023-08-04 14:07:01 -0500

azeey gravatar image

You shouldn't have to set any environmental variables to use the plugins that come with Gazebo. You might have a bad installation. Can you try running gz sim -v4 diff_drive.sdf? That will run the diff_drive.sdf example that should be installed in your system.

BTW, GAZEBO_SYSTEM_PLUGIN_PATH is relevant for Gazebo classic. For the new Gazebo, you'd use GZ_SIM_SYSTEM_PLUGIN_PATH.

edit flag offensive delete link more
0

answered 2023-07-31 11:01:31 -0500

PButov gravatar image

updated 2023-07-31 14:34:11 -0500

I suppose that it's a problem with GAZEBO_SYSTEM_PLUGIN_PATH. What is the default value of this variable?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-07-31 10:18:02 -0500

Seen: 355 times

Last updated: Aug 04 '23