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

The symbol [GzPluginHook] is missing Error. #322

Open
MayurRabadiya opened this issue Jun 3, 2024 · 3 comments
Open

The symbol [GzPluginHook] is missing Error. #322

MayurRabadiya opened this issue Jun 3, 2024 · 3 comments

Comments

@MayurRabadiya
Copy link

Hii,
I want to use this ROS2_control plugin with my custom created drone model. I am using PX4-Autopilot SITL for the simulation in gazebo garden. The PX4-SITL is working fine. But When I add gz_ros2_control-system plugin to sdf file, it gives this error.

file:///home/mayur/Pictures/Screenshots/Screenshot%20from%202024-06-03%2016-53-33.png

I have built gz_ros2_contol package in separate workspace and my PX4-Autopilot is in a separate workspace.
I added the Path for the plugin file like this:
export GZ_SIM_SYSTEM_PLUGIN_PATH="/home/mayur/gz_ros2_control_ws/build/gz_ros2_control:$GZ_SIM_SYSTEM_PLUGIN_PATH"
But still, it gives this error. How can I use this plugin with my PX4-SITL?

Thank you & kind regards,
Mayur

@christophfroehlich christophfroehlich transferred this issue from ros-controls/gazebo_ros2_control Jun 3, 2024
@christophfroehlich
Copy link
Contributor

Can you please copy the full log up to the error, instead of trying to post a screenshot? thx.

@MayurRabadiya
Copy link
Author

Thank you very much for the reply @christophfroehlich.
I am so sorry, screenshot doesn't appear.
Here, is fll log.

`Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Library [/home/mayur/gz_ros2_control_ws/build/gz_ros2_control/libgz_ros2_control-system.so] does not export any plugins. The symbol [GzPluginHook] is missing, or it is not externally visible.
[Err] [SystemLoader.cc:141] Failed to load system plugin: (Reason: No plugins detected in library)

  • Requested plugin name: [gz_ros2_control::GazeboSimROS2ControlPlugin]
  • Requested library name: [gz_ros2_control-system]
  • Resolved library path: [/home/mayur/gz_ros2_control_ws/build/gz_ros2_control/libgz_ros2_control-system.so]
    INFO [lockstep_scheduler] setting initial absolute time to 8000 us
    INFO [commander] LED: open /dev/led0 failed (22)
    INFO [tone_alarm] home set
    INFO [uxrce_dds_client] init UDP agent IP:127.0.0.1, port:8888
    `

@MayurRabadiya
Copy link
Author

Before exporting the path the error was:

`Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[Err] [SystemLoader.cc:119] Failed to load system plugin: (Reason: Could not find shared library)

  • Requested plugin name: [gz_ros2_control::GazeboSimROS2ControlPlugin]
  • Requested library name: [gz_ros2_control-system]
  • Library search paths:
    • /home/mayur/.gz/sim/plugins/
    • /usr/lib/x86_64-linux-gnu/gz-sim-7/plugins/
    • /home/mayur/.ignition/gazebo/plugins/
      INFO [lockstep_scheduler] setting initial absolute time to 8000 us
      INFO [commander] LED: open /dev/led0 failed (22)
      INFO [uxrce_dds_client] init UDP agent IP:127.0.0.1, port:8888
      INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 18570 `

The plugin is working perfectly fine with the gz_ros2_control_demo models in same workspace.

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