cmvr-es/include/hardware/can/motormanager.h
2025-10-22 16:40:55 +08:00

25 lines
469 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// Created by linbo on 2025/10/22.
//
#ifndef CMVR_ES_MOTORMANAGER_H
#define CMVR_ES_MOTORMANAGER_H
#include <unordered_map>
#include <memory>
#include "abstractmotor.h"
namespace cmvr::device
{
class MotorManager
{
public:
explicit MotorManager(const XmlNode &cfg);
~MotorManager();
private:
std::unordered_map<int, std::shared_ptr<AbstractMotor>> m_motors;//以id区分电机
};
}
#endif //CMVR_ES_MOTORMANAGER_H