iCub-main
serviceParserCanBattery.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  * Author: Luca Tricerri
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef _ServiceParserCanBattery_H_
10 #define _ServiceParserCanBattery_H_
11 
12 #include <yarp/os/Bottle.h>
13 
14 #include <map>
15 #include <string>
16 
17 #include "EoAnalogSensors.h"
18 #include "EoBoards.h"
19 #include "EoManagement.h"
20 #include "EoMotionControl.h"
21 #include "batteryInfo.h"
22 
23 using namespace yarp::os;
24 
26 {
27  public:
29  bool parse(const yarp::os::Searchable& config);
30  bool toEomn(eOmn_serv_config_data_as_battery_t& out) const;
31  BatteryInfo& getBatteryInfo();
32 
33  protected:
34  virtual bool checkPropertyCanBoards(const Bottle& bPropertiesCanBoards); // OK
35  virtual bool checkPropertySensors(const Bottle& property); // OK
36  virtual bool checkSettings(const Bottle& settings); // OK
37  virtual bool checkServiceType(const Bottle& service); // OK
38  virtual eObrd_type_t checkBoardType(const std::string& boardType);
39 
41 };
42 
43 #endif
out
Definition: sine.m:8