You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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's configureHook and I'm struggling at getting the proper type.
This is as close as I've gotten:
# outside of the component
deployer.loadService("my_component", "my_pkg_reconfigure");
# inside my_component
boost::shared_ptr<rtt_dynamic_reconfigure::Server<my_namespace::MyPkgConfig>> reconfigure =
this->getProvider<rtt_dynamic_reconfigure::Server<my_namespace::MyPkgConfig>>("reconfigure");
if (reconfigure)
{
reconfigure->advertise();
}
But I get this error:
In file included from /opt/orocos/melodic/include/rtt/RTT.hpp:53:0,
from /root/my_ws/src/my_pkg/include/my_pkg/my_component.hpp:20,
from /root/my_ws/src/my_pkg/src/my_component.cpp:8:
/opt/orocos/melodic/include/rtt/TaskContext.hpp: In instantiation of ‘boost::shared_ptr<X> RTT::TaskContext::getProvider(const string&) [with ServiceType = rtt_dynamic_reconfigure::Server<my_namespace::MyPkgConfig>; std::__cxx11::string = std::__cxx11::basic_string<char>]’:
/root/my_ws/src/my_pkg/src/my_component.cpp:115:111: required from here
/opt/orocos/melodic/include/rtt/TaskContext.hpp:306:17: error: ‘class rtt_dynamic_reconfigure::Server<my_namespace::MyPkgConfig>’ has no member named ‘connectTo’
st->connectTo( provides(name) );
I've also tried with rtt_dynamic_reconfigure::Server<rtt_dynamic_reconfigure::AutoConfig> to no avail. Same error.
Can I get some help?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: