NodeHandle is forward declared in ros header forward.h
but used in 'DummyParameters.h' before being defined.
If the auto generated DummyParameters.h config file is included before the ros/node_handle.h header the following error pops :
error: invalid use of incomplete type const class ros::NodeHandle
This is due to the fact that DummyParameters.h includes ros/params.h which itself includes the ros header forwards.h which only forward declare NodeHandle class (nh).
The function
NodeHandle is forward declared in ros header forward.h but used in 'DummyParameters.h' before being defined.
If the auto generated
DummyParameters.h
config file is included before theros/node_handle.h
header the following error pops :error: invalid use of incomplete type const class ros::NodeHandle
This is due to the fact that
DummyParameters.h
includesros/params.h
which itself includes the ros headerforwards.h
which only forward declare NodeHandle class (nh). The functionuses nh before it is actually defined.