forked from ros-controls/ros2_control
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ControllerSpec for storing controller type and name
- Loading branch information
Victor Lopez
committed
Sep 18, 2020
1 parent
f00ecec
commit 91e1767
Showing
7 changed files
with
209 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
controller_manager/include/controller_manager/controller_spec.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Copyright 2017 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. | ||
|
||
|
||
/* | ||
* Author: Wim Meeussen | ||
*/ | ||
|
||
#ifndef CONTROLLER_MANAGER__CONTROLLER_SPEC_HPP_ | ||
#define CONTROLLER_MANAGER__CONTROLLER_SPEC_HPP_ | ||
#pragma GCC diagnostic ignored "-Wextra" | ||
|
||
|
||
#include <map> | ||
#include <string> | ||
#include <vector> | ||
#include "controller_interface/controller_interface.hpp" | ||
#include "hardware_interface/controller_info.hpp" | ||
|
||
namespace controller_manager | ||
{ | ||
|
||
/** \brief Controller Specification | ||
* | ||
* This struct contains both a pointer to a given controller, \ref c, as well | ||
* as information about the controller, \ref info. | ||
* | ||
*/ | ||
struct ControllerSpec | ||
{ | ||
hardware_interface::ControllerInfo info; | ||
controller_interface::ControllerInterfaceSharedPtr c; | ||
}; | ||
|
||
} // namespace controller_manager | ||
#endif // CONTROLLER_MANAGER__CONTROLLER_SPEC_HPP_ |
Oops, something went wrong.