Skeleton for Action Server and Client (#579)

* Skeleton for ActionServer and ActionClient
This commit is contained in:
Shane Loretz 2018-11-21 09:16:51 -08:00 committed by GitHub
parent f212d73413
commit be010cb2d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 919 additions and 0 deletions

View 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()
{
}

View 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()
{
}

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