Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

kwatts
Copy link

@kwatts kwatts commented Jan 28, 2014

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

@dirk-thomas
Copy link
Member

+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)
Copy link
Member

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

@dirk-thomas
Copy link
Member

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>
Copy link
Member

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>?

@dirk-thomas
Copy link
Member

This pull request fails several unit tests.

@dirk-thomas
Copy link
Member

Closing in favor of #20.

dirk-thomas added a commit that referenced this pull request Feb 14, 2014
replace usage of __connection_header with MessageEvent (#17)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants