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