Open artivis opened 6 years ago
Force pushed after a cleaning of this branch history.
Since all tests are declared in the same rostest, they all share the same environment, thus the same param server.
This can be an issue since some tests set params while other retrieve them (or vice-versa) leading to collision. To avoid it each NodeHandle
uses a sub-namespace (see 9956bf1699ff146730009cf79540893b7c7c0bb3).
The other alternative is to break down the unique rostest into several.
Rebased on develop
and fix tests compilation (#34).
Force pushed a broken history...
ping @130s, @cbandera. Anyone to review this ?? :DD
Summary
Parameters
objects.fromParamServer
Comes in replacement to #35 .
Details
Please consider the following example :
This PR does not change the default behavior while allowing one to use a unique
rosparam_handler::ParameterPtr
in a base class and instantiate it to a different parameter type. All functions remain available through the base pointer.The main drawback here is that to access the actual members of the instantiated object one has to cast the pointer to the appropriate type (either statically or dynamically).
See helper functions :
All former tests are passing and a I added one for this new scheme.
Their is also a test-case demonstrating how to test
dynamic_reconfigure
callback withrosparam_handler
.This PR also turns
*Parameters
into copyable objects :Please consider this PR as Work In Progress until I add some more tutorial to rosparam_handler_tutorial.