add wust typr mpc and mutipule x

This commit is contained in:
cyy_mac
2026-03-27 03:41:42 +08:00
parent 2c64655fae
commit 7dcb53bb77
192 changed files with 29571 additions and 9 deletions

View File

@@ -0,0 +1,32 @@
#pragma once
#include "tasks/imodule.hpp"
#include "tasks/type_common.hpp"
#include <memory>
#include <rclcpp/node.hpp>
namespace wust_vision {
namespace auto_sniper {
class AutoSniper: public IModule {
public:
using Ptr = std::shared_ptr<AutoSniper>;
AutoSniper(
rclcpp::Node& node,
std::shared_ptr<wust_vl::common::utils::MotionBufferGeneric<Motion, 1024>> motion_buffer
);
static Ptr create(
rclcpp::Node& node,
std::shared_ptr<wust_vl::common::utils::MotionBufferGeneric<Motion, 1024>> motion_buffer
) {
return std::make_shared<AutoSniper>(node, motion_buffer);
}
~AutoSniper();
void start() override;
void doDebug() override;
void pushInput(CommonFrame& frame) override;
GimbalCmd solve(double bullet_speed) override;
wust_vl::common::concurrency::MonitoredThread::Ptr getThread() override;
struct Impl;
std::unique_ptr<Impl> _impl;
};
} // namespace auto_sniper
} // namespace wust_vision