25 lines
469 B
C++
25 lines
469 B
C++
//
|
||
// 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
|