sr_arm_finder.hpp
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Shadow Robot Company Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16 
17 /*
18 * File: sf_arm_finder.h
19 * Author: Andriy Petlovanyy <andriy@shadowrobot.com>
20 * @brief see README.md
21 */
22 
23 #ifndef SR_CORE_SR_ARM_FINDER_H
24 #define SR_CORE_SR_ARM_FINDER_H
25 
26 #include "ros/ros.h"
27 #include <map>
28 #include <string>
29 #include <vector>
30 
31 namespace shadow_robot
32 {
33 
34 struct ArmConfig
35 {
36  std::map<std::string, std::string> mapping_;
37  std::map<std::string, std::string> joint_prefix_;
38 };
39 
41 {
42 public:
43  SrArmFinder();
44 
45  virtual ~SrArmFinder()
46  {
47  }
48 
49  ArmConfig get_arm_parameters();
50 
51  std::map<std::string, std::vector<std::string> > get_joints();
52 
53 private:
55  std::map<std::string, std::vector<std::string> > joints_;
56 };
57 
58 } /* namespace shadow_robot */
59 
60 #endif // SR_CORE_SR_ARM_FINDER_H
std::map< std::string, std::string > joint_prefix_
std::map< std::string, std::string > mapping_
std::map< std::string, std::vector< std::string > > joints_


sr_utilities
Author(s): Ugo Cupcic
autogenerated on Mon Feb 28 2022 23:52:19