ros2_control - galactic
Loading...
Searching...
No Matches
transmission_parser.hpp
Go to the documentation of this file.
1// Copyright 2020 Open Source Robotics Foundation, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
16
21#ifndef TRANSMISSION_INTERFACE__TRANSMISSION_PARSER_HPP_
22#define TRANSMISSION_INTERFACE__TRANSMISSION_PARSER_HPP_
23
24#include <transmission_interface/visibility_control.h>
25#include <transmission_interface/transmission_info.hpp>
26
27#include <tinyxml2.h>
28
29#include <string>
30#include <vector>
31
33{
35
41TRANSMISSION_INTERFACE_PUBLIC
42std::vector<JointInfo> parse_joints(tinyxml2::XMLElement * trans_it);
43
45
51TRANSMISSION_INTERFACE_PUBLIC
52std::vector<ActuatorInfo> parse_actuators(tinyxml2::XMLElement * trans_it);
53
55
60TRANSMISSION_INTERFACE_PUBLIC
61std::vector<TransmissionInfo> parse_transmissions_from_urdf(const std::string & urdf);
62} // namespace transmission_interface
63
64#endif // TRANSMISSION_INTERFACE__TRANSMISSION_PARSER_HPP_
Definition accessor.hpp:24
TRANSMISSION_INTERFACE_PUBLIC std::vector< ActuatorInfo > parse_actuators(tinyxml2::XMLElement *trans_it)
Parses the actuator elements within transmission elements of a URDF.
TRANSMISSION_INTERFACE_PUBLIC std::vector< JointInfo > parse_joints(tinyxml2::XMLElement *trans_it)
Parses the joint elements within transmission elements of a URDF.
TRANSMISSION_INTERFACE_PUBLIC std::vector< TransmissionInfo > parse_transmissions_from_urdf(const std::string &urdf)
Parse transmission information from a URDF.