PickNikRobotics / generate_parameter_library

Declarative ROS 2 Parameters
BSD 3-Clause "New" or "Revised" License
230 stars 43 forks source link

Error when building with different package structure #192

Open ahi-bplus opened 4 months ago

ahi-bplus commented 4 months ago

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.: https://github.com/PickNikRobotics/generate_parameter_library/blob/268d5e439cd6c8948e42b90ff3c16a4ffe2f0cfa/generate_parameter_library_py/generate_parameter_library_py/setup_helper.py#L64

How could we solve the problem?