ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Well, I figured it out.
I changed my PeopleTracker
constructor to:
PeopleTracker(ros::NodeHandle &n, const PTCallback &cb);
I removed the const qualifier on the ros::NodeHandle
. I have no idea why this doesn't work, there is a const-qualified version of ros::NodeHandle.subscribe() so it should be able to be called on a const reference...
Someone please tell me!
2 | No.2 Revision |
Well, I figured it out.
I changed my PeopleTracker
constructor to:
PeopleTracker(ros::NodeHandle &n, const PTCallback &cb);
I removed the const qualifier on the ros::NodeHandle
. I have no idea why this doesn't work, there is a const-qualified version of ros::NodeHandle.subscribe() so it should be able to be called on a const reference...
Someone who reads this answer and figures it out, please tell me!
3 | No.3 Revision |
Well, I figured it out.
I changed my PeopleTracker
constructor to:
PeopleTracker(ros::NodeHandle &n, const PTCallback &cb);
I removed the const qualifier on the ros::NodeHandle
. I have no idea why this doesn't work, there is a const-qualified version of ros::NodeHandle.subscribe() so it should be able to be called on a const reference...
Someone who reads this answer and figures it out, out exactly why, please tell me!
4 | No.4 Revision |
Well, I figured it out.
I changed my PeopleTracker
constructor to:
PeopleTracker(ros::NodeHandle &n, const PTCallback &cb);
I removed the const qualifier on the ros::NodeHandle
. I have no idea why this doesn't work, didn't work with the const qualifier, there is a const-qualified version of ros::NodeHandle.subscribe() so it should be able to be called on a const reference...
Someone who reads this answer and figures out exactly why, please tell me!
5 | No.5 Revision |
Well, I figured it out.
I changed my PeopleTracker
constructor to:
PeopleTracker(ros::NodeHandle &n, const PTCallback &cb);
I removed the const qualifier on the ros::NodeHandle
. I have no idea why this didn't work with the const qualifier, there is a const-qualified member function version of ros::NodeHandle.subscribe() so it should be able to be called on a const reference...
Someone who reads this answer and figures out exactly why, please tell me!
6 | No.6 Revision |
Well, I figured it out.
I changed my PeopleTracker
constructor to:
PeopleTracker(ros::NodeHandle &n, const PTCallback &cb);
I removed the const qualifier on the ros::NodeHandle
. I have no idea why this didn't work with the const qualifier, there is a const-qualified member function version overload of ros::NodeHandle.subscribe() so it should be able to be called on a const reference...
Someone who reads this answer and figures out exactly why, please tell me!