Ask Your Question

ros2 run python executable not found

asked 2018-08-01 04:26:03 -0600

aks gravatar image

updated 2018-08-01 04:26:23 -0600

I am working with ROS2 ardent, using Colcon to build.

The build is suceessful and I can also see my executable in <ws/build/package-name/build/lib/> but still when I run the package using ros2 run, no executables are found.

edit retag flag offensive close merge delete


Did you source the setup.bash file in the install folder ?? source <ros2_ws>/install/setup.bash You can add the command to ~/.bashrc so that you don't have to source every time you open a terminal.

Marc Testier gravatar image Marc Testier  ( 2018-08-01 04:33:35 -0600 )edit

Yes, I have sourced the setup.bash file, still no executable found

aks gravatar image aks  ( 2018-08-01 04:39:38 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-08-01 05:01:19 -0600

aks gravatar image

I found the problem.

In the file, I had a missing , for the last node in the entry pointsi.e.

    'console_scripts': [
        'listener = demo_nodes_py.topics.listener:main',
        'talker = demo_nodes_py.topics.talker:main'
        'listener_qos = demo_nodes_py.topics.listener_qos:main'

NOTE :  The missing `,` before the `listener_qos` node.

The strange thing here is, compiler compiles all the 3 nodes and I can see in the <ws/build/package-name/build/lib/> folder. Shouldnt the compiler just ignore the 3rd node listener_qos in this case ?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-08-01 04:26:03 -0600

Seen: 666 times

Last updated: Aug 01 '18