Closed wjwwood closed 10 years ago
Example from @bit-pirate:
%YAML 1.1
---
name: kobuki_led
spec_version: 1
spec_type: provider
description: "Implements the LED capability for Kobuki's default LED, i.e. LED 1."
implements: kobuki_capabilities/LED
depends_on:
'kobuki_capabilities/KobukiBringup':
provider: 'kobuki_capabilities/kobuki_bringup'
remappings:
topics:
'led': '/mobile_base/commands/led1'
@bit-pirate, so there is a remappings section already for each remapping in the depends_on
section, see this test provider:
Could this do what you want?
For TB this would work, since most things will depend on the BringUp capability.
However, I would prefer to make the remapping parameter generally available (not tied to depends_on
). Does anything speak against this?
I don't think so, I will add the option for a remappings section independent of the depends_on section.
In that case do we need the optional remappings section for the depends_on section too?
In that case do we need the optional remappings section for the depends_on section too?
I'd say no.
Upgraded to a pull request.
@bit-pirate for review
Works like a charm. I have already implemented it in the app manager. Please merge it at your convenience.
This was proposed as a solution to the providers which need to rename things in order to satisfy semantic interface names.
See: #22