Motorcortex Core
version: 2.7.6
ps_setparam.h
1
/*
2
* Developer : Alexey Zakharov (alexey.zakharov@vectioneer.com)
3
* All rights reserved. Copyright (c) 2021 VECTIONEER.
4
*/
5
6
#ifndef MOTORCORTEX_CORE_PS_SETPARAM_H
7
#define MOTORCORTEX_CORE_PS_SETPARAM_H
8
9
#include "nlohmann/json.hpp"
10
#include "ps_paramtype.h"
11
12
namespace
mcx::parameter_server {
13
14
class
Parameter;
15
16
struct
SetParam
{
17
ParameterPath
path;
18
bool
force{
false
};
19
std::string value;
20
bool
enable{
true
};
21
};
22
23
bool
setParameter(
const
std::string& path,
const
SetParam
& set_param,
Parameter
* root);
24
std::string readValue(
const
nlohmann::json& json);
25
26
}
// namespace mcx::parameter_server
27
28
#endif // MOTORCORTEX_CORE_PS_SETPARAM_H
mcx::parameter_server::ParameterPath
Definition:
ps_paramtype.h:17
mcx::parameter_server::Parameter
Definition:
ps_parameter.h:45
mcx::parameter_server::SetParam
Definition:
ps_setparam.h:16
parameter_server
link
ps_setparam.h
Generated by
1.8.18