Make custom_validators accessible from external library

オープン
#239 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cmake, cpp, python, yaml

調査の方向性

Read the CMake macro at generate_parameter_library/cmake/generate_parameter_library.cmake#L42-L54 and the referenced control_toolbox CMakeLists.txt lines 86-90. Trace how the custom validator header is included and used when generating parameters; the issue asks whether the macro can use the installed include path instead of requiring a copy. Done means an external package can use custom_validators.hpp through the generated library workflow without copying the file.

索引モデルが issue の本文から書いたものです。

説明

With #213 it is straightforward to use a complete cpp library within another package. But how can I use a custom_validator file from a different package?

Is there a smarter way to include the file from here to another library than

find_package(control_toolbox)
# get include dirs from control_toolbox for the custom validators
get_target_property(TB_INCLUDE_DIRS control_toolbox::rate_limiter_parameters INTERFACE_INCLUDE_DIRECTORIES)
generate_parameter_library(diff_drive_controller_parameters
  src/diff_drive_controller_parameter.yaml
  ${TB_INCLUDE_DIRS}/control_toolbox/custom_validators.hpp
)

@AugusteBourgois any suggestions?
Changing the macro here to avoid a COPY but just use the correct include path control_toolbox/custom_validators.hpp?
https://github.com/PickNikRobotics/generate_parameter_library/blob/891c29196ea3c070d818284b0ea2112ac8520037/generate_parameter_library/cmake/generate_parameter_library.cmake#L42-L54

主要言語
Python
スター
385
フォーク
81
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PickNikRobotics/generate_parameter_library のほかの issue

PickNikRobotics/generate_parameter_library の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。