transmission_parser.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  *********************************************************************/
35 
42 #ifndef TRANSMISSION_INTERFACE_TRANSMISSION_PARSER_H
43 #define TRANSMISSION_INTERFACE_TRANSMISSION_PARSER_H
44 
45 // ros_control
47 
48 // ROS
49 #include <ros/ros.h>
50 
51 // XML
52 #include <tinyxml.h>
53 
54 namespace transmission_interface
55 {
56 
59 {
60 public:
61 
68  static bool parse(const std::string& urdf_string, std::vector<TransmissionInfo>& transmissions);
69 
70 private:
77  static bool parseJoints(TiXmlElement *trans_it, std::vector<JointInfo>& joints);
78 
85  static bool parseActuators(TiXmlElement *trans_it, std::vector<ActuatorInfo>& actuators);
86 
87 }; // class
88 
89 } // namespace
90 
91 #endif
static bool parse(const std::string &urdf_string, std::vector< TransmissionInfo > &transmissions)
Parses the tranmission elements of a URDF.
Parse all transmissions specified in a URDF.
Structs to hold tranmission data loaded straight from XML (URDF).
static bool parseJoints(TiXmlElement *trans_it, std::vector< JointInfo > &joints)
Parses the joint elements within tranmission elements of a URDF.
static bool parseActuators(TiXmlElement *trans_it, std::vector< ActuatorInfo > &actuators)
Parses the actuator elements within tranmission elements of a URDF.


transmission_interface
Author(s): Adolfo Rodriguez Tsouroukdissian
autogenerated on Mon Apr 20 2020 03:52:15