Skip to content
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

Fix controller spawn error #11

Merged
merged 1 commit into from
Dec 10, 2023
Merged

Fix controller spawn error #11

merged 1 commit into from
Dec 10, 2023

Conversation

CalaW
Copy link
Contributor

@CalaW CalaW commented Dec 9, 2023

Fix #10

This unexpected behavior was introduced in #9:

cmd=[
'ros2 run controller_manager spawner' +
f'--controller-manager /fd/controller_manager {controller}'
],

So the command is expanded as:

ros2 run controller_manager spawner--controller-manager /fd/controller_manager fd_controller

Where a space is missing between spawner and --controller-manager.

I rewrite it using Node instead of ExecuteProcess in order to make code clearer and easier to debug.

* fix: "No executable found" error when launching fd.launch.py

- There's a space missing between "spawn" and "--controller-manager"
- Use Node instead of ExecuteProcess to spawn controller
- Remove ExecuteProcess import

* style: organize imports in fd.launch.py
@tpoignonec tpoignonec self-requested a review December 9, 2023 19:39
@tpoignonec tpoignonec merged commit c44247e into ICube-Robotics:main Dec 10, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot spawn fd_controller and joint_state_broadcaster
2 participants