LightLib
PROS library for VEX V5: EKF/MCL localization, RAMSETE path following, high-level chassis API
Loading...
Searching...
No Matches
passthroughmodel.hpp
Go to the documentation of this file.
1
7#ifndef _PHYSICAL_MODEL_PASSTHROUGH_MODEL_HPP_
8#define _PHYSICAL_MODEL_PASSTHROUGH_MODEL_HPP_
9
11
12namespace squiggles {
14 public:
18 PassthroughModel() = default;
19
20 Constraints constraints([[maybe_unused]] const Pose pose,
21 [[maybe_unused]] double curvature,
22 double vel) override {
23 return Constraints(vel);
24 };
25
26 std::vector<double>
27 linear_to_wheel_vels([[maybe_unused]] double lin_vel,
28 [[maybe_unused]] double curvature) override {
29 return std::vector<double>{};
30 }
31
32 std::string to_string() const override {
33 return "PassthroughModel {}";
34 }
35};
36} // namespace squiggles
37
38#endif
std::vector< double > linear_to_wheel_vels(double lin_vel, double curvature) override
Converts a linear velocity and desired curvature into the component for each wheel of the robot.
Constraints constraints(const Pose pose, double curvature, double vel) override
Calculate a set of stricter constraints for the path at the given state than the general constraints ...
PassthroughModel()=default
Defines a Physical Model that imposes no constraints of its own.
std::string to_string() const override
Copyright 2020 Jonathan Bayless.