How to move a model in Gazebo11 from ROS2
I'm trying to move an object in Gazebo11 from a node in ROS2 Galactic.
It is supposed that I have to use the set_model_state
service but that service is not available, because when I run on the command line ros2 service list
it doesn't show up.
Searching the internet I have seen in a post that for this service to be available the plugin libgazebo_ros_state.so
must be loaded. But the problem is that when I try to load it using the command gazebo --verbose -s libgazebo_ros_state.so
I get the following error.
[Err] [gazebo_shared.cc:46] System is attempting to load a plugin, but detected an incorrect plugin type.
What could be the problem and how can I solve it? Is there another way to move a model?
Regards.
Asked by joseecm on 2023-03-30 10:35:48 UTC
Answers
libgazebo_ros_state.so
is a libraray that needs to be attached to a xacro/urdf/sdf model.
See the following link where someone had similar problems: https://answers.ros.org/question/356936/how-to-use-gazebo-plugins-found-in-gazebo_ros-ros2-foxy-gazebo11/
Asked by GeorgNo on 2023-04-03 08:35:43 UTC
Comments