ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to move a model in Gazebo11 from ROS2

asked 2023-03-30 10:35:48 -0500

joseecm gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-04-03 08:35:43 -0500

GeorgNo gravatar image

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/3569...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-03-30 10:35:48 -0500

Seen: 424 times

Last updated: Apr 03 '23