ifw-fcf  4.1.0-pre2
smaractRpcErrors.hpp
Go to the documentation of this file.
1 
10 #ifndef DEVMGR_DEVICE_SMARACT_RPC_ERRORS_H
11 #define DEVMGR_DEVICE_SMARACT_RPC_ERRORS_H
12 
13 // System headers
14 #include <unordered_map>
15 
16 namespace fcf::devmgr::smaract {
17 
18  enum {
26  RPC_ERR_COMM_ERROR = -14
27  };
28 
29  const std::unordered_map<short, std::string> rpc_errors = {
30  {RPC_ERR_CHANNEL, "Channel not in range [0..17]."},
31  {RPC_ERR_VEL_ZERO, "Target Velocity cannot be zero."},
32  {RPC_ERR_VEL_NEG, "Target Velocity cannot be negative."},
33  {RPC_ERR_VEL_MAX, "Target Velocity higher than Maximum."},
34  {RPC_ERR_CHANNEL_NOT_OP, "Channel not OPERATIONAL. REFerence first."},
35  {RPC_ERR_CTRL_ERROR, "control error."},
36  {RPC_ERR_MOVING_ERROR, "Moving error."},
37  {RPC_ERR_COMM_ERROR, "Controller communication error."}
38  };
39 
40 }
41 #endif // DEVMGR_DEVICE_SMARACT_RPC_ERRORS_H
fcf::devmgr::smaract::RPC_ERR_VEL_MAX
@ RPC_ERR_VEL_MAX
Definition: smaractRpcErrors.hpp:22
fcf::devmgr::smaract::RPC_ERR_MOVING_ERROR
@ RPC_ERR_MOVING_ERROR
Definition: smaractRpcErrors.hpp:25
fcf::devmgr::smaract::RPC_ERR_CHANNEL_NOT_OP
@ RPC_ERR_CHANNEL_NOT_OP
Definition: smaractRpcErrors.hpp:23
fcf::devmgr::smaract::rpc_errors
const std::unordered_map< short, std::string > rpc_errors
Definition: smaractRpcErrors.hpp:29
fcf::devmgr::smaract
Definition: smaract.hpp:21
fcf::devmgr::smaract::RPC_ERR_COMM_ERROR
@ RPC_ERR_COMM_ERROR
Definition: smaractRpcErrors.hpp:26
fcf::devmgr::smaract::RPC_ERR_VEL_ZERO
@ RPC_ERR_VEL_ZERO
Definition: smaractRpcErrors.hpp:20
fcf::devmgr::smaract::RPC_ERR_VEL_NEG
@ RPC_ERR_VEL_NEG
Definition: smaractRpcErrors.hpp:21
fcf::devmgr::smaract::RPC_ERR_CTRL_ERROR
@ RPC_ERR_CTRL_ERROR
Definition: smaractRpcErrors.hpp:24
fcf::devmgr::smaract::RPC_ERR_CHANNEL
@ RPC_ERR_CHANNEL
Definition: smaractRpcErrors.hpp:19