template node type for rclcpp action server and clients (#892)

Signed-off-by: stevemacenski <stevenmacenski@gmail.com>
This commit is contained in:
Steven Macenski 2019-10-16 18:31:36 -07:00 committed by Jacob Perron
parent 231b991098
commit d83a947c26
2 changed files with 4 additions and 4 deletions

View file

@ -97,10 +97,10 @@ create_client(
* \param[in] group The action client will be added to this callback group.
* If `nullptr`, then the action client is added to the default callback group.
*/
template<typename ActionT>
template<typename ActionT, typename NodeT>
typename Client<ActionT>::SharedPtr
create_client(
rclcpp::Node::SharedPtr node,
NodeT node,
const std::string & name,
rclcpp::callback_group::CallbackGroup::SharedPtr group = nullptr)
{

View file

@ -128,10 +128,10 @@ create_server(
* \param group[in] The action server will be added to this callback group.
* If `nullptr`, then the action server is added to the default callback group.
*/
template<typename ActionT>
template<typename ActionT, typename NodeT>
typename Server<ActionT>::SharedPtr
create_server(
rclcpp::Node::SharedPtr node,
NodeT node,
const std::string & name,
typename Server<ActionT>::GoalCallback handle_goal,
typename Server<ActionT>::CancelCallback handle_cancel,