encode.h
Go to the documentation of this file.
1 /*
2  * Copyright 2024 The urg_stamped Authors
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef URG_SIM_ENCODE_H
18 #define URG_SIM_ENCODE_H
19 
20 #include <cstdint>
21 #include <string>
22 #include <vector>
23 
24 namespace urg_sim
25 {
26 namespace encode
27 {
28 
29 std::string checksum(const std::string& a);
30 std::string withChecksum(const std::string& s);
31 
32 enum class EncodeType
33 {
34  CED2 = 2,
35  CED3 = 3,
36  CED4 = 4,
37 };
38 
39 std::string encode(const std::vector<uint32_t>& v, const EncodeType ced);
40 
41 } // namespace encode
42 } // namespace urg_sim
43 
44 #endif // URG_SIM_ENCODE_H
urg_sim::encode::encode
std::string encode(const std::vector< uint32_t > &v, const EncodeType ced)
Definition: encode.cpp:43
urg_sim
Definition: encode.h:24
s
XmlRpcServer s
urg_sim::encode::EncodeType::CED3
@ CED3
urg_sim::encode::EncodeType
EncodeType
Definition: encode.h:32
urg_sim::encode::checksum
std::string checksum(const std::string &a)
Definition: encode.cpp:28
urg_sim::encode::EncodeType::CED4
@ CED4
urg_sim::encode::EncodeType::CED2
@ CED2
urg_sim::encode::withChecksum
std::string withChecksum(const std::string &s)
Definition: encode.cpp:38


urg_stamped
Author(s): Atsushi Watanabe
autogenerated on Wed Dec 18 2024 03:10:57