JSim 2026.06.01-p(1)
Loading...
Searching...
No Matches
mecanum_model.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
11class RigidBody;
12
17public:
18 MecanumModel() = default;
19 virtual ~MecanumModel() = default;
20
30 virtual void Update(RigidBody* chassis, double flVolts, double frVolts, double blVolts, double brVolts, double dt) = 0;
31};
32
33} // namespace frcsim
virtual void Update(RigidBody *chassis, double flVolts, double frVolts, double blVolts, double brVolts, double dt)=0
Applies motor torques and calculates slip for mecanum wheels.
virtual ~MecanumModel()=default
Simulated rigid body with translational/angular dynamics and optional aero metadata.
Definition rigid_body.hpp:44
Definition vector.hpp:13