handle.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014, Fetch Robotics Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * * Neither the name of the FFetch Robotics Inc. nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL FETCH ROBOTICS INC. BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 // Author: Michael Ferguson
30 
31 #ifndef ROBOT_CONTROLLERS_INTERFACE_HANDLE_H
32 #define ROBOT_CONTROLLERS_INTERFACE_HANDLE_H
33 
34 #include <string>
35 #include <boost/shared_ptr.hpp>
36 
37 namespace robot_controllers
38 {
39 
43 class Handle
44 {
45 public:
47  {
48  }
49 
51  virtual ~Handle()
52  {
53  }
54 
56  virtual std::string getName() = 0;
57 
58 private:
59  // No copy
60  Handle(const Handle&);
61  Handle& operator=(const Handle&);
62 };
63 
65 
66 } // namespace robot_controllers
67 
68 #endif // ROBOT_CONTROLLERS_INTERFACE_HANDLE_H
Handle & operator=(const Handle &)
Base class for a handle.
Definition: handle.h:43
virtual std::string getName()=0
Get the name of this joint.
virtual ~Handle()
Ensure proper cleanup with virtual destructor.
Definition: handle.h:51
boost::shared_ptr< Handle > HandlePtr
Definition: handle.h:64


robot_controllers_interface
Author(s): Michael Ferguson
autogenerated on Sun Sep 27 2020 03:22:36