From: Federica Di Lauro Date: Fri, 7 Feb 2020 15:46:41 +0000 (+0100) Subject: add protobuf messages definitions, python and C code X-Git-Url: http://git.leonardobizzoni.com/?a=commitdiff_plain;h=4f4c20953de231ab36049fbf795e2a38c189710d;p=pioneer-stm32 add protobuf messages definitions, python and C code --- diff --git a/utils/protobuf_messages/c_protobuf_includes/config_command.pb.c b/utils/protobuf_messages/c_protobuf_includes/config_command.pb.c new file mode 100644 index 0000000..41fce3c --- /dev/null +++ b/utils/protobuf_messages/c_protobuf_includes/config_command.pb.c @@ -0,0 +1,12 @@ +/* Automatically generated nanopb constant definitions */ +/* Generated by 0.4.1-dev */ + +#include "config_command.pb.h" +#if PB_PROTO_HEADER_VERSION != 40 +#error Regenerate this file with the current version of nanopb generator. +#endif + +PB_BIND(ConfigCommand, ConfigCommand, AUTO) + + + diff --git a/utils/protobuf_messages/c_protobuf_includes/config_command.pb.h b/utils/protobuf_messages/c_protobuf_includes/config_command.pb.h new file mode 100644 index 0000000..d85af4a --- /dev/null +++ b/utils/protobuf_messages/c_protobuf_includes/config_command.pb.h @@ -0,0 +1,83 @@ +/* Automatically generated nanopb header */ +/* Generated by 0.4.1-dev */ + +#ifndef PB_CONFIG_COMMAND_PB_H_INCLUDED +#define PB_CONFIG_COMMAND_PB_H_INCLUDED +#include + +#if PB_PROTO_HEADER_VERSION != 40 +#error Regenerate this file with the current version of nanopb generator. +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* Struct definitions */ +typedef struct _ConfigCommand { + float left_kp; + float left_ki; + float left_kd; + float right_kp; + float right_ki; + float right_kd; + float cross_kp; + float cross_ki; + float cross_kd; + float baseline; + uint32_t ticks_per_revolution; + float right_wheel_circumference; + float left_wheel_circumference; +} ConfigCommand; + + +/* Initializer values for message structs */ +#define ConfigCommand_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} +#define ConfigCommand_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} + +/* Field tags (for use in manual encoding/decoding) */ +#define ConfigCommand_left_kp_tag 1 +#define ConfigCommand_left_ki_tag 2 +#define ConfigCommand_left_kd_tag 3 +#define ConfigCommand_right_kp_tag 4 +#define ConfigCommand_right_ki_tag 5 +#define ConfigCommand_right_kd_tag 6 +#define ConfigCommand_cross_kp_tag 7 +#define ConfigCommand_cross_ki_tag 8 +#define ConfigCommand_cross_kd_tag 9 +#define ConfigCommand_baseline_tag 10 +#define ConfigCommand_ticks_per_revolution_tag 11 +#define ConfigCommand_right_wheel_circumference_tag 12 +#define ConfigCommand_left_wheel_circumference_tag 13 + +/* Struct field encoding specification for nanopb */ +#define ConfigCommand_FIELDLIST(X, a) \ +X(a, STATIC, SINGULAR, FLOAT, left_kp, 1) \ +X(a, STATIC, SINGULAR, FLOAT, left_ki, 2) \ +X(a, STATIC, SINGULAR, FLOAT, left_kd, 3) \ +X(a, STATIC, SINGULAR, FLOAT, right_kp, 4) \ +X(a, STATIC, SINGULAR, FLOAT, right_ki, 5) \ +X(a, STATIC, SINGULAR, FLOAT, right_kd, 6) \ +X(a, STATIC, SINGULAR, FLOAT, cross_kp, 7) \ +X(a, STATIC, SINGULAR, FLOAT, cross_ki, 8) \ +X(a, STATIC, SINGULAR, FLOAT, cross_kd, 9) \ +X(a, STATIC, SINGULAR, FLOAT, baseline, 10) \ +X(a, STATIC, SINGULAR, FIXED32, ticks_per_revolution, 11) \ +X(a, STATIC, SINGULAR, FLOAT, right_wheel_circumference, 12) \ +X(a, STATIC, SINGULAR, FLOAT, left_wheel_circumference, 13) +#define ConfigCommand_CALLBACK NULL +#define ConfigCommand_DEFAULT NULL + +extern const pb_msgdesc_t ConfigCommand_msg; + +/* Defines for backwards compatibility with code written before nanopb-0.4.0 */ +#define ConfigCommand_fields &ConfigCommand_msg + +/* Maximum encoded size of messages (where known) */ +#define ConfigCommand_size 65 + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif diff --git a/utils/protobuf_messages/c_protobuf_includes/status_message.pb.c b/utils/protobuf_messages/c_protobuf_includes/status_message.pb.c new file mode 100644 index 0000000..2367ff3 --- /dev/null +++ b/utils/protobuf_messages/c_protobuf_includes/status_message.pb.c @@ -0,0 +1,13 @@ +/* Automatically generated nanopb constant definitions */ +/* Generated by 0.4.1-dev */ + +#include "status_message.pb.h" +#if PB_PROTO_HEADER_VERSION != 40 +#error Regenerate this file with the current version of nanopb generator. +#endif + +PB_BIND(VelocityCommand, VelocityCommand, AUTO) + + + + diff --git a/utils/protobuf_messages/c_protobuf_includes/status_message.pb.h b/utils/protobuf_messages/c_protobuf_includes/status_message.pb.h new file mode 100644 index 0000000..21d1075 --- /dev/null +++ b/utils/protobuf_messages/c_protobuf_includes/status_message.pb.h @@ -0,0 +1,70 @@ +/* Automatically generated nanopb header */ +/* Generated by 0.4.1-dev */ + +#ifndef PB_STATUS_MESSAGE_PB_H_INCLUDED +#define PB_STATUS_MESSAGE_PB_H_INCLUDED +#include + +#if PB_PROTO_HEADER_VERSION != 40 +#error Regenerate this file with the current version of nanopb generator. +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* Enum definitions */ +typedef enum _VelocityCommand_Status { + VelocityCommand_Status_UNKNOWN = 0, + VelocityCommand_Status_WAITING_CONFIG = 1, + VelocityCommand_Status_READY = 2, + VelocityCommand_Status_RUNNING = 3 +} VelocityCommand_Status; + +/* Struct definitions */ +typedef struct _VelocityCommand { + float linear_velocity; + float angular_velocity; + uint64_t delta_millis; + VelocityCommand_Status status; +} VelocityCommand; + + +/* Helper constants for enums */ +#define _VelocityCommand_Status_MIN VelocityCommand_Status_UNKNOWN +#define _VelocityCommand_Status_MAX VelocityCommand_Status_RUNNING +#define _VelocityCommand_Status_ARRAYSIZE ((VelocityCommand_Status)(VelocityCommand_Status_RUNNING+1)) + + +/* Initializer values for message structs */ +#define VelocityCommand_init_default {0, 0, 0, _VelocityCommand_Status_MIN} +#define VelocityCommand_init_zero {0, 0, 0, _VelocityCommand_Status_MIN} + +/* Field tags (for use in manual encoding/decoding) */ +#define VelocityCommand_linear_velocity_tag 1 +#define VelocityCommand_angular_velocity_tag 2 +#define VelocityCommand_delta_millis_tag 3 +#define VelocityCommand_status_tag 4 + +/* Struct field encoding specification for nanopb */ +#define VelocityCommand_FIELDLIST(X, a) \ +X(a, STATIC, SINGULAR, FLOAT, linear_velocity, 1) \ +X(a, STATIC, SINGULAR, FLOAT, angular_velocity, 2) \ +X(a, STATIC, SINGULAR, FIXED64, delta_millis, 3) \ +X(a, STATIC, SINGULAR, UENUM, status, 4) +#define VelocityCommand_CALLBACK NULL +#define VelocityCommand_DEFAULT NULL + +extern const pb_msgdesc_t VelocityCommand_msg; + +/* Defines for backwards compatibility with code written before nanopb-0.4.0 */ +#define VelocityCommand_fields &VelocityCommand_msg + +/* Maximum encoded size of messages (where known) */ +#define VelocityCommand_size 21 + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif diff --git a/utils/protobuf_messages/c_protobuf_includes/velocity_command.pb.c b/utils/protobuf_messages/c_protobuf_includes/velocity_command.pb.c new file mode 100644 index 0000000..1f43d4f --- /dev/null +++ b/utils/protobuf_messages/c_protobuf_includes/velocity_command.pb.c @@ -0,0 +1,12 @@ +/* Automatically generated nanopb constant definitions */ +/* Generated by 0.4.1-dev */ + +#include "velocity_command.pb.h" +#if PB_PROTO_HEADER_VERSION != 40 +#error Regenerate this file with the current version of nanopb generator. +#endif + +PB_BIND(VelocityCommand, VelocityCommand, AUTO) + + + diff --git a/utils/protobuf_messages/c_protobuf_includes/velocity_command.pb.h b/utils/protobuf_messages/c_protobuf_includes/velocity_command.pb.h new file mode 100644 index 0000000..e64811f --- /dev/null +++ b/utils/protobuf_messages/c_protobuf_includes/velocity_command.pb.h @@ -0,0 +1,50 @@ +/* Automatically generated nanopb header */ +/* Generated by 0.4.1-dev */ + +#ifndef PB_VELOCITY_COMMAND_PB_H_INCLUDED +#define PB_VELOCITY_COMMAND_PB_H_INCLUDED +#include + +#if PB_PROTO_HEADER_VERSION != 40 +#error Regenerate this file with the current version of nanopb generator. +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* Struct definitions */ +typedef struct _VelocityCommand { + float linear_velocity; + float angular_velocity; +} VelocityCommand; + + +/* Initializer values for message structs */ +#define VelocityCommand_init_default {0, 0} +#define VelocityCommand_init_zero {0, 0} + +/* Field tags (for use in manual encoding/decoding) */ +#define VelocityCommand_linear_velocity_tag 1 +#define VelocityCommand_angular_velocity_tag 2 + +/* Struct field encoding specification for nanopb */ +#define VelocityCommand_FIELDLIST(X, a) \ +X(a, STATIC, SINGULAR, FLOAT, linear_velocity, 1) \ +X(a, STATIC, SINGULAR, FLOAT, angular_velocity, 2) +#define VelocityCommand_CALLBACK NULL +#define VelocityCommand_DEFAULT NULL + +extern const pb_msgdesc_t VelocityCommand_msg; + +/* Defines for backwards compatibility with code written before nanopb-0.4.0 */ +#define VelocityCommand_fields &VelocityCommand_msg + +/* Maximum encoded size of messages (where known) */ +#define VelocityCommand_size 10 + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif diff --git a/utils/protobuf_messages/messages_definitions/config_command.proto b/utils/protobuf_messages/messages_definitions/config_command.proto new file mode 100644 index 0000000..8a43c6e --- /dev/null +++ b/utils/protobuf_messages/messages_definitions/config_command.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +message ConfigCommand { + float left_kp = 1; + float left_ki = 2; + float left_kd = 3; + + float right_kp = 4; + float right_ki = 5; + float right_kd = 6; + + float cross_kp = 7; + float cross_ki = 8; + float cross_kd = 9; + + float baseline = 10; + + fixed32 ticks_per_revolution = 11; + float right_wheel_circumference = 12; + float left_wheel_circumference = 13; +} \ No newline at end of file diff --git a/utils/protobuf_messages/messages_definitions/status_message.proto b/utils/protobuf_messages/messages_definitions/status_message.proto new file mode 100644 index 0000000..964c253 --- /dev/null +++ b/utils/protobuf_messages/messages_definitions/status_message.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +message VelocityCommand { + float linear_velocity = 1; + float angular_velocity = 2; + fixed64 delta_millis = 3; + enum Status { + UNKNOWN = 0; + WAITING_CONFIG = 1; + READY = 2; + RUNNING = 3; + } + Status status = 4; +} \ No newline at end of file diff --git a/utils/protobuf_messages/messages_definitions/velocity_command.proto b/utils/protobuf_messages/messages_definitions/velocity_command.proto new file mode 100644 index 0000000..afd3f74 --- /dev/null +++ b/utils/protobuf_messages/messages_definitions/velocity_command.proto @@ -0,0 +1,6 @@ +syntax = "proto3"; + +message VelocityCommand { + float linear_velocity = 1; + float angular_velocity = 2; +} \ No newline at end of file diff --git a/utils/protobuf_messages/python_protobuf_includes/config_command_pb2.py b/utils/protobuf_messages/python_protobuf_includes/config_command_pb2.py new file mode 100644 index 0000000..58cca1c --- /dev/null +++ b/utils/protobuf_messages/python_protobuf_includes/config_command_pb2.py @@ -0,0 +1,153 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: config_command.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='config_command.proto', + package='', + syntax='proto3', + serialized_pb=_b('\n\x14\x63onfig_command.proto\"\xa3\x02\n\rConfigCommand\x12\x0f\n\x07left_kp\x18\x01 \x01(\x02\x12\x0f\n\x07left_ki\x18\x02 \x01(\x02\x12\x0f\n\x07left_kd\x18\x03 \x01(\x02\x12\x10\n\x08right_kp\x18\x04 \x01(\x02\x12\x10\n\x08right_ki\x18\x05 \x01(\x02\x12\x10\n\x08right_kd\x18\x06 \x01(\x02\x12\x10\n\x08\x63ross_kp\x18\x07 \x01(\x02\x12\x10\n\x08\x63ross_ki\x18\x08 \x01(\x02\x12\x10\n\x08\x63ross_kd\x18\t \x01(\x02\x12\x10\n\x08\x62\x61seline\x18\n \x01(\x02\x12\x1c\n\x14ticks_per_revolution\x18\x0b \x01(\x07\x12!\n\x19right_wheel_circumference\x18\x0c \x01(\x02\x12 \n\x18left_wheel_circumference\x18\r \x01(\x02\x62\x06proto3') +) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + +_CONFIGCOMMAND = _descriptor.Descriptor( + name='ConfigCommand', + full_name='ConfigCommand', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='left_kp', full_name='ConfigCommand.left_kp', index=0, + number=1, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='left_ki', full_name='ConfigCommand.left_ki', index=1, + number=2, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='left_kd', full_name='ConfigCommand.left_kd', index=2, + number=3, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='right_kp', full_name='ConfigCommand.right_kp', index=3, + number=4, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='right_ki', full_name='ConfigCommand.right_ki', index=4, + number=5, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='right_kd', full_name='ConfigCommand.right_kd', index=5, + number=6, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='cross_kp', full_name='ConfigCommand.cross_kp', index=6, + number=7, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='cross_ki', full_name='ConfigCommand.cross_ki', index=7, + number=8, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='cross_kd', full_name='ConfigCommand.cross_kd', index=8, + number=9, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='baseline', full_name='ConfigCommand.baseline', index=9, + number=10, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='ticks_per_revolution', full_name='ConfigCommand.ticks_per_revolution', index=10, + number=11, type=7, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='right_wheel_circumference', full_name='ConfigCommand.right_wheel_circumference', index=11, + number=12, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='left_wheel_circumference', full_name='ConfigCommand.left_wheel_circumference', index=12, + number=13, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=25, + serialized_end=316, +) + +DESCRIPTOR.message_types_by_name['ConfigCommand'] = _CONFIGCOMMAND + +ConfigCommand = _reflection.GeneratedProtocolMessageType('ConfigCommand', (_message.Message,), dict( + DESCRIPTOR = _CONFIGCOMMAND, + __module__ = 'config_command_pb2' + # @@protoc_insertion_point(class_scope:ConfigCommand) + )) +_sym_db.RegisterMessage(ConfigCommand) + + +# @@protoc_insertion_point(module_scope) diff --git a/utils/protobuf_messages/python_protobuf_includes/status_message_pb2.py b/utils/protobuf_messages/python_protobuf_includes/status_message_pb2.py new file mode 100644 index 0000000..0067066 --- /dev/null +++ b/utils/protobuf_messages/python_protobuf_includes/status_message_pb2.py @@ -0,0 +1,123 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: status_message.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='status_message.proto', + package='', + syntax='proto3', + serialized_pb=_b('\n\x14status_message.proto\"\xc6\x01\n\x0fVelocityCommand\x12\x17\n\x0flinear_velocity\x18\x01 \x01(\x02\x12\x18\n\x10\x61ngular_velocity\x18\x02 \x01(\x02\x12\x14\n\x0c\x64\x65lta_millis\x18\x03 \x01(\x06\x12\'\n\x06status\x18\x04 \x01(\x0e\x32\x17.VelocityCommand.Status\"A\n\x06Status\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x12\n\x0eWAITING_CONFIG\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x62\x06proto3') +) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + +_VELOCITYCOMMAND_STATUS = _descriptor.EnumDescriptor( + name='Status', + full_name='VelocityCommand.Status', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WAITING_CONFIG', index=1, number=1, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='READY', index=2, number=2, + options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RUNNING', index=3, number=3, + options=None, + type=None), + ], + containing_type=None, + options=None, + serialized_start=158, + serialized_end=223, +) +_sym_db.RegisterEnumDescriptor(_VELOCITYCOMMAND_STATUS) + + +_VELOCITYCOMMAND = _descriptor.Descriptor( + name='VelocityCommand', + full_name='VelocityCommand', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='linear_velocity', full_name='VelocityCommand.linear_velocity', index=0, + number=1, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='angular_velocity', full_name='VelocityCommand.angular_velocity', index=1, + number=2, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='delta_millis', full_name='VelocityCommand.delta_millis', index=2, + number=3, type=6, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='status', full_name='VelocityCommand.status', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _VELOCITYCOMMAND_STATUS, + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=25, + serialized_end=223, +) + +_VELOCITYCOMMAND.fields_by_name['status'].enum_type = _VELOCITYCOMMAND_STATUS +_VELOCITYCOMMAND_STATUS.containing_type = _VELOCITYCOMMAND +DESCRIPTOR.message_types_by_name['VelocityCommand'] = _VELOCITYCOMMAND + +VelocityCommand = _reflection.GeneratedProtocolMessageType('VelocityCommand', (_message.Message,), dict( + DESCRIPTOR = _VELOCITYCOMMAND, + __module__ = 'status_message_pb2' + # @@protoc_insertion_point(class_scope:VelocityCommand) + )) +_sym_db.RegisterMessage(VelocityCommand) + + +# @@protoc_insertion_point(module_scope) diff --git a/utils/protobuf_messages/python_protobuf_includes/velocity_command_pb2.py b/utils/protobuf_messages/python_protobuf_includes/velocity_command_pb2.py new file mode 100644 index 0000000..53fce6f --- /dev/null +++ b/utils/protobuf_messages/python_protobuf_includes/velocity_command_pb2.py @@ -0,0 +1,76 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: velocity_command.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf import descriptor_pb2 +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='velocity_command.proto', + package='', + syntax='proto3', + serialized_pb=_b('\n\x16velocity_command.proto\"D\n\x0fVelocityCommand\x12\x17\n\x0flinear_velocity\x18\x01 \x01(\x02\x12\x18\n\x10\x61ngular_velocity\x18\x02 \x01(\x02\x62\x06proto3') +) +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + + + +_VELOCITYCOMMAND = _descriptor.Descriptor( + name='VelocityCommand', + full_name='VelocityCommand', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='linear_velocity', full_name='VelocityCommand.linear_velocity', index=0, + number=1, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + _descriptor.FieldDescriptor( + name='angular_velocity', full_name='VelocityCommand.angular_velocity', index=1, + number=2, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + options=None), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=26, + serialized_end=94, +) + +DESCRIPTOR.message_types_by_name['VelocityCommand'] = _VELOCITYCOMMAND + +VelocityCommand = _reflection.GeneratedProtocolMessageType('VelocityCommand', (_message.Message,), dict( + DESCRIPTOR = _VELOCITYCOMMAND, + __module__ = 'velocity_command_pb2' + # @@protoc_insertion_point(class_scope:VelocityCommand) + )) +_sym_db.RegisterMessage(VelocityCommand) + + +# @@protoc_insertion_point(module_scope)