cbandera / rosparam_handler

An easy wrapper for using parameters in ROS
Other
47 stars 26 forks source link

add missing include #4

Closed artivis closed 8 years ago

artivis commented 8 years ago

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

std::string getNodeName(const ros::NodeHandle& privateNodeHandle)

uses nh before it is actually defined.

cbandera commented 8 years ago

Thanks