Open dustingooding opened 4 years ago
Turns out I was holding it wrong...
I was doing the right thing outside of the component. But this is what should be happening inside.
RTT::Service::shared_ptr reconfigure = this->provides("my_pkg_reconfigure");
if (reconfigure)
{
if (reconfigure->hasOperation("advertise"))
{
RTT::OperationCaller<void(std::string)> op_advertise = reconfigure->getOperation("advertise");
op_advertise("~");
}
}
I guess this ticket is more about "can some form of this snippet be added to the README".
Is there a "hello world" level example of how to actually use rtt_dynamic_reconfigure?
Specifically, I'm trying to call
advertise
from within my component'sconfigureHook
and I'm struggling at getting the proper type.This is as close as I've gotten:
But I get this error:
I've also tried with
rtt_dynamic_reconfigure::Server<rtt_dynamic_reconfigure::AutoConfig>
to no avail. Same error.Can I get some help?