Apollo 10.0
自动驾驶开放平台
demo_message_manager.cc
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2023 The Apollo Authors. All Rights Reserved.
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
18
41
42namespace apollo {
43namespace canbus {
44namespace demo {
45
47 // Control Messages
48 AddSendProtocolData<Brakecommand101, true>();
49 AddSendProtocolData<Gearcommand103, true>();
50 AddSendProtocolData<Parkcommand104, true>();
51 AddSendProtocolData<Steeringcommand102, true>();
52 AddSendProtocolData<Throttlecommand100, true>();
53 AddSendProtocolData<Vehiclemodecommand105, true>();
54
55 // Report Messages
56 AddRecvProtocolData<Bmsreport512, true>();
57 AddRecvProtocolData<Brakereport501, true>();
58 AddRecvProtocolData<Gearreport503, true>();
59 AddRecvProtocolData<Parkreport504, true>();
60 AddRecvProtocolData<Steeringreport502, true>();
61 AddRecvProtocolData<Throttlereport500, true>();
62 AddRecvProtocolData<Ultrsensor1507, true>();
63 AddRecvProtocolData<Ultrsensor2508, true>();
64 AddRecvProtocolData<Ultrsensor3509, true>();
65 AddRecvProtocolData<Ultrsensor4510, true>();
66 AddRecvProtocolData<Ultrsensor5511, true>();
67 AddRecvProtocolData<Vcureport505, true>();
68 AddRecvProtocolData<Vinresp1514, true>();
69 AddRecvProtocolData<Vinresp2515, true>();
70 AddRecvProtocolData<Vinresp3516, true>();
71 AddRecvProtocolData<Wheelspeedreport506, true>();
72}
73
75
76} // namespace demo
77} // namespace canbus
78} // namespace apollo
the class of DemoMessageManager
class register implement
Definition arena_queue.h:37