Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Controller Spawner couldn't find the expected controller_manager ROS interface. #21

Open
abdu7rahman opened this issue Apr 2, 2023 · 3 comments

Comments

@abdu7rahman
Copy link

Screenshot from 2023-04-02 14-46-12

@smoggy-P
Copy link

smoggy-P commented Mar 9, 2024

Hi, I got the same problem. Did you manage to solve it?

@smoggy-P
Copy link

smoggy-P commented Mar 9, 2024

I looked into the code and it turns out that you need to add the following line to your custom urdf file to load gazebo control plugins:

<gazebo>
  <plugin filename="libgazebo_ros_p3d.so" name="p3d_base_controller">
    <alwaysOn>true</alwaysOn>
    <updateRate>10.0</updateRate>
    <bodyName>base_link</bodyName>
    <topicName>odom/ground_truth</topicName>
    <gaussianNoise>0.01</gaussianNoise>
    <frameName>world</frameName>
    <xyzOffsets>0 0 0</xyzOffsets>
    <rpyOffsets>0 0 0</rpyOffsets>
  </plugin>
  </gazebo>
  <gazebo>
    <plugin filename="libgazebo_ros_control.so" name="gazebo_ros_control">
      <legacyModeNS>true</legacyModeNS>
    </plugin>
  </gazebo>

Hope that can help those with the same problem!

@abdu7rahman
Copy link
Author

has not worked for me, is there some modifications to do in the launch files as well?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants