Skeleton for Action Server and Client (#579)
* Skeleton for ActionServer and ActionClient
This commit is contained in:
parent
f212d73413
commit
be010cb2d5
17 changed files with 919 additions and 0 deletions
41
rclcpp_action/src/client.cpp
Normal file
41
rclcpp_action/src/client.cpp
Normal file
|
@ -0,0 +1,41 @@
|
|||
// Copyright 2018 Open Source Robotics Foundation, Inc.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include <rclcpp_action/client.hpp>
|
||||
|
||||
#include <string>
|
||||
|
||||
using rclcpp_action::ClientBase;
|
||||
|
||||
namespace rclcpp_action
|
||||
{
|
||||
class ClientBaseImpl
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
ClientBase::ClientBase(
|
||||
rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base,
|
||||
const std::string & name,
|
||||
const rosidl_action_type_support_t * type_support)
|
||||
{
|
||||
// TODO(sloretz) use rcl_action API when available
|
||||
(void)node_base;
|
||||
(void)name;
|
||||
(void)type_support;
|
||||
}
|
||||
|
||||
ClientBase::~ClientBase()
|
||||
{
|
||||
}
|
41
rclcpp_action/src/server.cpp
Normal file
41
rclcpp_action/src/server.cpp
Normal file
|
@ -0,0 +1,41 @@
|
|||
// Copyright 2018 Open Source Robotics Foundation, Inc.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include <rclcpp_action/server.hpp>
|
||||
|
||||
#include <string>
|
||||
|
||||
using rclcpp_action::ServerBase;
|
||||
|
||||
namespace rclcpp_action
|
||||
{
|
||||
class ServerBaseImpl
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
ServerBase::ServerBase(
|
||||
rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base,
|
||||
const std::string & name,
|
||||
const rosidl_action_type_support_t * type_support)
|
||||
{
|
||||
// TODO(sloretz) use rcl_action API when available
|
||||
(void)node_base;
|
||||
(void)name;
|
||||
(void)type_support;
|
||||
}
|
||||
|
||||
ServerBase::~ServerBase()
|
||||
{
|
||||
}
|
15
rclcpp_action/src/server_goal_handle.cpp
Normal file
15
rclcpp_action/src/server_goal_handle.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright 2018 Open Source Robotics Foundation, Inc.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include <rclcpp_action/server_goal_handle.hpp>
|
Loading…
Add table
Add a link
Reference in a new issue