DART 6.10.1
Loading...
Searching...
No Matches
TranslationalJoint.hpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011-2021, The DART development contributors
3 * All rights reserved.
4 *
5 * The list of contributors can be found at:
6 * https://github.com/dartsim/dart/blob/master/LICENSE
7 *
8 * This file is provided under the following "BSD-style" License:
9 * Redistribution and use in source and binary forms, with or
10 * without modification, are permitted provided that the following
11 * conditions are met:
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * * Redistributions in binary form must reproduce the above
15 * copyright notice, this list of conditions and the following
16 * disclaimer in the documentation and/or other materials provided
17 * with the distribution.
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
19 * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
26 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
29 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#ifndef DART_DYNAMICS_TRANSLATIONALJOINT_HPP_
34#define DART_DYNAMICS_TRANSLATIONALJOINT_HPP_
35
36#include <string>
37
39
40namespace dart {
41namespace dynamics {
42
44class TranslationalJoint : public GenericJoint<math::R3Space>
45{
46public:
47 friend class Skeleton;
48
50
59
61
63 virtual ~TranslationalJoint();
64
67
68 // Documentation inherited
69 const std::string& getType() const override;
70
72 static const std::string& getStaticType();
73
74 // Documentation inherited
75 bool isCyclic(std::size_t _index) const override;
76
77 Eigen::Matrix<double, 6, 3> getRelativeJacobianStatic(
78 const Eigen::Vector3d& _positions) const override;
79
80protected:
83
84 // Documentation inherited
85 Joint* clone() const override;
86
88
89 // Documentation inherited
90 void updateDegreeOfFreedomNames() override;
91
92 // Documentation inherited
93 void updateRelativeTransform() const override;
94
95 // Documentation inherited
96 void updateRelativeJacobian(bool _mandatory = true) const override;
97
98 // Documentation inherited
99 void updateRelativeJacobianTimeDeriv() const override;
100};
101
102} // namespace dynamics
103} // namespace dart
104
105#endif // DART_DYNAMICS_TRANSLATIONALJOINT_HPP_
#define DART_DEFINE_ALIGNED_SHARED_OBJECT_CREATOR(class_name)
Definition Memory.hpp:155
BodyPropPtr properties
Definition SdfParser.cpp:80
Definition GenericJoint.hpp:48
const GenericJoint< math::R3Space >::JacobianMatrix & getRelativeJacobianStatic() const
Fixed-size version of getRelativeJacobian()
Definition GenericJoint.hpp:1570
detail::GenericJointProperties< math::R3Space > Properties
Definition GenericJoint.hpp:62
class Joint
Definition Joint.hpp:60
class Skeleton
Definition Skeleton.hpp:59
class TranslationalJoint
Definition TranslationalJoint.hpp:45
Properties getTranslationalJointProperties() const
Get the Properties of this TranslationalJoint.
Definition TranslationalJoint.cpp:66
Joint * clone() const override
Definition TranslationalJoint.cpp:82
bool isCyclic(std::size_t _index) const override
Definition TranslationalJoint.cpp:101
virtual ~TranslationalJoint()
Destructor.
Definition TranslationalJoint.cpp:51
void updateRelativeJacobian(bool _mandatory=true) const override
Definition TranslationalJoint.cpp:129
void updateDegreeOfFreedomNames() override
Definition TranslationalJoint.cpp:107
void updateRelativeJacobianTimeDeriv() const override
Definition TranslationalJoint.cpp:143
TranslationalJoint(const TranslationalJoint &)=delete
static const std::string & getStaticType()
Get joint type for this class.
Definition TranslationalJoint.cpp:94
void updateRelativeTransform() const override
Definition TranslationalJoint.cpp:118
const std::string & getType() const override
Definition TranslationalJoint.cpp:88
Definition BulletCollisionDetector.cpp:65
Definition TranslationalJoint.hpp:52