Failed to load gz-sim-diff-drive-system
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
Asked by PButov on 2023-07-31 10:18:02 UTC
Answers
I suppose that it's a problem with GAZEBO_SYSTEM_PLUGIN_PATH. What is the default value of this variable?
Asked by PButov on 2023-07-31 11:01:31 UTC
Comments
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
.
Asked by azeey on 2023-08-04 14:07:01 UTC
Comments