mbsim 4.0.0 MBSim Kernel

mechanical_constraint.h
1 /* Copyright (C) 2004-2017 MBSim Development Team
2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2.1 of the License, or (at your option) any later version.
6 *
7 * This library is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
11 *
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 *
16 * Contact: martin.o.foerg@googlemail.com
17 */
18
19 #ifndef _MECHANICAL_CONSTRAINT_H
20 #define _MECHANICAL_CONSTRAINT_H
21
22 #include "constraint.h"
23
24 namespace MBSim {
25
26 class MechanicalLink;
27
32 class MechanicalConstraint : public Constraint {
33 public:
34 MechanicalConstraint(const std::string &name) : Constraint(name), link(nullptr) { }
35 MechanicalLink *getMechanicalLink() { return link; }
36
37 protected:
38 MechanicalLink *link;
39 };
40
41 }
42
43 #endif
MBSim::MechanicalConstraint
Class for mechanical constraints.
Definition: mechanical_constraint.h:32
MBSim::Element::name
std::string name
name of element
Definition: element.h:260
MBSim::Constraint
Class for constraints between generalized coordinates of objects.
Definition: constraint.h:30
MBSim::MechanicalLink
mechanical link
Definition: mechanical_link.h:33
MBSim
namespace MBSim
Definition: bilateral_constraint.cc:30