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

issue in launching the controller node #2

Open
Tejas-Baid opened this issue May 21, 2024 · 3 comments
Open

issue in launching the controller node #2

Tejas-Baid opened this issue May 21, 2024 · 3 comments

Comments

@Tejas-Baid
Copy link

after creating the controller node i realized that i need to add it to the launcher file as well.but after doing so i was unable to launch the file as the launcher was somehow not able to locate it.
These are my additions in the launch file:
dynamics = Node(
package = 'single_inverted',
executable = 'dynamics_sim'
)

control = Node(
    package = 'single_inverted',
    executable = 'controller'
)

return LaunchDescription([
    visualizer,
    dynamics,
    control
])

These are my changes in setup.py
entry_points={
'console_scripts': [
'dynamics_sim = single_inverted.dynamics_sim:main',
'controller = single_inverted.controller:main'
],
this is the error i am facing:
[INFO] [launch]: Default logging verbosity is set to INFO
Task exception was never retrieved
future: <Task finished name='Task-2' coro=<LaunchService._process_one_event() done, defined at /opt/ros/foxy/lib/python3.8/site-packages/launch/launch_service.py:226> exception=SubstitutionFailure("executable 'controller' not found on the libexec directory '/home/tejas/Desktop/PendulumAss/assWS/install/single_inverted/lib/single_inverted' ")>

@deepboliya
Copy link
Owner

Are you able to run your node separately after launching the original launch file?

@Tejas-Baid
Copy link
Author

yes, if i launch the launch file without 'control' node in launchDescription , I am able to launch it . On the side i can manually run the controller node and the expected output on the simulation and the terminal is also shown

@AyuwanC
Copy link

AyuwanC commented Jun 1, 2024

Did you do colcon build of the whole workspace again?

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

No branches or pull requests

3 participants