Open karolinajudzentyte opened 2 years ago
Hi @karolinajudzentyte,
This issue seems similar to #89. I am currently trying to get ign_ros2_control working in ROS 2 Humble (not in Docker). Yesterday, I encountered a similar problem that you describe. I could solve it by changing the name in the plugin
tag from ign_ros2_control
to ign_ros2_control::IgnitionROS2ControlPlugin
. In my case that solved the loading error.
<gazebo>
<plugin filename="libign_ros2_control-system.so" name="ign_ros2_control::IgnitionROS2ControlPlugin">
... the rest here ...
</gazebo>
Does that help?
This is blocking a migration to Ignition by Nav2 See iRobot's ticket above
FYI: these issues are present in the humble
branch, but they seem to be fixed in the master
branch.
I tested the newly available ign-ros2-control-demos
binary packages that's on the ros2-testing
repo and the demos worked for me. We'll just need to wait for the next humble sync
@wilcobonestroo I think that the plugin is loaded when Ignition Gazebo launches. Perhaps you should pay attention to the order of nodes loaded in the launchfile? Also, have you loaded environmental variables when launching Ignition Gazebo? I guess it should be something like that:
env = {
'IGN_GAZEBO_SYSTEM_PLUGIN_PATH': ':'.join([
os.environ.get('IGN_GAZEBO_SYSTEM_PLUGIN_PATH', default=''),
os.environ.get('LD_LIBRARY_PATH', default='')]
),
'IGN_GAZEBO_RESOURCE_PATH': ":".join([
# path to your worlds and meshes
])
}
cmd = ["ign gazebo", world, "--force-version", gz_version, "-v", "4"]
ign_gazebo_spawn_world = ExecuteProcess(
cmd=cmd,
additional_env=env,
output='screen',
shell=True
)
Generally, I have other compatibility issues, a lack of 'humble' branches in many repos, and tons of other problems with ROS 2, but that one worked for me.
Hello, I am trying to get moveit2 configured arm working in ignition. I am using humble with docker set the following: export IGN_GAZEBO_SYSTEM_PLUGIN_PATH="/root/ws_moveit/install/ign_ros2_control/lib" export XDG_RUNTIME_DIR=/run/user/1000 export IGN_FILE_PATH="/root/ws_moveit/src" export RUNLEVEL=3
Have added the flowing to the URDF file:
`
...
`
I am getting the following error
[ign gazebo-1] [ignition::plugin::Loader::LookupPlugin] Failed to get info for [ign_ros2_control]. Could not find a plugin with that name or alias. [ign gazebo-1] [Err] [SystemLoader.cc:91] Failed to load system plugin [ign_ros2_control] : could not instantiate from library [libign_ros2_control-system.so] from path [/root/ws_moveit/install/ign_ros2_control/lib/libign_ros2_control-system.so].
Any help would be appreciated