Skip to content

Error when building with different package structure #192

Open
@ahi-bplus

Description

@ahi-bplus

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions