-
Notifications
You must be signed in to change notification settings - Fork 156
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
Cannot run the libhector_gazebo_ros_gps.so plugin #97
Comments
This seems to be the same problem as #93. |
I've looked at #93 but their issue seemed to pertain to CMake outputting .a files, not .so. However, I'm able to import .so files. Does anyone else have this issue with ROS2? |
Maybe silly question, but is that the output of Gazebo using ROS 1? I haven't tried using ROS 1 and ROS 2 before but are you sure that works? |
I'm most likely doing something silly so I appreciate the questions! No, it's definately ROS2 since I haven't installed ROS1 on this system. Is it manditory that there is geometry associated with the link before passing it into the GPS plugin? |
At least in Gazebo (Classic), links without associated physical properties (mass, inertia) are removed, unless you mark them with a special tag. |
That wouldn't case the plugin load error though, would it? |
So I was able to load the plugin by just moving the compiled library to the gazebo pluigin directory instead of sourcing my own build directory. However, another error has appeared
|
Hi @austin-InDro , did you ever manage to solve this error? |
Hi @Wimll, yeah. I moved it to the plugin directory with all other Gazebo Plugins manually. The error went away after that. |
This still doesn't work with a fresh pull though. I've forked the latest to attempt the fix. However, I'm currently having issues with the GPS and IMU not being able to see the created srv... |
Hmm thanks, still sounds like this all needs some proper reworking to actually function on Humble |
Yeah... I'll close this issue, but the resolution isn't ideal haha. When I have a few moments over the next few days. I can open another ticket with the current error I'm having. If we can fix that, the plugins will work on Humble. |
Hi @austin-InDro , I solved the linking errors by adding the following lines and commenting the existing rosidl_target_interfaces commands:
I had to dive into the source code of rosidl to fix this, but it seems to work. |
@Wimll do you have a forked version of your fixes? I can try them on my machine to see if this error still occurs. |
@austin-InDro I did fork it, but it's a private repo of the company I work at so I am not able to share it with you.. But I just used the humble-devel branch with your cmakelists from this discussion and added the changes from my previous comment, that should work! |
Okay sweet thanks @Wimll. I'll give it a try and let you know soon. |
I attemped to compile the foxy-devel branch Hector_Gazebo system on my machine locally since there is not a binary package available for ROS2 yet. I was faced with some CMake issues which I resolved enough to compile, but I fear something else linking wise may be missing since the plugin cannot load into Gazebo properly.
I've added the
workspace/build/hector_gazebo_plugins
to the$GAZEBO_PLUGIN_PATH
The following is some additional information
System: ROS Humble
Error Output
gazebo-11.10.2 --verbose -s libhector_gazebo_ros_gps.so /home/austin/Documents/2ws/install/sim_bot_description/share/sim_bot_description/world/my_world.sdf Gazebo multi-robot simulator, version 11.10.2 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org [Msg] Waiting for master. [Msg] Connected to gazebo master @ http://127.0.0.1:11345 [Msg] Publicized address: 192.168.68.139 Gazebo multi-robot simulator, version 11.10.2 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org [Err] [gazebo_shared.cc:46] System is attempting to load a plugin, but detected an incorrect plugin type. Plugin filename[libhector_gazebo_ros_gps.so].
CMake File for Hector_gazebo_plugin
If a solution can be found I can help with a pull requst to others can use it in Humble as well.
The text was updated successfully, but these errors were encountered: