Skip to content

Fix the mock plugin install for the plugin_overhead benchmark. - #57

Open
clalancette wants to merge 1 commit into
rollingfrom
clalancette/fix-append-env-quoting
Open

Fix the mock plugin install for the plugin_overhead benchmark.#57
clalancette wants to merge 1 commit into
rollingfrom
clalancette/fix-append-env-quoting

Conversation

@clalancette

Copy link
Copy Markdown

Description

There are two fixes in here:

  1. Do not wrap the APPEND_ENV value in double quotes. CMake passes the double quotes through as literal characters in the environment variable value, so the mock install path from pluginlib_enable_plugin_testing() was silently skipped when searching for plugins at test time.

  2. Register the mock plugin description under the "urdf_parser_plugin" plugin category, which is the category that urdf::Model actually loads parser plugins from (and that the real package exports).

While the result is more correct, the scenario it fixes is incredibly niche: when you are building this package without colcon and with the performance tests enabled, this makes the performance tests work. In all other scenarios this is a no-op.

Is this user-facing behavior change?

No.

Did you use Generative AI?

Yes, Claude Fable 5.

Additional Information

N/A

There are two fixes in here:

1.  Do not wrap the APPEND_ENV value in double quotes.  CMake passes the
double quotes through as literal characters in the environment variable
value, so the mock install path from pluginlib_enable_plugin_testing()
was silently skipped when searching for plugins at test time.

2.  Register the mock plugin description under the
"urdf_parser_plugin" plugin category, which is the category that
urdf::Model actually loads parser plugins from (and that the real
package exports).

While the result is more correct, the scenario it fixes is incredibly
niche: when you are building this package *without colcon* and with
the performance tests enabled, this makes the performance tests work.
In all other scenarios this is a no-op.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@mergify

mergify Bot commented Aug 5, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

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

Successfully merging this pull request may close these issues.

1 participant