confusing about simple ros c++ code
Hi,
I have a simple question about c++ pointer. This is the main.
int main(int argc, char** argv)
{
ros::init(argc, argv, "joint_trajectory_action_node");
ros::NodeHandle node;//("~");
JointTrajectoryExecuter jte(node);
ros::spin();
return 0;
}
And this is part of the constructor of JointTrajectoryExecuter
public:
JointTrajectoryExecuter(ros::NodeHandle &n) :
node_(n),
action_server_(node_, "joint_trajectory_action",
boost::bind(&JointTrajectoryExecuter::goalCB, this, _1),
boost::bind(&JointTrajectoryExecuter::cancelCB, this, _1),
false),
has_active_goal_(false)
node_ is defined as ros::NodeHandle node_;
I don't understand "node_(n)".
Can anyone give me any hint?
Thanks!
I think you may be referring to a initialization list