JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
fixed_joint.hpp
Go to the documentation of this file.
1// Copyright (c) JSim contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the LGPLv3 license file in the root directory of this project.
4
5#pragma once
6
8
9namespace frcsim {
10
22class FixedJoint : public JointBase {
23 public:
24 FixedJoint(RigidBody* body_a, RigidBody* body_b)
25 : JointBase(JointType::kFixed, body_a, body_b) {}
26
27 void solveConstraint(double dt_s, int iterations) override;
28 double constraintError() const override;
29};
30
31} // namespace frcsim
void solveConstraint(double dt_s, int iterations) override
double constraintError() const override
FixedJoint(RigidBody *body_a, RigidBody *body_b)
Definition fixed_joint.hpp:24
JointBase(JointType type, RigidBody *body_a, RigidBody *body_b)
Definition joint_base.hpp:71
Simulated rigid body with translational/angular dynamics and optional aero metadata.
Definition rigid_body.hpp:44
Definition vector.hpp:13
JointType
Definition joint_base.hpp:13
@ kFixed
Definition joint_base.hpp:16