Program Listing for File passthroughmodel.hpp

Return to documentation for file (include/physicalmodel/passthroughmodel.hpp)

#ifndef _PHYSICAL_MODEL_PASSTHROUGH_MODEL_HPP_
#define _PHYSICAL_MODEL_PASSTHROUGH_MODEL_HPP_

#include "physicalmodel/physicalmodel.hpp"

namespace squiggles {
class PassthroughModel : public PhysicalModel {
  public:
  PassthroughModel() = default;

  Constraints constraints(const Pose pose,
                          double curvature,
                          double vel) override {
    UNUSED(pose);
    UNUSED(curvature);
    return Constraints(vel);
  };

  std::vector<double> linear_to_wheel_vels(double lin_vel,
                                           double curvature) override {
    UNUSED(lin_vel);
    UNUSED(curvature);
    return std::vector<double>{};
  }

  std::string to_string() override {
    return "PassthroughModel {}";
  }
};
} // namespace squiggles

#endif