RosJect did work but now shows error

Hi @girishkumar.kannan,

the filestructe looks now like that

image

which is probably more clean

Regards,
Volker

Hi @vkuehn ,

Just realized this error:

The solution, I guess, is simple. Delete your build, install and log folders within ros2_ws directory and redo

colcon build --packages-select wall_follower_srv wall_follower && source install/setup.bash

Let me know if this works now!

Regards,
Girish

EDIT: Just added your service message package into the colcon build command line

Hi @girishkumar.kannan,

no it doesn’t and shows the same error.
That is the interesting/strange/painful thing and I have shared the Copy ROS2 Basics Python Real Robot Project in hope the construct team can help.

Regards,
Volker

EDIT: tried your edit also

Hi @vkuehn ,

Could you post your current setup.py file contents for wall_follower package please?

– Girish

Hi @girishkumar.kannan ,

here it is

from setuptools import setup
import os
from glob import glob

package_name = 'wall_follower'

setup(
    name=package_name,
    version='0.0.0',
    packages=[package_name],
    data_files=[
        ('share/ament_index/resource_index/packages',
            ['resource/' + package_name]),
        ('share/' + package_name, ['package.xml']),
        (os.path.join('share', package_name), glob('launch/*.launch.py'))
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='user',
    maintainer_email='user@todo.todo',
    description='TODO: Package description',
    license='TODO: License declaration',
    tests_require=['pytest'],
    entry_points={
        'console_scripts': [
            'wall_following = wall_follower.wall_following:main'
            'wall_finder = wall_follower.wall_finder:main'
        ],
    },
)

–Volker

Hi @vkuehn ,

Your problem seems to be strange! Your setup.py file seems to be correct.

I tried to find your Copy ROS2 Basics Python Real Robot Project but I guess it is private.
I cannot view it, if you can check again and make it public, I can check it out and help you further!

Regards,
Girish

EDIT: I have finished this course and got my certificate, so I can assure you that I will not steal any of your program. [Just wanted to say!]

Hi @girishkumar.kannan,

I appreciate your help and would share it but it is complainin that it is a copy of a private one.

@albertoezquerro
you can probably find it as suggested.
If not I would save src, delete it, start a new copy.

Regards,
Volker

Hi @vkuehn ,

Yeah, I just realized that. It said the same thing for me too! No problem!
Sorry I am unable to help you!

Cheers and Regards,
Girish

1 Like

cheers @girishkumar.kannan

1 Like

Hi @girishkumar.kannan, thank you very much for your great investigation in order to find that hidden character.

We will fix that error in the notebook.

@vkuehn, you mention that the launch file has:

   package='wall_follower',
   executable='wall_following',

and ~/ros2_ws/src/wall_follower/wall_follower/wall_following.py exists

Could you try to:

  • Put wall_following.py instead of wall_following in the launch file
  • Compile the package again, and
  • run source install/setup.bash?
1 Like

@ralves ,

that adds .py to the erro message

launch.substitutions.substitution_failure.SubstitutionFailure: executable 'wall_following.py' not found on the libexec directory '/home/user/ros2_ws/install/wall_follower/lib/wall_follower'

I have downloaded src.
Can’t find the rosject in the public rosjects, would it be possible to get a fresh fork if I delete the existing one ?
regards

Hi @vkuehn ,

a fresh copy of the rosject can be taken from the link below:

Hi @ralves ,

that works and is kind of a solution. So starting from scratch there.
Thanks !

It also looks a bit different.E.g. the simulation has less obstacles so I hope I can make it through without bothering :wink:

Kind Regards,
Volker

1 Like