Open Juancams opened 3 months ago
First of all, can you run the gz_ros2_control_demos successfully?
Yes, they work correctly.
You should cleanup the part from your snippet, why do you have several plugin
tags? Use a clean simple working one from the demos, and put some xacro conditions afterwards if you need them.
I had a similar problem where I could run the gz_ros2_control_demos without issue but when I tried to use my own URDF+launch files GZ threw the "Could not find shared library" error. Even Using the URDF from the examples with my launch script gave the same result. So I assume the problem is in my launch file.
Turns out the shell var GZ_SIM_SYSTEM_PLUGIN_PATH
wasn't set so I pointed it to where I found libgz_ros2_control-system.so.
export GZ_SIM_SYSTEM_PLUGIN_PATH=/opt/ros/jazzy/lib/
This worked but I'm still not sure why the example launch has this set and mine does not.
I also had a similar problem. In my case I think it was caused by using the gz_server.launch.py launch file. The launch file uses gzserver.cpp to just start a gz server. I don't encounter this problem when using the gz_sim.launch.py launch file which the demos use.
I think the plugin path for some reason is not added when using gzserver.cpp
.
I had a similar problem where I could run the gz_ros2_control_demos without issue but when I tried to use my own URDF+launch files GZ threw the "Could not find shared library" error. Even Using the URDF from the examples with my launch script gave the same result. So I assume the problem is in my launch file.
Turns out the shell var
GZ_SIM_SYSTEM_PLUGIN_PATH
wasn't set so I pointed it to where I found libgz_ros2_control-system.so.
export GZ_SIM_SYSTEM_PLUGIN_PATH=/opt/ros/jazzy/lib/
This worked but I'm still not sure why the example launch has this set and mine does not.
I confirm it works. Thank you @n4495 for sharing your mitigation here.
I had a similar problem where I could run the gz_ros2_control_demos without issue but when I tried to use my own URDF+launch files GZ threw the "Could not find shared library" error. Even Using the URDF from the examples with my launch script gave the same result. So I assume the problem is in my launch file.
Turns out the shell var
GZ_SIM_SYSTEM_PLUGIN_PATH
wasn't set so I pointed it to where I found libgz_ros2_control-system.so.
export GZ_SIM_SYSTEM_PLUGIN_PATH=/opt/ros/jazzy/lib/
This worked but I'm still not sure why the example launch has this set and mine does not.
can confirm, this workaround seems to work for me.
Hi!
I'm trying to get the tiago robot working inside harmonic with ros 2 jazzy and I'm having the following problem:
This is what I have in my ros2_control.urdf.xacro
In another simulator that I have in which I use a UR10 I have no problem putting it like that, but here there is no way and I have tried to call it in different ways.
Thank you so much!