hpp-pinocchio  4.9.1
Wrapping of the kinematic/dynamic chain Pinocchio for HPP.
util.hh
Go to the documentation of this file.
1 // Copyright (C) 2016 by Joseph Mirabel
2 //
3 // This file is part of the hpp-pinocchio.
4 //
5 // hpp-pinocchio is free software: you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public License
7 // as published by the Free Software Foundation, either version 3 of
8 // the License, or (at your option) any later version.
9 //
10 // hpp-pinocchio is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with hpp-pinocchio. If not, see
17 // <http://www.gnu.org/licenses/>.
18 
19 
21 
22 #ifndef HPP_PINOCCHIO_URDF_UTIL
23 # define HPP_PINOCCHIO_URDF_UTIL
24 
25 #include <hpp/pinocchio/fwd.hh>
26 #include <hpp/pinocchio/deprecated.hh>
27 
28 namespace hpp
29 {
30  namespace pinocchio
31  {
32  namespace urdf
33  {
47 
51  void loadRobotModel (const DevicePtr_t& robot,
52  const FrameIndex& baseFrame,
53  const std::string& prefix,
54  const std::string& rootJointType,
55  const std::string& package,
56  const std::string& modelName,
57  const std::string& urdfSuffix,
58  const std::string& srdfSuffix);
59  void loadRobotModel (const DevicePtr_t& robot,
60  const std::string& rootJointType,
61  const std::string& package,
62  const std::string& modelName,
63  const std::string& urdfSuffix,
64  const std::string& srdfSuffix);
65 
68  void setupHumanoidRobot (const HumanoidRobotPtr_t& robot,
69  const std::string& prefix = "");
70 
82 
86  void loadUrdfModel (const DevicePtr_t& robot,
87  const FrameIndex& baseFrame,
88  const std::string& prefix,
89  const std::string& rootJointType,
90  const std::string& package,
91  const std::string& filename);
92  void loadUrdfModel (const DevicePtr_t& robot,
93  const std::string& rootJointType,
94  const std::string& package,
95  const std::string& filename);
96 
101  void loadModel (const DevicePtr_t& robot,
102  const FrameIndex& baseFrame,
103  const std::string& prefix,
104  const std::string& rootType,
105  const std::string& urdfPath,
106  const std::string& srdfPath);
107 
110  void loadModelFromString (const DevicePtr_t& robot,
111  const FrameIndex& baseFrame,
112  const std::string& prefix,
113  const std::string& rootType,
114  const std::string& urdfString,
115  const std::string& srdfString);
116  } // end of namespace urdf.
117  } // end of namespace pinocchio.
118 } // end of namespace hpp.
119 
120 #endif // HPP_PINOCCHIO_URDF_PARSER
boost::shared_ptr< Device > DevicePtr_t
Definition: fwd.hh:104
Utility functions.
boost::shared_ptr< HumanoidRobot > HumanoidRobotPtr_t
Definition: fwd.hh:107
void loadUrdfModel(const DevicePtr_t &robot, const FrameIndex &baseFrame, const std::string &prefix, const std::string &rootJointType, const std::string &package, const std::string &filename)
void setupHumanoidRobot(const HumanoidRobotPtr_t &robot, const std::string &prefix="")
::pinocchio::FrameIndex FrameIndex
Definition: fwd.hh:63
void loadModel(const DevicePtr_t &robot, const FrameIndex &baseFrame, const std::string &prefix, const std::string &rootType, const std::string &urdfPath, const std::string &srdfPath)
void loadModelFromString(const DevicePtr_t &robot, const FrameIndex &baseFrame, const std::string &prefix, const std::string &rootType, const std::string &urdfString, const std::string &srdfString)
void loadRobotModel(const DevicePtr_t &robot, const FrameIndex &baseFrame, const std::string &prefix, const std::string &rootJointType, const std::string &package, const std::string &modelName, const std::string &urdfSuffix, const std::string &srdfSuffix)