Skip to content
New issue

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

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

Already on GitHub? # to your account

Error when building with different package structure #192

Open
ahi-bplus opened this issue Apr 17, 2024 · 0 comments
Open

Error when building with different package structure #192

ahi-bplus opened this issue Apr 17, 2024 · 0 comments

Comments

@ahi-bplus
Copy link

When building a package with a project structure like camera_calibration from the ros image_pipeline, I get the ModuleNotFoundError.

structure with ModuleNotFoundError:

package_name/
├── src
│   └── package_name
│       ├── __init__.py
│       ├── node.py
│       ├── parameters.yaml
│   ...

When teh package is structure like

package_name/
├── package_name
│       ├── __init__.py
│       ├── node.py
│       ├── parameters.yaml
│   ...

everything works.

The problem lies in the hard-coded install_dir/build_dir, e.g.:

build_dir = os.path.join(colcon_ws, 'build', pkg_name, pkg_name)

How could we solve the problem?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant