Initial commit
This commit is contained in:
commit
2c7628bb9f
381 files changed
+83535
No files matched your search
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Copyright 2020 Jonathan Bayless
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be found
|
||||
* in the LICENSE file or at https://opensource.org/licenses/MIT.
|
||||
*/
|
||||
#ifndef _PHYSICAL_MODEL_PASSTHROUGH_MODEL_HPP_
|
||||
#define _PHYSICAL_MODEL_PASSTHROUGH_MODEL_HPP_
|
||||
|
||||
#include "physicalmodel/physicalmodel.hpp"
|
||||
|
||||
namespace squiggles {
|
||||
class PassthroughModel : public PhysicalModel {
|
||||
public:
|
||||
/**
|
||||
* Defines a Physical Model that imposes no constraints of its own.
|
||||
*/
|
||||
PassthroughModel() = default;
|
||||
|
||||
Constraints constraints([[maybe_unused]] const Pose pose,
|
||||
[[maybe_unused]] double curvature,
|
||||
double vel) override {
|
||||
return Constraints(vel);
|
||||
};
|
||||
|
||||
std::vector<double>
|
||||
linear_to_wheel_vels([[maybe_unused]] double lin_vel,
|
||||
[[maybe_unused]] double curvature) override {
|
||||
return std::vector<double>{};
|
||||
}
|
||||
|
||||
std::string to_string() const override {
|
||||
return "PassthroughModel {}";
|
||||
}
|
||||
};
|
||||
} // namespace squiggles
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user