-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop using "__connection_header" in actionlib #17
Conversation
+1 on the change in this pull request. But we should only apply it to the indigo branch once that is available. |
@@ -252,12 +260,12 @@ class ActionClient | |||
return n_.subscribe(ops); | |||
} | |||
|
|||
void statusCb(const actionlib_msgs::GoalStatusArrayConstPtr& status_array) | |||
void statusCb(const ros::MessageEvent<actionlib_msgs::GoalStatusArray>& status_array) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this signature be:
const ros::MessageEvent<actionlib_msgs::GoalStatusArray const>& status_array
Can you please update the pull request against indigo-devel which I have just created? |
@@ -242,8 +250,8 @@ class ActionClient | |||
return n_.advertise(ops); | |||
} | |||
|
|||
template<class M, class T> | |||
ros::Subscriber queue_subscribe(const std::string& topic, uint32_t queue_size, void(T::*fp)(const boost::shared_ptr<M const>&), T* obj, ros::CallbackQueueInterface* queue) | |||
template<class M, class T, class Evt> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need an explicit Evt
template type? Can it not be derived automatically as MessageEvent<M const>
?
This pull request fails several unit tests. |
Closing in favor of #20. |
replace usage of __connection_header with MessageEvent (#17)
If we remove the "__connection_header" field from ROS messages (in C++), actionlib needs to be fixed to use the ros::MessageEvent interface. Attached is a tested patch that uses the correct interface.
For background on the removal, see:
ros/gencpp#12