cmvr-es/include/hardware/can/motormanager.h

25 lines
469 B
C
Raw Normal View History

2025-10-22 16:40:55 +08:00
//
// 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