hpp-pinocchio
9.0.2
Wrapping of the kinematic/dynamic chain Pinocchio for HPP.
Toggle main menu visibility
Loading...
Searching...
No Matches
util.hh
Go to the documentation of this file.
1
// Copyright (C) 2016 by Joseph Mirabel
2
//
3
4
// Redistribution and use in source and binary forms, with or without
5
// modification, are permitted provided that the following conditions are
6
// met:
7
//
8
// 1. Redistributions of source code must retain the above copyright
9
// notice, this list of conditions and the following disclaimer.
10
//
11
// 2. Redistributions in binary form must reproduce the above copyright
12
// notice, this list of conditions and the following disclaimer in the
13
// documentation and/or other materials provided with the distribution.
14
//
15
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26
// DAMAGE.
27
29
30
#ifndef HPP_PINOCCHIO_URDF_UTIL
31
#define HPP_PINOCCHIO_URDF_UTIL
32
33
#include <
hpp/pinocchio/deprecated.hh
>
34
#include <
hpp/pinocchio/fwd.hh
>
35
#include <pinocchio/spatial/se3.hpp>
36
37
namespace
hpp
{
38
namespace
pinocchio
{
39
namespace
urdf
{
57
void
loadRobotModel
(
const
DevicePtr_t
& robot,
const
FrameIndex
& baseFrame,
58
const
std::string& prefix,
const
std::string& rootJointType,
59
const
std::string& package,
const
std::string& modelName,
60
const
std::string& urdfSuffix,
61
const
std::string& srdfSuffix,
62
const
SE3
& bMr = SE3::Identity());
63
void
loadRobotModel
(
const
DevicePtr_t
& robot,
const
std::string& rootJointType,
64
const
std::string& package,
const
std::string& modelName,
65
const
std::string& urdfSuffix,
66
const
std::string& srdfSuffix);
67
70
void
setupHumanoidRobot
(
const
HumanoidRobotPtr_t
& robot,
71
const
std::string& prefix =
""
);
72
84
88
void
loadUrdfModel
(
const
DevicePtr_t
& robot,
const
FrameIndex
& baseFrame,
89
const
std::string& prefix,
const
std::string& rootJointType,
90
const
std::string& package,
const
std::string& filename,
91
const
SE3
& bMr = SE3::Identity());
92
void
loadUrdfModel
(
const
DevicePtr_t
& robot,
const
std::string& rootJointType,
93
const
std::string& package,
const
std::string& filename);
94
99
void
loadModel
(
const
DevicePtr_t
& robot,
const
FrameIndex
& baseFrame,
100
const
std::string& prefix,
const
std::string& rootType,
101
const
std::string& urdfPath,
const
std::string& srdfPath,
102
const
SE3
& bMr = SE3::Identity());
103
106
void
loadModelFromString
(
const
DevicePtr_t
& robot,
const
FrameIndex
& baseFrame,
107
const
std::string& prefix,
const
std::string& rootType,
108
const
std::string& urdfString,
109
const
std::string& srdfString,
110
const
SE3
& bMr = SE3::Identity());
111
113
void
loadSRDFModel
(
const
DevicePtr_t
& robot, std::string prefix,
114
const
std::string& srdfPath);
115
117
void
loadSRDFModelFromString
(
const
DevicePtr_t
& robot, std::string prefix,
118
const
std::string& srdfString);
119
}
// end of namespace urdf.
120
}
// end of namespace pinocchio.
121
}
// end of namespace hpp.
122
123
#endif
// HPP_PINOCCHIO_URDF_PARSER
deprecated.hh
fwd.hh
hpp::pinocchio::urdf
Definition
util.hh:39
hpp::pinocchio::urdf::loadModelFromString
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, const SE3 &bMr=SE3::Identity())
hpp::pinocchio::urdf::loadModel
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, const SE3 &bMr=SE3::Identity())
hpp::pinocchio::urdf::setupHumanoidRobot
void setupHumanoidRobot(const HumanoidRobotPtr_t &robot, const std::string &prefix="")
hpp::pinocchio::urdf::loadSRDFModelFromString
void loadSRDFModelFromString(const DevicePtr_t &robot, std::string prefix, const std::string &srdfString)
Read SRDF string.
hpp::pinocchio::urdf::loadRobotModel
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, const SE3 &bMr=SE3::Identity())
hpp::pinocchio::urdf::loadUrdfModel
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, const SE3 &bMr=SE3::Identity())
hpp::pinocchio::urdf::loadSRDFModel
void loadSRDFModel(const DevicePtr_t &robot, std::string prefix, const std::string &srdfPath)
Read SRDF file.
hpp::pinocchio
Definition
body.hh:40
hpp::pinocchio::DevicePtr_t
shared_ptr< Device > DevicePtr_t
Definition
fwd.hh:121
hpp::pinocchio::HumanoidRobotPtr_t
shared_ptr< HumanoidRobot > HumanoidRobotPtr_t
Definition
fwd.hh:124
hpp::pinocchio::FrameIndex
::pinocchio::FrameIndex FrameIndex
Definition
fwd.hh:73
hpp::pinocchio::SE3
::pinocchio::SE3 SE3
Definition
fwd.hh:84
hpp
Utility functions.
include
hpp
pinocchio
urdf
util.hh
Generated by
1.17.0