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

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?

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

1 participant