提交 b581df32 编写于 作者: C Capri2014 提交者: Kecheng Xu

Tools: update message_manager

上级 92d02cc3
......@@ -12,6 +12,7 @@ py_library(
srcs = ["message_manager.py"],
deps = [
":proto_utils",
"//modules/audio/proto:audio_event_py_pb2",
"//modules/canbus/proto:chassis_py_pb2",
"//modules/common/proto:drive_event_py_pb2",
"//modules/control/proto:control_cmd_py_pb2",
......
......@@ -16,6 +16,7 @@
# limitations under the License.
###############################################################################
from modules.audio.proto import audio_event_pb2
from modules.localization.proto import localization_pb2
from modules.perception.proto import perception_obstacle_pb2
from modules.perception.proto import traffic_light_detection_pb2
......@@ -31,6 +32,7 @@ from modules.guardian.proto import guardian_pb2
from modules.tools.common import proto_utils
class MessageType:
def __init__(self, name, topic, msg_type):
self.name = name
......@@ -50,6 +52,8 @@ class MessageType:
topic_pb_list = [
MessageType("audio_event", "/apollo/audio_event",
audio_event_pb2.AudioEvent),
MessageType("planning", "/apollo/planning", planning_pb2.ADCTrajectory),
MessageType("control", "/apollo/control", control_cmd_pb2.ControlCommand),
MessageType("chassis", "/apollo/canbus/chassis", chassis_pb2.Chassis),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册