Skip to content

Loader for controller 'XXX' not found. #358

New issue

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

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

Already on GitHub? Sign in to your account

Closed
AlezzzRd opened this issue May 29, 2022 · 3 comments
Closed

Loader for controller 'XXX' not found. #358

AlezzzRd opened this issue May 29, 2022 · 3 comments
Labels

Comments

@AlezzzRd
Copy link

Hi,

I tried to write a new controller according to the guidance in this link.
https://control.ros.org/foxy/doc/ros2_controllers/doc/writing_new_controller.html

I think my export definition for pluginlib in the CMakeList file and at the bottom of the controller .cpp file are correct. But when I tried to spawn the controller using code as follows.

  effort_position_controller_spawner = Node(
      package="controller_manager",
      executable="spawner.py",
      arguments=["effort_position_controller", "--controller-manager", "/controller_manager"],
  )

I got the error as follows.
image
Could you help me to think where the problem might occur? Thanks a lot.

@AlezzzRd
Copy link
Author

I think I fixed it by adding this in the CMakeList file.

target_compile_definitions(${PROJECT_NAME} PUBLIC "PLUGINLIB__DISABLE_BOOST_FUNCTIONS")

Copy link
Contributor

This issue is being labeled as stale because it has been open 45 days with no activity. It will be automatically closed after another 45 days without follow-ups.

@github-actions github-actions bot added the stale label Apr 14, 2025
Copy link
Contributor

This issue was closed because it has been stalled for 45 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant