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
7
#include "
frcsim/joints/joint_base.hpp
"
8
9
namespace
frcsim
{
10
22
class
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
frcsim::FixedJoint::solveConstraint
void solveConstraint(double dt_s, int iterations) override
frcsim::FixedJoint::constraintError
double constraintError() const override
frcsim::FixedJoint::FixedJoint
FixedJoint(RigidBody *body_a, RigidBody *body_b)
Definition
fixed_joint.hpp:24
frcsim::JointBase::JointBase
JointBase(JointType type, RigidBody *body_a, RigidBody *body_b)
Definition
joint_base.hpp:71
frcsim::RigidBody
Simulated rigid body with translational/angular dynamics and optional aero metadata.
Definition
rigid_body.hpp:44
joint_base.hpp
frcsim
Definition
vector.hpp:13
frcsim::JointType
JointType
Definition
joint_base.hpp:13
frcsim::JointType::kFixed
@ kFixed
Definition
joint_base.hpp:16
src
main
driver
include
frcsim
joints
fixed_joint.hpp
Generated by
1.15.0