message.cpp
Go to the documentation of this file.
1 #include "message.hpp"
2 
3 using namespace quori;
4 using namespace quori::message;
5 
7  : marker(static_cast<uint8_t>(Type::Initialize))
8 {
9 }
10 
12  : marker(static_cast<uint8_t>(Type::SetPositions))
13 {
14 }
15 
17  : marker(static_cast<uint8_t>(Type::Set))
18 {
19 }
20 
22  : marker(static_cast<uint8_t>(Type::SetPositionsRes))
23 {
24 }
25 
27  : marker(static_cast<uint8_t>(Type::GetStates))
28 {
29 }
30 
32  : marker(static_cast<uint8_t>(Type::SetVelocities))
33 {
34 }
35 
37  : marker(static_cast<uint8_t>(Type::Coast))
38 {
39 }
40 
42  : marker(static_cast<uint8_t>(Type::SetLimit))
43 {
44 }
45 
47  : marker(static_cast<uint8_t>(Type::Log))
48 {
49  memset(message, 0, sizeof(message));
50 }
51 
53  : marker(static_cast<uint8_t>(Type::States))
54 {
55 }
56 
57 size_t message::string_length(const std::string &t)
58 {
59  return t.size();
60 }
61 
62 size_t message::string_length(const char *const t)
63 {
64  return strlen(t);
65 }
66 
67 const char *message::c_string(const std::string &t)
68 {
69  return t.c_str();
70 }
71 
72 const char *message::c_string(const char *const t)
73 {
74  return t;
75 }
quori::message::Set::Set
Set()
Definition: message.cpp:16
quori::message::c_string
const char * c_string(const std::string &t)
Definition: message.cpp:67
quori::message::SetVelocities::SetVelocities
SetVelocities()
Definition: message.cpp:31
quori::message::SetPositionsRes
Definition: message.hpp:51
quori::message
Definition: message.hpp:12
message.hpp
quori::message::SetLimit::SetLimit
SetLimit()
Definition: message.cpp:41
quori::message::SetPositions::SetPositions
SetPositions()
Definition: message.cpp:11
quori::message::Coast
Definition: message.hpp:71
quori::message::Initialize
Definition: message.hpp:29
quori::message::States::States
States()
Definition: message.cpp:52
quori::message::string_length
size_t string_length(const std::string &t)
Definition: message.cpp:57
quori::message::Type
Type
Definition: message.hpp:14
quori::message::GetStates
Definition: message.hpp:58
quori::message::Log::Log
Log()
Definition: message.cpp:46
quori::message::SetPositions
Definition: message.hpp:35
quori::message::Set
Definition: message.hpp:42
quori
Definition: message.hpp:10
quori::message::Initialize::Initialize
Initialize()
Definition: message.cpp:6
quori::message::Coast::Coast
Coast()
Definition: message.cpp:36
quori::message::SetPositionsRes::SetPositionsRes
SetPositionsRes()
Definition: message.cpp:21
quori::message::GetStates::GetStates
GetStates()
Definition: message.cpp:26
quori::message::States
Definition: message.hpp:109
quori::message::Log
Definition: message.hpp:102
quori::message::Log::message
char message[32]
Definition: message.hpp:106
quori::message::SetVelocities
Definition: message.hpp:64
quori::message::SetLimit
Definition: message.hpp:77


quori_controller
Author(s):
autogenerated on Wed Mar 2 2022 00:53:16