osrf / capabilities

Implements the concept of capabilities as part of the robots-in-concert system.
Other
8 stars 26 forks source link

extend capabilities/GetProviders to provide the default provider #35

Closed bit-pirate closed 10 years ago

bit-pirate commented 10 years ago

The app manager so far does not allow to specify a provider for an interface. Hence, always the default provider is used.

For applying the correct remappings I need to know the default provider for an interface. My suggestion would be to add this information to the capabilities/GetProviders service.

E.g.:

string interface

---
string[] providers
string default_provider

Thoughts?

bit-pirate commented 10 years ago

Never mind. I'm slowly learning how to efficiently use your library. :grin:

I implemented what I need (checking for supported interfaces (aka interfaces with providers) and determining their default providers) using the SpecIndex. Great class!

The above would still make sense and be more convenient, but its not important. Also, the default provider could only be filled in, if an interface name is provided.

wjwwood commented 10 years ago

Awesome, I'll still implement it.

wjwwood commented 10 years ago

Converted to a pull request.