transmission_info.h
Go to the documentation of this file.
1 /*********************************************************************
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2013, Open Source Robotics Foundation
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * * Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * * Redistributions in binary form must reproduce the above
14  * copyright notice, this list of conditions and the following
15  * disclaimer in the documentation and/or other materials provided
16  * with the distribution.
17  * * Neither the name of the Open Source Robotics Foundation
18  * nor the names of its contributors may be
19  * used to endorse or promote products derived
20  * from this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33  * POSSIBILITY OF SUCH DAMAGE.
34  *********************************************************************/
41 #pragma once
42 
43 
44 // C++ standard
45 #include <vector>
46 #include <string>
47 
48 // TinyXML
49 #include <tinyxml.h>
50 
51 namespace transmission_interface
52 {
53 
57 struct JointInfo
58 {
59  std::string name_;
60  std::vector<std::string> hardware_interfaces_;
61  std::string role_;
62  std::string xml_element_;
63 };
64 
69 {
70  std::string name_;
71  std::vector<std::string> hardware_interfaces_;
72  std::string xml_element_;
73 };
74 
79 {
80  std::string name_;
81  std::string type_;
82  std::vector<JointInfo> joints_;
83  std::vector<ActuatorInfo> actuators_;
84 };
85 
86 } // namespace
transmission_interface::ActuatorInfo
Contains semantic info about a given actuator loaded from XML (URDF)
Definition: transmission_info.h:68
transmission_interface
Definition: bidirectional_effort_joint_interface_provider.h:36
transmission_interface::TransmissionInfo::name_
std::string name_
Definition: transmission_info.h:80
transmission_interface::TransmissionInfo::joints_
std::vector< JointInfo > joints_
Definition: transmission_info.h:82
transmission_interface::JointInfo::xml_element_
std::string xml_element_
Definition: transmission_info.h:62
transmission_interface::JointInfo::name_
std::string name_
Definition: transmission_info.h:59
transmission_interface::TransmissionInfo::actuators_
std::vector< ActuatorInfo > actuators_
Definition: transmission_info.h:83
transmission_interface::ActuatorInfo::xml_element_
std::string xml_element_
Definition: transmission_info.h:72
transmission_interface::TransmissionInfo::type_
std::string type_
Definition: transmission_info.h:81
transmission_interface::JointInfo
Contains semantic info about a given joint loaded from XML (URDF)
Definition: transmission_info.h:57
transmission_interface::ActuatorInfo::name_
std::string name_
Definition: transmission_info.h:70
transmission_interface::JointInfo::role_
std::string role_
Definition: transmission_info.h:61
transmission_interface::JointInfo::hardware_interfaces_
std::vector< std::string > hardware_interfaces_
Definition: transmission_info.h:60
transmission_interface::TransmissionInfo
Contains semantic info about a given transmission loaded from XML (URDF)
Definition: transmission_info.h:78
transmission_interface::ActuatorInfo::hardware_interfaces_
std::vector< std::string > hardware_interfaces_
Definition: transmission_info.h:71


transmission_interface
Author(s): Adolfo Rodriguez Tsouroukdissian
autogenerated on Tue Oct 15 2024 02:08:29