WO2021208812A1 - Parameter configuration method and apparatus, and electronic device and storage medium - Google Patents

Parameter configuration method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2021208812A1
WO2021208812A1 PCT/CN2021/086141 CN2021086141W WO2021208812A1 WO 2021208812 A1 WO2021208812 A1 WO 2021208812A1 CN 2021086141 W CN2021086141 W CN 2021086141W WO 2021208812 A1 WO2021208812 A1 WO 2021208812A1
Authority
WO
WIPO (PCT)
Prior art keywords
controller
control data
data
smart device
control
Prior art date
Application number
PCT/CN2021/086141
Other languages
French (fr)
Chinese (zh)
Inventor
朱欣
曹晓旭
刘春晓
石建萍
成慧
Original Assignee
上海商汤临港智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海商汤临港智能科技有限公司 filed Critical 上海商汤临港智能科技有限公司
Priority to JP2021577135A priority Critical patent/JP2022538275A/en
Publication of WO2021208812A1 publication Critical patent/WO2021208812A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to a parameter configuration method and device, electronic equipment and storage medium.
  • the present disclosure provides a technical solution for parameter configuration.
  • a parameter configuration method the method is applied to a smart device, the smart device includes a plurality of controllers, the plurality of controllers include at least a first controller and a second controller , The method includes: acquiring control data output by each of the plurality of controllers, the control data output by the first controller includes first control data, and the control data output by the second controller includes second control data ; According to the first control data and the second control data, configure the parameters of the second controller.
  • the multiple controllers include a first controller and a second controller
  • the control data output by the first controller includes the first control data
  • the control data output by the second controller includes second control data
  • the parameters of the second controller are configured according to the first control data and the second control data, thereby using the first controller as With reference to the controller, the second controller is used as the adjusted controller to find reliable parameters for the second controller accurately, efficiently, and at low cost, so that when the second controller is further adjusted in the subsequent parameters, the intelligence can be reduced.
  • the risk of loss of control of equipment reduces the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller.
  • the obtaining the control data output by each of the multiple controllers includes: obtaining first reference trajectory data and first state data of the smart device in the first mode; The multiple controllers generate respective control data according to the first reference trajectory data and the first state data.
  • the controller generates the control data based on the first reference trajectory data and the first state data, and configures the first control data and second control data based on the first control data and second control data thus generated.
  • the parameters of the second controller can make the configured parameters of the second controller more suitable for real scenes.
  • the method further includes: controlling the smart device in the first mode to drive according to the first control data.
  • the second controller can be configured in the real vehicle, thereby reducing the simulator and actual The cost of switching and debugging the controller back and forth on the car, and can make the second controller after parameter configuration more suitable for real scenes.
  • the method further includes: acquiring second reference trajectory data and second state data of the smart device in the first mode; using the second controller, according to the second Generate third control data with reference to the trajectory data and the second state data;
  • the smart device in the first mode is controlled to travel.
  • the second controller can be adjusted in the real vehicle, thereby reducing the simulator and actual The cost of switching and debugging the controller back and forth on the car, and can make the second controller after parameter adjustment more suitable for real scenes.
  • the method further includes: obtaining actual trajectory data generated by the smart device when driving in the first mode; adjusting according to the second reference trajectory data and the actual trajectory data Parameters of the second controller.
  • the parameters of the second controller are adjusted according to the difference between the actual trajectory data and the second reference trajectory data, thereby enabling the second controller to more accurately adapt to the intelligent Equipment to achieve more precise control and a safer and more comfortable driving experience.
  • the first controller is a controller that does not include a vehicle dynamics model
  • the second controller is a controller that includes a vehicle dynamics model
  • the controller that does not contain the vehicle dynamics model can be used as the reference controller, and the controller that contains the vehicle dynamics model can be used as the adjusted controller.
  • the controller finds reliable parameters, so that when further parameter adjustments are made to the controller containing the vehicle dynamics model, the risk of loss of control of the smart device (such as a vehicle) can be reduced, and the parameters of the controller containing the vehicle dynamics model can be reduced.
  • the safety risk of potential traffic accidents caused by improper configuration can facilitate on-site commissioning engineers to carry out large-scale performance testing of real vehicle controllers.
  • the smart device includes a smart mobile device
  • the control data includes at least one of steering wheel steering data, accelerator data, brake data, and indicator light data.
  • the controlling the driving of the smart device in the first mode according to the third control data includes: responding to the difference between the first control data and the second control data According to the third control data, the smart device in the first mode is controlled to drive; wherein the preset condition includes the first target control data in the first control data and the The difference between the second target control data in the second control data belongs to the threshold range, and the first target control data and the second target control data are of the same type.
  • the smart device is controlled to drive according to the third control data output by the second controller when the difference between the first control data and the second control data satisfies a preset condition Therefore, it is possible to make the adjusted parameters of the second controller more applicable under the premise of reducing the risk of loss of control of smart devices (such as vehicles) and reducing the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller. In the real scene.
  • a parameter configuration device the device is applied to a smart device, the smart device includes a plurality of controllers, the plurality of controllers include a first controller and a second controller, The device includes: a first acquisition module configured to acquire control data output by each of the multiple controllers, the control data output by the first controller includes first control data, and the control output by the second controller The data includes second control data;
  • the configuration module is used to configure the parameters of the second controller according to the first control data and the second control data.
  • the first acquisition module is configured to: acquire first reference trajectory data and first state data of the smart device in the first mode; through the multiple controllers, according to all The first reference trajectory data and the first state data are used to generate the respective control data.
  • the device further includes: a first control module, configured to control the smart device in the first mode to drive according to the first control data.
  • the device further includes: a second acquisition module, configured to acquire second reference trajectory data, and second state data of the smart device in the first mode; and a generating module, configured to pass The second controller generates third control data according to the second reference trajectory data and the second status data; the second control module is configured to control the first mode according to the third control data
  • the smart device travels.
  • the apparatus further includes: a third acquisition module, configured to acquire actual trajectory data generated by the smart device when driving in the first mode; and an adjustment module, configured according to the first mode Second, adjust the parameters of the second controller by referring to the trajectory data and the actual trajectory data.
  • the first controller is a controller that does not include a vehicle dynamics model
  • the second controller is a controller that includes a vehicle dynamics model
  • the smart device includes a smart mobile device
  • the control data includes at least one of steering wheel steering data, accelerator data, brake data, and indicator light data.
  • the second control module is configured to: in response to the difference between the first control data and the second control data satisfying a preset condition, according to the third control data, Control the driving of the smart device in the first mode; wherein the preset condition includes the difference between the first target control data in the first control data and the second target control data in the second control data Belonging to a threshold value range, the first target control data and the second target control data are of the same type.
  • an electronic device including: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to call the memory to store The executable instructions to perform the above method.
  • a computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions implement the above-mentioned method when executed by a processor.
  • a computer program product for storing computer-readable instructions, which when executed, cause a computer to execute the foregoing method.
  • the control data output by each of the multiple controllers of the smart device is acquired, wherein the multiple controllers include a first controller and a second controller, and the control output by the first controller is
  • the data includes first control data
  • the control data output by the second controller includes second control data
  • the parameters of the second controller are configured according to the first control data and the second control data. Therefore, the first controller is used as the reference controller, and the second controller is used as the adjusted controller to find reliable parameters for the second controller accurately, efficiently, and at low cost.
  • the configuration of the second controller is implemented based on the first control data actually output by the first controller, the first control data can usually be used to control the smart device before the second controller completes the configuration.
  • the parameters of the second controller are more adapted to the current application scenario of the smart device.
  • the risk of loss of control of the smart device for example, a vehicle
  • the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller can be reduced.
  • Fig. 1 shows a flowchart of a parameter configuration method provided by an embodiment of the present disclosure.
  • Fig. 2 shows a schematic diagram of a PID-based controller (PID controller) in an embodiment of the present disclosure.
  • Fig. 3 shows a schematic diagram of core components of a PID-based controller in an embodiment of the present disclosure.
  • FIG. 4 shows a schematic diagram of the control effect after adjusting the three parameters of the PID-based controller in the embodiment of the present disclosure.
  • FIG. 5 shows a schematic diagram of an MPC-based controller (MPC controller) in an embodiment of the present disclosure.
  • Fig. 6 shows a schematic diagram of core components of an MPC-based controller in an embodiment of the present disclosure.
  • FIG. 7 shows a schematic diagram of a vehicle dynamics model in an MPC-based controller of an embodiment of the present disclosure.
  • FIGS 8A-8C show schematic diagrams of objective function optimization of core components in an MPC-based controller in an embodiment of the present disclosure.
  • Fig. 9 shows a schematic diagram of an optimization process of an MPC-based controller in an embodiment of the present disclosure.
  • FIG. 10 shows a schematic diagram of the overall architecture of an automatic driving system provided by an embodiment of the present disclosure.
  • FIG. 11 shows a schematic diagram of using a reference controller to guide the adjusted controller to perform parameter configuration in an embodiment of the present disclosure.
  • FIG. 12 shows a schematic diagram of a parameter configuration process of a controller provided by an embodiment of the present disclosure.
  • FIG. 13a to 13d show schematic diagrams of control results of the MPC-based controller in an embodiment of the present disclosure.
  • FIG. 14 shows a schematic diagram of the lateral trajectory error, the orientation error, and the longitudinal velocity error over time under the control of the MPC-based controller in the embodiment of the present disclosure.
  • FIG. 15 shows a schematic diagram of the lateral trajectory error, the heading error, and the longitudinal speed error changing with time under the control of the MPC-based controller after parameter adjustment of the MPC-based controller in an embodiment of the present disclosure.
  • FIG. 16 shows a block diagram of a parameter configuration device provided by an embodiment of the present disclosure.
  • FIG. 17 shows a block diagram of an electronic device 800 provided by an embodiment of the present disclosure.
  • FIG. 18 shows a block diagram of an electronic device 1900 provided by an embodiment of the present disclosure.
  • the control data output by the controller of the smart device is acquired, wherein the controller includes a first controller and a second controller, and the control data output by the first controller includes a first control Data, the control data output by the second controller includes second control data, and the parameters of the second controller are configured according to the first control data and the second control data. Therefore, the first controller is used as the reference controller, and the second controller is used as the adjusted controller to find reliable parameters for the second controller accurately, efficiently, and at low cost. Moreover, because the configuration of the second controller is implemented based on the first control data actually output by the first controller, the first control data can usually be used to control the smart device before the second controller completes the configuration.
  • the parameters of the second controller are more adapted to the current application scenario of the smart device.
  • the risk of loss of control of the smart device for example, a vehicle
  • the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller can be reduced.
  • the smart device may also include other controllers besides the first controller and the second controller.
  • the types of controllers included in the smart device and the number of controllers of various types Etc. are not limited.
  • a smart device including a first controller and a second controller is taken as an example to illustrate the technical solutions provided by the embodiments of the present disclosure.
  • Fig. 1 shows a flowchart of a parameter configuration method provided by an embodiment of the present disclosure.
  • the parameter configuration method can be applied to a parameter configuration device.
  • the parameter configuration method can be executed by a terminal device or a server or other processing device.
  • the terminal device may be a vehicle-mounted device, a user equipment (UE), a mobile device, a user terminal, a terminal, a personal digital assistant (PDA), a handheld device, a computing device, or a wearable device.
  • the parameter configuration method may be implemented by a processor invoking computer-readable instructions stored in a memory.
  • the parameter configuration method is applied to a smart device, the smart device includes a plurality of controllers, and the plurality of controllers include at least a first controller and a second controller.
  • the smart device may include a smart mobile device, such as a vehicle or a mobile robot. The following uses a smart device as a vehicle as an example to describe the embodiments of the present disclosure. As shown in Fig. 1, the parameter configuration method includes step S11 to step S12.
  • step S11 the control data output by each of the plurality of controllers is acquired, the control data output by the first controller includes first control data, and the control data output by the second controller includes second control data.
  • the controller in the embodiment of the present disclosure may be a controller used for trajectory tracking in automatic driving, or may be a controller with other functions, which is not limited in the embodiment of the present disclosure.
  • the control data output by the controller (the first control data output by the first controller and/or the second control data output by the second controller) can be used to control the smart device.
  • the first controller and the second controller can obtain the first control data and the second control data respectively according to the same input data.
  • the first control data output by the first controller and the second control data output by the second controller can be acquired multiple times. For example, for any one of the multiple times, the first control data output by the first controller and the second control data output by the second controller can be simultaneously acquired to compare the two.
  • first control data and the second control data in sequence according to a certain sequence, or to obtain the second control data and the first control data in sequence. It should be noted that in the process of acquiring the control data, the sequence of the first control data and the second control data is not limited.
  • step S12 the parameters of the second controller are configured according to the first control data and the second control data.
  • the parameters of the second controller may be configured according to the difference between the first control data and the second control data.
  • the parameters of the second controller may be initialized and/or adjusted according to the difference between the first control data and the second control data.
  • initializing the parameters of the second controller refers to initial configuration of the parameters of the second controller; adjusting the parameters of the second controller refers to adjusting the parameters of the second controller that has been initialized.
  • the parameter of the second controller that is initialized may be the default second controller parameter, specifically it may be the parameter of the second controller configured in combination with historical experience values, or the second controller
  • the factory parameters configured before leaving the factory are not limited here.
  • the first control data can usually be used to control the intelligent control data before the second controller completes the configuration.
  • the parameters of the second controller can be more adapted to the current application scenario of the smart device.
  • the risk of loss of control of the smart device for example, a vehicle
  • the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller can be reduced.
  • the obtaining the control data output by each of the multiple controllers includes: obtaining first reference trajectory data and first state data of the smart device in the first mode; The multiple controllers generate respective control data according to the first reference trajectory data and the first state data.
  • the first reference trajectory data may represent reference trajectory data acquired during the process of configuring the parameters of the second controller according to the first control data and the second control data.
  • the first reference trajectory data may include the reference trajectory and target speeds of multiple passing points on the reference trajectory, and the first reference trajectory data may be output by the trajectory planning module in the automatic driving system.
  • the first state data may represent the state data of the smart device acquired during the process of configuring the parameters of the second controller according to the first control data and the second control data.
  • the first state data may be acquired in real time.
  • the first state data may include one or a combination of multiple items of the position, speed, and acceleration of the smart device.
  • the smart device has at least a first mode.
  • the first mode may be a fully automatic driving mode or a semi-automatic driving mode.
  • the smart device may also have a second mode, for example, the second mode may be a fully manual driving mode.
  • the smart device may also have a third mode.
  • the third mode may be a semi-automatic driving mode, or if the first mode is a semi-automatic driving mode, the third mode may be Fully automatic driving mode.
  • each mode may also include sub-modes to more finely divide each mode.
  • the mode type of the smart device and the specific parameters of the sub-modes are not limited herein.
  • the first controller may generate first control data according to the first reference trajectory data and the first state data, where the first control data represents the data generated by the first controller and the The first reference trajectory data and the control data corresponding to the first state data.
  • the second controller may generate second control data according to the first reference trajectory data and the first state data, where the second control data represents the data generated by the second controller and the first reference trajectory data Control data corresponding to the first state data.
  • the second control data may refer to the control data generated by the second controller in the process of configuring the parameters of the second controller according to the first control data and the second control data.
  • the controller generates the control data based on the first reference trajectory data and the first state data, and configures the first control data and second control data based on the first control data and second control data thus generated.
  • the parameters of the second controller can make the configured parameters of the second controller more suitable for real scenes.
  • the method further includes: controlling the smart device in the first mode to drive according to the first control data.
  • the first controller may be set as the current controller of the smart device to control the smart device in the first mode to drive according to the first control data.
  • the first controller can be set as the current controller of the smart device through a switcher of the smart device.
  • the second controller by controlling the driving of the smart device in the first mode according to the first control data, the second controller can be parameterized in the real vehicle, thereby reducing the number of operating conditions in the simulator (such as The cost of switching and debugging the controller back and forth between the equipment that simulates the operation of the vehicle and the real vehicle, and can make the second controller after parameter configuration more suitable for real scenes.
  • the simulator such as The cost of switching and debugging the controller back and forth between the equipment that simulates the operation of the vehicle and the real vehicle, and can make the second controller after parameter configuration more suitable for real scenes.
  • the method further includes: acquiring second reference trajectory data, and second state data of the smart device in the first mode ; Through the second controller, according to the second reference trajectory data and the second state data, generate third control data; according to the third control data, control the smart device in the first mode to drive .
  • the second reference trajectory data may represent reference trajectory data acquired during the process of controlling the smart device to travel according to the third control data.
  • the second reference trajectory data may include the reference trajectory and the target speeds of multiple passing points on the reference trajectory, and the second reference trajectory data may be output by the trajectory planning module in the automatic driving system.
  • the first reference trajectory data may include the content in the second reference trajectory data, that is, the second reference trajectory data may be the reference trajectory data of the later section of the first reference trajectory data.
  • the smart device drives for a period of time according to the first reference trajectory data. After time, the second reference trajectory data is obtained. Or, in the case where the smart device changes the driving route, etc., the second reference trajectory data may be different from the first reference trajectory data.
  • the second state data may represent state data of the smart device acquired during the process of controlling the smart device to drive according to the third control data.
  • the second state data may be acquired in real time.
  • the second state data may include one or a combination of multiple items of the position, speed, and acceleration of the smart device.
  • the third control data may represent control data generated by the second controller and corresponding to the second reference trajectory data and the second state data.
  • the third control data may refer to the control data generated by the second controller in the process of controlling the smart device to travel according to the third control data.
  • the second controller can be adjusted in the real vehicle, thereby reducing the simulator and actual The cost of switching and debugging the controller back and forth on the car, and can make the second controller after parameter adjustment more suitable for real scenes.
  • the method further includes: acquiring that the smart device is in the first mode Driving, actual trajectory data generated; adjusting the parameters of the second controller according to the second reference trajectory data and the actual trajectory data.
  • the actual trajectory data may include the actual trajectory and the speed of multiple points on the actual trajectory.
  • the heading error, lateral trajectory error and longitudinal velocity error between the two can be determined, so that the first can be adjusted according to the heading error, lateral trajectory error and longitudinal velocity error between the two. 2. Parameters of the controller.
  • the parameters of the second controller are adjusted according to the difference between the actual trajectory data and the second reference trajectory data, thereby enabling the second controller to more accurately adapt to the intelligent Equipment to achieve more precise control and a safer and more comfortable driving experience.
  • the smart device includes a smart mobile device
  • the control data includes at least one of steering wheel steering data, accelerator data, brake data, and indicator light data.
  • the steering wheel steering data may include one or a combination of multiple of the steering wheel rotation angle, the number of rotations, and the rotation direction.
  • the throttle data may include one or a combination of multiple of throttle size, throttle speed, etc., wherein the throttle size can be expressed as a percentage of the maximum throttle amount.
  • the braking data may include one or a combination of multiple of braking force, braking speed, etc., wherein the braking force can be expressed as a percentage of the maximum braking force.
  • the indicator light data may include one or a combination of multiple items, such as indicator type and duration. Based on this implementation method, precise automatic control of smart mobile devices can be achieved.
  • the controlling the driving of the smart device in the first mode according to the third control data includes: responding to the difference between the first control data and the second control data According to the third control data, the smart device in the first mode is controlled to drive; wherein the preset condition includes the first target control data in the first control data and the The difference between the second target control data in the second control data belongs to the threshold range, and the first target control data and the second target control data are of the same type.
  • the first target control data may include one or more types of data in the first control data
  • the second target control data may also include one or more types of data in the second control data.
  • the first target control data and the second target control data include the same data type.
  • the first target control data includes steering wheel steering data, throttle data, and brake data in the first control data
  • the second target control data includes steering wheel steering data, throttle data, and brake data in the second control data
  • another example is the first control data.
  • One target control data includes steering wheel steering data, throttle data, brake data, and indicator data in the first control data
  • the second target control data includes steering wheel steering data, throttle data, brake data, and indicator data in the second control data.
  • the threshold range may be a parameter as the threshold, if the difference between the first target control data in the first control data and the second target control data in the second control data is less than or equal to The threshold value satisfies the preset condition; or, the threshold value range may use two threshold values as upper and lower limits, if the first target control data in the first control data is between the first target control data in the second control data and the second target control data in the second control data. If the difference of is within the threshold range, the preset condition is met.
  • the first target control data includes at least one of steering wheel steering data, throttle data, brake data, and indicator light data in the first control data
  • the second target control data includes at least one of the second control data. At least one of the steering wheel steering data, throttle data, brake data, and indicator light data.
  • the preset condition includes at least one of the following: the difference between the steering wheel steering data in the first control data and the steering wheel steering data in the second control data is less than or equal to a first threshold, the first control data The difference between the throttle data in the second control data and the throttle data in the second control data is less than or equal to the second threshold, and the difference between the brake data in the first control data and the brake data in the second control data The difference between is less than or equal to the third threshold, and the difference between the indicator data in the first control data and the indicator data in the second control data is less than or equal to the fourth threshold.
  • the second controller may be set as the current controller of the smart device to control the smart device in the first mode to drive according to the third control data.
  • the second controller can be set as the current controller of the smart device through a switch.
  • the indicator type, duration, etc. in the indicator data can be quantified, so that the difference between the indicator data in the first control data and the indicator data in the second control data can be obtained. Difference.
  • the smart device is controlled to drive according to the third control data output by the second controller when the difference between the first control data and the second control data satisfies a preset condition Therefore, it is possible to make the adjusted parameters of the second controller more applicable under the premise of reducing the risk of loss of control of smart devices (such as vehicles) and reducing the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller. In the real scene.
  • the first controller is a controller that does not include a vehicle dynamics model
  • the second controller is a controller that includes a vehicle dynamics model
  • the first controller may be a controller based on PI (P: Proportional; I: Integral) or a controller based on PID (P: Proportional; I: Integral; D: Derivative).
  • the second controller may be a controller based on MPC (Model Predictive Control, model predictive control) or a controller based on LQR (Linear Quadratic Regulator, linear quadratic regulator).
  • the second controller is based on a vehicle dynamics model, that is, a dynamic bicycle model (Dynamic Bicycle Model).
  • vehicle dynamics model can dynamically model the vehicle motion behavior, through a series of reasonable assumptions (for example: small angle assumptions, the model is based on error (error) modeling, which is more conducive to model linearization than directly based on the reference angle and reference position. ), the nonlinear model is simplified to a linear model, which is used to predict the behavior or trajectory of the vehicle in a limited time in the future.
  • the controller that does not contain the vehicle dynamics model can be used as the reference controller, and the controller that contains the vehicle dynamics model can be used as the adjusted controller.
  • the controller finds reliable parameters, so that when further parameter adjustments are made to the controller containing the vehicle dynamics model, the risk of loss of control of the smart device (such as a vehicle) can be reduced, and the parameters of the controller containing the vehicle dynamics model can be reduced.
  • the safety risk of potential traffic accidents caused by improper configuration can facilitate on-site commissioning engineers to carry out large-scale performance testing of real vehicle controllers.
  • Fig. 2 shows a schematic diagram of a PID-based controller (PID controller) in an embodiment of the present disclosure.
  • the PID-based controller can realize the longitudinal speed closed-loop control and the lateral position closed-loop control, so as to realize the automatic driving of the unmanned vehicle.
  • the PID-based controller also includes feedforward control.
  • the PID-based controller may output first control data based on the error between the first reference trajectory data output by the trajectory planning module and the first state data of the car to control the driving of the car.
  • Fig. 3 shows a schematic diagram of core components of a PID-based controller in an embodiment of the present disclosure.
  • the three parameters are proportional term K p, K i of the integral term and differential term K d.
  • K p makes the automatic driving system respond immediately
  • K i eliminates the steady-state error in the automatic driving system.
  • FIG. 4 shows a schematic diagram of the control effect after adjusting the three parameters of the PID-based controller in the embodiment of the present disclosure.
  • the straight line 41 in FIG. 4 is the reference trajectory
  • 42 is the actual trajectory under no control
  • 43 is the actual trajectory under the control of the PID-based controller. Since the PID-based controller only needs to adjust the two parameters of K p and K i to complete the automatic control of the unmanned vehicle, and is easy to debug, the embodiment of the present disclosure can use the PI-based controller as a reference control
  • the device is used to guide the second controller including the vehicle dynamics model to configure the parameters.
  • appropriate parameters can be selected for the PI-based controller through manual parameter adjustment, or the automatic parameter adjustment method in the related art can be used to select appropriate parameters for the PI-based controller.
  • FIG. 5 shows a schematic diagram of an MPC-based controller (MPC controller) in an embodiment of the present disclosure.
  • the MPC-based controller can realize the longitudinal speed closed-loop control and the lateral position closed-loop control, so as to realize the automatic driving of the unmanned vehicle.
  • the MPC-based controller also includes feedforward control.
  • the MPC-based controller may output second control data based on the error between the first reference trajectory data output by the trajectory planning module and the first state data of the vehicle, or may be based on the trajectory planning The error between the second reference trajectory data output by the module and the second state data of the car, and the third control data is output to control the car.
  • Fig. 6 shows a schematic diagram of core components of an MPC-based controller in an embodiment of the present disclosure.
  • the MPC-based controller includes two core components: a vehicle dynamics model and an optimizer.
  • the vehicle dynamics model is used to predict the possible future trajectory of the vehicle; the optimizer solves an optimization problem, finds the trajectory that minimizes the objective function J from multiple candidate predicted trajectories, and obtains the second control data or the third control data , So as to ensure that the MPC-based controller can drive the vehicle close to the first reference trajectory data or the second reference trajectory data as much as possible.
  • FIG. 7 shows a schematic diagram of a vehicle dynamics model in an MPC-based controller of an embodiment of the present disclosure.
  • 71 represents a car, with the front of the car on the top and the rear of the car on the bottom.
  • the steering error e1 can be obtained; according to the current position of the vehicle (for example, the geometric center point of the vehicle) and The minimum distance between the tangents of the reference points can be used to obtain the lateral trajectory error e2.
  • the lateral trajectory error e2 can be equal to the minimum distance between the current position of the car and the tangent of the reference point; according to the first reference trajectory data or the second reference
  • the difference between the reference speed in the trajectory data and the actual speed of the vehicle, the longitudinal speed (Lon Velocity) error e3 can be obtained.
  • Represents the differential of e1 Represents the second derivative of e1, e2 and e3 are similar.
  • the MPC-based controller in the embodiments of the present disclosure is based on the vehicle dynamics model, which can dynamically model the vehicle motion behavior. Through a series of reasonable assumptions, the nonlinear model is simplified to the linear model shown in FIG. Predict the behavior or trajectory of the vehicle within a limited time in the future.
  • ST steerer
  • TH throttle
  • throttle data such as percentage of maximum throttle
  • BR (brake) represents braking data (such as maximum braking force) %).
  • FIG. 8C shows a schematic diagram of the objective function optimization of the core components in the MPC-based controller according to an embodiment of the present disclosure.
  • ⁇ ST represents the amount of change in ST (steering wheel steering data) between two adjacent moments
  • ⁇ TH represents the amount of change in TH (throttle data) between two adjacent moments
  • ⁇ BR represents the amount of change between two adjacent times.
  • the amount of change in BR (brake data) between times.
  • Figure 8C shows the objective function
  • FIG. 8A shows a schematic diagram of the position of the predicted trajectory of the vehicle in the lane, and FIG. 8A also shows the position and the predicted range of the center line of the lane.
  • the predicted trajectory is a trajectory generated by executing a predicted control action sequence (the control action data may include at least one of steering wheel steering data, accelerator data, brake data, and indicator light data).
  • Fig. 8B shows a schematic diagram of the lateral trajectory error cte t+1 to cte t+7 (ie, e2) from time t+1 to time t+7, where the abscissa is time and the ordinate is distance.
  • the orientation error e1 from time t+1 to t+7 can be expressed as he t+1 to he t+7
  • the longitudinal velocity error e3 from time t+1 to t+7 can be expressed as ve t +1 to ve t+7 .
  • Fig. 9 shows a schematic diagram of an optimization process of an MPC-based controller in an embodiment of the present disclosure.
  • the goal of the parameter configuration of the MPC-based controller is to minimize J.
  • the MPC-based controller can predict and evaluate the potential control action sequence (calculate the objective function J) according to the method shown in Figure 9 to obtain the optimal control action sequence As the second control data or the third control data.
  • the amount of parameters to be adjusted for a controller that includes a vehicle dynamics model is larger than that of a controller that does not include a vehicle dynamics model.
  • the PI-based controller has two parameters to be adjusted, namely the proportional term (K p ) and the integral term (K i ).
  • K p proportional term
  • K i integral term
  • model-free PI controllers are relatively simple and easy to debug, the control is not precise enough, while controllers containing vehicle dynamics models such as MPC-based controllers model vehicle dynamics behavior and can more accurately describe the vehicle's future motion trajectory .
  • a controller (a second controller) containing a vehicle dynamics model may be used to model the behavior of the unmanned vehicle, thereby obtaining a more accurate automatic control effect.
  • the controller containing the vehicle dynamics model usually contains multiple parameters.
  • the MPC-based controller contains 8 parameters to be adjusted, of which 6 parameters are used to adjust the system state (heading error, lateral trajectory error, longitudinal Speed error), 2 parameters to be adjusted are used to adjust the system input (steering wheel steering angle, throttle amount or brake amount).
  • the debugging difficulty of 8 parameters is often higher than that of 2 parameters. Therefore, the method provided in this application uses the PID controller as the reference controller, and configures the MPC controller according to the first control data and the second control data. Parameters to be adjusted. Before the parameters to be adjusted of the MPC controller are adjusted, the PID controller is still used as the current controller to control the driving of the unmanned vehicle, which can reduce the potential traffic accidents that may be caused by using the unadjusted MPC controller.
  • FIG. 10 shows a schematic diagram of the overall architecture of an automatic driving system provided by an embodiment of the present disclosure.
  • the trajectory planning module outputs reference trajectory data (such as the first reference trajectory data, the second reference trajectory data), and reads the state data of the car (such as the first state data, the first state data, and the first state data) through the bus (read bus).
  • Two status data the controller (the first controller and/or the second controller) outputs the control data according to the difference between the reference trajectory data and the state data of the car (the first controller outputs the first control data, the second The controller outputs the second control data and/or the third control data), and writes the control data into the car through the bus (write bus), so as to realize the closed-loop control of the car and drive the car to travel.
  • FIG. 11 shows a schematic diagram of using a reference controller to guide the adjusted controller to perform parameter configuration in an embodiment of the present disclosure.
  • the reference controller can be a PID-based controller, etc.
  • the adjusted controller can be an LQR-based controller or an MPC-based controller, etc.
  • the reference controller can guide the adjusted controller to configure parameters (such as Q vector, R vector, etc.).
  • r1 can be adjusted according to the difference between the steering wheel steering data in the first control data and the second control data; r2 can be adjusted according to the difference between the throttle data or the brake data in the first control data and the second control data; according to the heading error e1, adjust q1 and q2; adjust q3 and q4 according to lateral trajectory error e2; adjust q5 and q6 according to longitudinal velocity error e3.
  • FIG. 12 shows a schematic diagram of a parameter configuration process of a controller provided by an embodiment of the present disclosure.
  • the first controller controllers that do not include vehicle dynamics models, such as PI-based controllers
  • the second controller controllers that include vehicle dynamics models, such as LQR-based controllers or MPC-based controllers
  • the switch select the first controller as the current controller of the unmanned vehicle, that is, send the first control data output by the first controller to the vehicle actuator to drive the unmanned vehicle to drive.
  • the first controller can complete the accurate control of the unmanned vehicle in straight lines and curves by adjusting the values of the proportional term and the integral term, that is, The control data output by the first controller can drive the unmanned vehicle to correctly track the reference trajectory.
  • the first controller is successfully adapted to the automatic driving system (that is, the unmanned vehicle can correctly track the reference trajectory under the control of the first controller)
  • the first control data output by it can be regarded as the reference control data, and the reference control
  • the data can enable unmanned vehicles to complete routine autonomous driving tasks more accurately.
  • the comparator can be turned on, and the comparator can be used to compare the first control data output by the first controller and the second control data output by the second controller. According to the difference between the first control data and the second control data, configure the parameters of the second controller so that the second control data output by the second controller after the configuration is the same as the first control data output by the first controller. The difference between the control data is minimal. If the difference between the first control data and the second control data satisfies the preset condition, it can be determined that the second controller has obtained more reliable parameters.
  • the second control data output by the MPC-based controller It is basically the same as the first control data output by the PI-based controller, that is, the MPC-based controller with this parameter can be used to achieve the same trajectory tracking effect as the PI-based controller.
  • FIG. 13a to 13d show schematic diagrams of control results of the MPC-based controller in an embodiment of the present disclosure.
  • FIG. 13a shows a schematic diagram of the reference trajectory and the actual trajectory of the unmanned vehicle under the control of the MPC-based controller.
  • the UTM (Universal Transverse Mercator grid system) coordinate system is used.
  • Fig. 13b shows a schematic diagram of the reference longitudinal speed and the actual longitudinal speed of the unmanned vehicle with respect to the distance under the control of the MPC-based controller.
  • Fig. 13c shows a schematic diagram of the reference heading of the vehicle head and the actual heading of the unmanned vehicle under the control of the MPC-based controller.
  • Fig. 13a shows a schematic diagram of the reference trajectory of the vehicle head and the actual heading of the unmanned vehicle under the control of the MPC-based controller.
  • FIG. 13d shows a schematic diagram of the reference steering wheel steering angle and the actual steering wheel steering angle of the unmanned vehicle under the control of the MPC-based controller.
  • the distance in FIG. 13b to FIG. 13d may represent the distance relative to the starting point of the automatic driving task.
  • FIG. 14 shows a schematic diagram of the cross track error (CTE, Cross Track Error), heading error, and longitudinal speed error over time under the control of an MPC-based controller in an embodiment of the present disclosure.
  • the abscissa is time and the unit is seconds.
  • the lateral trajectory error is large, that is, the lateral control of the MPC-based controller is not accurate enough, which will cause the unmanned vehicle to deviate from the center line of the lane.
  • further parameter adjustments can be made to the MPC-based controller.
  • the second controller can be used as the current controller of the unmanned vehicle through a switch, and the second controller The unmanned vehicle is controlled, and the parameters of the second controller are further adjusted according to the second reference trajectory data and the actual trajectory data, so that the second controller is more accurately adapted to the automatic driving system.
  • FIG. 15 shows a schematic diagram of the lateral trajectory error, the heading error, and the longitudinal speed error changing with time under the control of the MPC-based controller after parameter adjustment of the MPC-based controller in an embodiment of the present disclosure.
  • the lateral trajectory error is reduced by about 50% from before the parameter adjustment.
  • the actual steering angle of the steering wheel output by the MPC-based controller fluctuates more frequently than the reference steering angle of the steering wheel, and the direction steering is not smooth, which will bring an uncomfortable driving experience.
  • the parameters of the MPC-based controller can be further adjusted to make the change of the steering angle of the steering wheel in the output control data more smooth.
  • an automatic transmission car can be used as the experimental platform.
  • the average speed is 20km/h.
  • the test path is to go straight first, then turn left and go straight, then turn right and go straight.
  • the embodiments of the present disclosure may be applied to application scenarios such as automatic driving systems, driving assistance systems, and automatic parking systems, which are not limited in the embodiments of the present disclosure.
  • the control data output by each of the multiple controllers of the smart device is acquired, wherein the multiple controllers include a first controller and a second controller, and the control output by the first controller is
  • the data includes first control data
  • the control data output by the second controller includes second control data
  • the parameters of the second controller are configured according to the first control data and the second control data
  • the parameters of the second controller are configured by This uses the first controller as the reference controller and the second controller as the adjusted controller to find reliable parameters for the second controller accurately, efficiently, and at low cost, so that the second controller will be further performed in the follow-up.
  • the parameters are adjusted, the risk of loss of control of smart devices (for example, vehicles) can be reduced, and the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller can be reduced.
  • the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possibility.
  • the inner logic is determined.
  • the present disclosure also provides parameter configuration devices, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any parameter configuration method provided in the present disclosure.
  • parameter configuration devices electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any parameter configuration method provided in the present disclosure.
  • FIG. 16 shows a block diagram of a parameter configuration device provided by an embodiment of the present disclosure.
  • the device is applied to a smart device, the smart device includes a plurality of controllers, and the plurality of controllers includes a first controller and a second controller.
  • the parameter configuration device includes: a first obtaining module 21, configured to obtain control data output by each of the multiple controllers, and the control data output by the first controller includes first control data, The control data output by the second controller includes second control data; the configuration module 22 is configured to configure the parameters of the second controller according to the first control data and the second control data.
  • the first acquisition module 21 is configured to: acquire first reference trajectory data and first state data of the smart device in the first mode; through the multiple controllers, according to The first reference trajectory data and the first state data generate the control data.
  • the device further includes: a first control module, configured to control the smart device in the first mode to drive according to the first control data.
  • the device further includes: a second acquisition module, configured to acquire second reference trajectory data, and second state data of the smart device in the first mode; and a generating module, configured to pass The second controller generates third control data according to the second reference trajectory data and the second status data; the second control module is configured to control the first mode according to the third control data
  • the smart device travels.
  • the apparatus further includes: a third acquisition module, configured to acquire actual trajectory data generated by the smart device when driving in the first mode; and an adjustment module, configured according to the first mode Second, adjust the parameters of the second controller by referring to the trajectory data and the actual trajectory data.
  • the first controller is a controller that does not include a vehicle dynamics model
  • the second controller is a controller that includes a vehicle dynamics model
  • the smart device includes a smart mobile device
  • the control data includes at least one of steering wheel steering data, accelerator data, brake data, and indicator light data.
  • the second control module is configured to: in response to the difference between the first control data and the second control data satisfying a preset condition, according to the third control data, Control the driving of the smart device in the first mode; wherein the preset condition includes the difference between the first target control data in the first control data and the second target control data in the second control data Belonging to a threshold value range, the first target control data and the second target control data are of the same type.
  • the control data output by the controller of the smart device is acquired, wherein the controller includes a first controller and a second controller, and the control data output by the first controller includes a first control Data, the control data output by the second controller includes second control data, and the parameters of the second controller are configured according to the first control data and the second control data. Therefore, the first controller is used as the reference controller, and the second controller is used as the adjusted controller to find reliable parameters for the second controller accurately, efficiently, and at low cost. Moreover, because the configuration of the second controller is implemented based on the first control data actually output by the first controller, the first control data can usually be used to control the smart device before the second controller completes the configuration.
  • the parameters of the second controller are more adapted to the current application scenario of the smart device.
  • the risk of loss of control of the smart device (such as a vehicle) can be reduced, and the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller can be reduced.
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the foregoing method when executed by a processor.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.
  • the embodiments of the present disclosure also provide a computer program product, including computer-readable code.
  • the processor in the device executes the method for realizing the parameter configuration method provided by any of the above embodiments. instruction.
  • the embodiments of the present disclosure also provide another computer program product for storing computer-readable instructions, which when executed, cause the computer to perform the operation of the parameter configuration method provided in any of the foregoing embodiments.
  • An embodiment of the present disclosure also provides an electronic device, including: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to call the executable stored in the memory Instructions to perform the above method.
  • the electronic device can be provided as a terminal, server or other form of device.
  • FIG. 17 shows a block diagram of an electronic device 800 provided by an embodiment of the present disclosure.
  • the electronic device 800 may be a vehicle-mounted device, a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals.
  • the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, and a sensor component 814 , And communication component 816.
  • the processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method.
  • the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components.
  • the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
  • the memory 804 is configured to store various types of data to support operations in the electronic device 800. Examples of these data include instructions for any application or method to operate on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc.
  • the memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable and Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable and Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic Disk Magnetic Disk or Optical Disk.
  • the power supply component 806 provides power for various components of the electronic device 800.
  • the power supply component 806 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the electronic device 800.
  • the multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor can not only sense the boundary of the touch or slide action, but also detect the duration and pressure related to the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input audio signals.
  • the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal.
  • the received audio signal may be further stored in the memory 804 or transmitted via the communication component 816.
  • the audio component 810 further includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module.
  • the above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.
  • the sensor component 814 includes one or more sensors for providing the electronic device 800 with various aspects of state evaluation.
  • the sensor component 814 can detect the on/off status of the electronic device 800 and the relative positioning of the components.
  • the component is the display and the keypad of the electronic device 800.
  • the sensor component 814 can also detect the electronic device 800 or the electronic device 800.
  • the position of the component changes, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration/deceleration of the electronic device 800, and the temperature change of the electronic device 800.
  • the sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact.
  • the sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • the communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices.
  • the electronic device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G/LTE, 5G, or a combination thereof.
  • the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication.
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field-available A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • ASIC application-specific integrated circuits
  • DSP digital signal processors
  • DSPD digital signal processing devices
  • PLD programmable logic devices
  • FPGA field-available A programmable gate array
  • controller microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
  • a non-volatile computer-readable storage medium such as the memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to complete the foregoing method.
  • FIG. 18 shows a block diagram of an electronic device 1900 provided by an embodiment of the present disclosure.
  • the electronic device 1900 may be provided as a server.
  • the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932, for storing instructions executable by the processing component 1922, such as application programs.
  • the application program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions.
  • the processing component 1922 is configured to execute instructions to perform the above-described methods.
  • a non-volatile computer-readable storage medium is also provided, such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to complete the foregoing method.
  • the present disclosure may be a system, method and/or computer program product.
  • the computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure.
  • the computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Non-exhaustive list of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon
  • RAM random access memory
  • ROM read-only memory
  • EPROM erasable programmable read-only memory
  • flash memory flash memory
  • SRAM static random access memory
  • CD-ROM compact disk read-only memory
  • DVD digital versatile disk
  • memory stick floppy disk
  • mechanical encoding device such as a printer with instructions stored thereon
  • the computer-readable storage medium used here is not interpreted as the instantaneous signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
  • the computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • the network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
  • the computer program instructions used to perform the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or in one or more programming languages.
  • Source code or object code written in any combination, the programming language includes object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages.
  • Computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server implement.
  • the remote computer can be connected to the user's computer through any kind of network-including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect to the user's computer) connect).
  • LAN local area network
  • WAN wide area network
  • an electronic circuit such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by using the status information of the computer-readable program instructions.
  • the computer-readable program instructions are executed to realize various aspects of the present disclosure.
  • These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine that makes these instructions when executed by the processor of the computer or other programmable data processing device , A device that implements the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner, so that the computer-readable medium storing the instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more components for realizing the specified logical function.
  • Executable instructions may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the computer program product can be specifically implemented by hardware, software, or a combination thereof.
  • the computer program product is specifically embodied as a computer storage medium.
  • the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc. Wait.
  • SDK software development kit

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Driving Devices And Active Controlling Of Vehicle (AREA)
  • Steering Control In Accordance With Driving Conditions (AREA)
  • Traffic Control Systems (AREA)

Abstract

Provided are a parameter configuration method and apparatus, and an electronic device and a storage medium. The method is applied to an intelligent device. The intelligent device comprises a controller, and the controller comprises a first controller and a second controller. The method comprises: acquiring control data output by a controller, wherein the control data output by a first controller comprises first control data, and the control data output by a second controller comprises second control data (S11); and configuring a parameter of the second controller according to the first control data and the second control data (S12).

Description

参数配置方法及装置、电子设备和存储介质Parameter configuration method and device, electronic equipment and storage medium
相关申请的交叉引用Cross-references to related applications
本申请要求2020年4月14日提交的题为“参数配置方法及装置、电子设备和存储介质”、申请号为202010290979.6的中国申请的优先权,其全部内容通过引用并入本文。This application claims the priority of the Chinese application entitled "Parameter Configuration Method and Device, Electronic Equipment and Storage Medium", with application number 202010290979.6, filed on April 14, 2020, the entire content of which is incorporated herein by reference.
技术领域Technical field
本公开涉及计算机技术领域,尤其涉及一种参数配置方法及装置、电子设备和存储介质。The present disclosure relates to the field of computer technology, and in particular to a parameter configuration method and device, electronic equipment and storage medium.
背景技术Background technique
随着自动驾驶技术的兴起,越来越多的学术机构和科技公司开始参与到自动驾驶技术的研发工作中。其中,控制器作为自动驾驶系统中必不可少的模块,受到了越来越多的关注。如何准确、高效、低成本、安全地对控制器进行参数配置,是亟待解决的问题。With the rise of autonomous driving technology, more and more academic institutions and technology companies have begun to participate in the research and development of autonomous driving technology. Among them, the controller, as an indispensable module in the automatic driving system, has received more and more attention. How to configure the parameters of the controller accurately, efficiently, at low cost, and safely is a problem that needs to be solved urgently.
发明内容Summary of the invention
本公开提供了一种参数配置技术方案。The present disclosure provides a technical solution for parameter configuration.
根据本公开的一方面,提供了一种参数配置方法,所述方法应用于智能设备,所述智能设备包括多个控制器,所述多个控制器至少包括第一控制器和第二控制器,所述方法包括:获取所述多个控制器各自输出的控制数据,所述第一控制器输出的控制数据包括第一控制数据,所述第二控制器输出的控制数据包括第二控制数据;根据所述第一控制数据与所述第二控制数据,配置所述第二控制器的参数。According to an aspect of the present disclosure, there is provided a parameter configuration method, the method is applied to a smart device, the smart device includes a plurality of controllers, the plurality of controllers include at least a first controller and a second controller , The method includes: acquiring control data output by each of the plurality of controllers, the control data output by the first controller includes first control data, and the control data output by the second controller includes second control data ; According to the first control data and the second control data, configure the parameters of the second controller.
通过获取智能设备的多个控制器各自输出的控制数据,其中,所述多个控制器包括第一控制器和第二控制器,所述第一控制器输出的控制数据包括第一控制数据,所述第二控制器输出的控制数据包括第二控制数据,并根据所述第一控制数据与所述第二控制数据,配置所述第二控制器的参数,由此将第一控制器作为参考控制器,将第二控制器作为被调控制器,准确、高效、低成本地为第二控制器找到可靠的参数,由此在后续进一步对第二控制器进行参数调整时,能够降低智能设备(例如车辆)失控的风险,降低由于第二控制器的参数配置不当带来的潜在交通事故的安全风险。By acquiring the control data output by each of the multiple controllers of the smart device, where the multiple controllers include a first controller and a second controller, and the control data output by the first controller includes the first control data, The control data output by the second controller includes second control data, and the parameters of the second controller are configured according to the first control data and the second control data, thereby using the first controller as With reference to the controller, the second controller is used as the adjusted controller to find reliable parameters for the second controller accurately, efficiently, and at low cost, so that when the second controller is further adjusted in the subsequent parameters, the intelligence can be reduced. The risk of loss of control of equipment (for example, vehicles) reduces the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller.
在一种可能的实现方式中,所述获取所述多个控制器各自输出的控制数据,包括:获取第一参考轨迹数据,以及所述智能设备处于第一模式的第一状态数据;通过所述多个控制器,根据所述第一参考轨迹数据以及所述第一状态数据,生成各自的所述控制数据。In a possible implementation manner, the obtaining the control data output by each of the multiple controllers includes: obtaining first reference trajectory data and first state data of the smart device in the first mode; The multiple controllers generate respective control data according to the first reference trajectory data and the first state data.
在该实现方式中,通过所述控制器,根据所述第一参考轨迹数据以及所述第一状态数据,生成所述控制数据,基于由此生成的第一控制数据和第二控制数据配置第二控制器的参数,能够使配置得到的第二控制器的参数更加适用于真实场景。In this implementation, the controller generates the control data based on the first reference trajectory data and the first state data, and configures the first control data and second control data based on the first control data and second control data thus generated. The parameters of the second controller can make the configured parameters of the second controller more suitable for real scenes.
在一种可能的实现方式中,所述方法还包括:根据所述第一控制数据,控制处于第一模式的所述智能设备行驶。In a possible implementation manner, the method further includes: controlling the smart device in the first mode to drive according to the first control data.
根据该实现方式,通过根据所述第一控制数据,控制处于第一模式的所述智能设备行驶,由此能够在实车中对第二控制器进行参数配置,从而能够降低在模拟器和实车上来回切换调试控制器的成本,并能使参数配置后的第二控制器更加适用于真实场景。According to this implementation manner, by controlling the driving of the smart device in the first mode according to the first control data, the second controller can be configured in the real vehicle, thereby reducing the simulator and actual The cost of switching and debugging the controller back and forth on the car, and can make the second controller after parameter configuration more suitable for real scenes.
在一种可能的实现方式中,所述方法还包括:获取第二参考轨迹数据,以及所述智能设备处于第一模式的第二状态数据;通过所述第二控制器,根据所述第二参考轨迹数据以及所述第二状态数据,生成第三控制数据;In a possible implementation, the method further includes: acquiring second reference trajectory data and second state data of the smart device in the first mode; using the second controller, according to the second Generate third control data with reference to the trajectory data and the second state data;
根据所述第三控制数据,控制处于第一模式的所述智能设备行驶。According to the third control data, the smart device in the first mode is controlled to travel.
根据该实现方式,通过根据所述第三控制数据,控制处于第一模式的所述智能设备行驶,由此能够在实车中对第二控制器进行参数调整,从而能够降低在模拟器和实车上来回切换调试控制器的成本,并能使参数调整后的第二控制器更加适用于真实场景。According to this implementation manner, by controlling the driving of the smart device in the first mode according to the third control data, the second controller can be adjusted in the real vehicle, thereby reducing the simulator and actual The cost of switching and debugging the controller back and forth on the car, and can make the second controller after parameter adjustment more suitable for real scenes.
在一种可能的实现方式中,所述方法还包括:获取所述智能设备处于所述第一模式行驶,产生的实际轨迹数据;根据所述第二参考轨迹数据与所述实际轨迹数据,调整所述第二控制器的参数。In a possible implementation, the method further includes: obtaining actual trajectory data generated by the smart device when driving in the first mode; adjusting according to the second reference trajectory data and the actual trajectory data Parameters of the second controller.
在该实现方式中,通过根据所述实际轨迹数据与所述第二参考轨迹数据之间的差异,调整所述第二控制器的参数,由此使第二控制器能够更准确地适配智能设备,从而实现更精确的控制以及更安全、舒适的驾驶体验。In this implementation manner, the parameters of the second controller are adjusted according to the difference between the actual trajectory data and the second reference trajectory data, thereby enabling the second controller to more accurately adapt to the intelligent Equipment to achieve more precise control and a safer and more comfortable driving experience.
在一种可能的实现方式中,所述第一控制器为不包含车辆动力学模型的控制器,所述第二控制器为包含车辆动力学模型的控制器。In a possible implementation manner, the first controller is a controller that does not include a vehicle dynamics model, and the second controller is a controller that includes a vehicle dynamics model.
基于上述实现方式,能够将不包含车辆动力学模型的控制器作为参考控制器,将包含车辆动力学模型的控制器作为被调控制器,准确、高效、低成本地为包含车辆动力学模型的控制器找到可靠的参数,由此在后续进一步对包含车辆动力学模型的控制器进行参数调整时,能够降低智能设备(例如车辆)失控的风险,降低由于包含车辆动力学模型的控制器的参数配置不当带来的潜在交通事故的安全风险,从而能够方便现场调试工程师进行大规模的实车控制器的性能测试工作。Based on the above implementation method, the controller that does not contain the vehicle dynamics model can be used as the reference controller, and the controller that contains the vehicle dynamics model can be used as the adjusted controller. The controller finds reliable parameters, so that when further parameter adjustments are made to the controller containing the vehicle dynamics model, the risk of loss of control of the smart device (such as a vehicle) can be reduced, and the parameters of the controller containing the vehicle dynamics model can be reduced. The safety risk of potential traffic accidents caused by improper configuration can facilitate on-site commissioning engineers to carry out large-scale performance testing of real vehicle controllers.
在一种可能的实现方式中,所述智能设备包括智能移动设备,所述控制数据包括方向盘转向数据、油门数据、刹车数据、指示灯数据中的至少一项。In a possible implementation manner, the smart device includes a smart mobile device, and the control data includes at least one of steering wheel steering data, accelerator data, brake data, and indicator light data.
基于该实现方式,能够对智能移动设备实现精准的自动控制。Based on this implementation method, precise automatic control of smart mobile devices can be achieved.
在一种可能的实现方式中,所述根据所述第三控制数据,控制处于第一模式的所述智能设备行驶,包括:响应于所述第一控制数据与所述第二控制数据之间的差异满足预设条件,根据所述第三控制数据,控制处于第一模式的所述智能设备行驶;其中,所述预设条件包括所述第一控制数据中第一目标控制数据与所述第二控制数据中第二目标控制数据之间的差值属于阈值范围,所述第一目标控制数据与所述第二目标控制数据的类型相同。In a possible implementation manner, the controlling the driving of the smart device in the first mode according to the third control data includes: responding to the difference between the first control data and the second control data According to the third control data, the smart device in the first mode is controlled to drive; wherein the preset condition includes the first target control data in the first control data and the The difference between the second target control data in the second control data belongs to the threshold range, and the first target control data and the second target control data are of the same type.
在该实现方式中,通过在所述第一控制数据与所述第二控制数据之间的差异满足预设条件的情况下,根据所述第二控制器输出的第三控制数据控制智能设备行驶,由此能够在降低智能设备(例如车辆)失控的风险、降低由于第二控制器的参数配置不当带来的潜在交通事故的安全风险的前提下,使第二控制器调整后的参数更加适用于真实场景。In this implementation manner, the smart device is controlled to drive according to the third control data output by the second controller when the difference between the first control data and the second control data satisfies a preset condition Therefore, it is possible to make the adjusted parameters of the second controller more applicable under the premise of reducing the risk of loss of control of smart devices (such as vehicles) and reducing the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller. In the real scene.
根据本公开的一方面,提供了一种参数配置装置,所述装置应用于智能设备,所述智能设备包括多个控制器,所述多个控制器包括第一控制器和第二控制器,所述装置包括:第一获取模块,用于获取所述多个控制器各自输出的控制数据,所述第一控制器输出的控制数据包括第一控制数据,所述第二控制器输出的控制数据包括第二控制数据;According to an aspect of the present disclosure, there is provided a parameter configuration device, the device is applied to a smart device, the smart device includes a plurality of controllers, the plurality of controllers include a first controller and a second controller, The device includes: a first acquisition module configured to acquire control data output by each of the multiple controllers, the control data output by the first controller includes first control data, and the control output by the second controller The data includes second control data;
配置模块,用于根据所述第一控制数据与所述第二控制数据,配置所述第二控制器的参数。The configuration module is used to configure the parameters of the second controller according to the first control data and the second control data.
在一种可能的实现方式中,所述第一获取模块用于:获取第一参考轨迹数据,以及所述智能设备处于第一模式的第一状态数据;通过所述多个控制器,根据所述第一参考轨迹数据以及所述第一状态数据,生成各自的所述控制数据。In a possible implementation manner, the first acquisition module is configured to: acquire first reference trajectory data and first state data of the smart device in the first mode; through the multiple controllers, according to all The first reference trajectory data and the first state data are used to generate the respective control data.
在一种可能的实现方式中,所述装置还包括:第一控制模块,用于根据所述第一控制数据,控制处于第一模式的所述智能设备行驶。In a possible implementation manner, the device further includes: a first control module, configured to control the smart device in the first mode to drive according to the first control data.
在一种可能的实现方式中,所述装置还包括:第二获取模块,用于获取第二参考轨迹数据,以及所述智能设备处于第一模式的第二状态数据;生成模块,用于通过所述第二控制器,根据所述第二参考轨迹数据以及所述第二状态数据,生成第三控制数据;第二控制模块,用于根据所述第三控制数据,控制处于第一模式的所述智能设备行驶。In a possible implementation manner, the device further includes: a second acquisition module, configured to acquire second reference trajectory data, and second state data of the smart device in the first mode; and a generating module, configured to pass The second controller generates third control data according to the second reference trajectory data and the second status data; the second control module is configured to control the first mode according to the third control data The smart device travels.
在一种可能的实现方式中,所述装置还包括:第三获取模块,用于获取所述智能设备处于所述第一模式行驶,产生的实际轨迹数据;调整模块,用于根据所述第二参考轨迹数据与所述实际轨迹数据,调整所述第二控制器的参数。In a possible implementation manner, the apparatus further includes: a third acquisition module, configured to acquire actual trajectory data generated by the smart device when driving in the first mode; and an adjustment module, configured according to the first mode Second, adjust the parameters of the second controller by referring to the trajectory data and the actual trajectory data.
在一种可能的实现方式中,所述第一控制器为不包含车辆动力学模型的控制器,所述第二控制器为包含车辆动力学模型的控制器。In a possible implementation manner, the first controller is a controller that does not include a vehicle dynamics model, and the second controller is a controller that includes a vehicle dynamics model.
在一种可能的实现方式中,所述智能设备包括智能移动设备,所述控制数据包括方向盘转向数据、油门数据、刹车数据、指示灯数据中的至少一项。In a possible implementation manner, the smart device includes a smart mobile device, and the control data includes at least one of steering wheel steering data, accelerator data, brake data, and indicator light data.
在一种可能的实现方式中,所述第二控制模块用于:响应于所述第一控制数据与所述第二控制数据之间的差异满足预设条件,根据所述第三控制数据,控制处于第一模式的所述智能设备行驶;其中,所述预设条件包括所述第一控制数据中第一目标控制数据与所述第二控制数据中第二目标控制数据之间的差值属于阈值范围,所述第一目标控制数据与所述第二目标控制数据的类型相同。In a possible implementation manner, the second control module is configured to: in response to the difference between the first control data and the second control data satisfying a preset condition, according to the third control data, Control the driving of the smart device in the first mode; wherein the preset condition includes the difference between the first target control data in the first control data and the second target control data in the second control data Belonging to a threshold value range, the first target control data and the second target control data are of the same type.
根据本公开的一方面,提供了一种电子设备,包括:一个或多个处理器;用于存储可执行指令的存储器;其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行上述方法。According to an aspect of the present disclosure, there is provided an electronic device including: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to call the memory to store The executable instructions to perform the above method.
根据本公开的一方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。According to an aspect of the present disclosure, there is provided a computer-readable storage medium having computer program instructions stored thereon, and the computer program instructions implement the above-mentioned method when executed by a processor.
根据本公开的一方面,提供了一种计算机程序产品,用于存储计算机可读指令,指令被执行时使得计算机执行上述方法。According to an aspect of the present disclosure, there is provided a computer program product for storing computer-readable instructions, which when executed, cause a computer to execute the foregoing method.
在本公开实施例中,通过获取智能设备的多个控制器各自输出的控制数据,其中,所述多个控制器包括第一控制器和第二控制器,所述第一控制器输出的控制数据包括第一控制数据,所述第二控制器输出的控制数据包括第二控制数据,并根据所述第一控制数据与所述第二控制数据,配置所述第二控制器的参数。由此将第一控制器作为参考控制器,将第二控制器作为被调控制器,准确、高效、低成本地为第二控制器找到可靠的参数。并且,由于第二控制器的配置基于第一控制器的实际输出的第一控制数据来实现,而在第二控制器完成配置之前,通常可以使用第一控制数据来控制智能设备,因此,可以使第二控制器的参数更适应于智能设备当前所处的应用场景。此外,在后续进一步对第二控制器进行参数调整的过程中,能够降低智能设备(例如车辆)失控的风险,降低由于第二控制器的参数配置不当带来的潜在交通事故的安全风险。In the embodiment of the present disclosure, the control data output by each of the multiple controllers of the smart device is acquired, wherein the multiple controllers include a first controller and a second controller, and the control output by the first controller is The data includes first control data, the control data output by the second controller includes second control data, and the parameters of the second controller are configured according to the first control data and the second control data. Therefore, the first controller is used as the reference controller, and the second controller is used as the adjusted controller to find reliable parameters for the second controller accurately, efficiently, and at low cost. Moreover, because the configuration of the second controller is implemented based on the first control data actually output by the first controller, the first control data can usually be used to control the smart device before the second controller completes the configuration. Therefore, The parameters of the second controller are more adapted to the current application scenario of the smart device. In addition, in the subsequent process of further adjusting the parameters of the second controller, the risk of loss of control of the smart device (for example, a vehicle) can be reduced, and the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller can be reduced.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, rather than limiting the present disclosure.
根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。According to the following detailed description of exemplary embodiments with reference to the accompanying drawings, other features and aspects of the present disclosure will become clear.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments that conform to the present disclosure, and are used together with the specification to explain the technical solutions of the present disclosure.
图1示出本公开实施例提供的参数配置方法的流程图。Fig. 1 shows a flowchart of a parameter configuration method provided by an embodiment of the present disclosure.
图2示出本公开实施例中的基于PID的控制器(PID控制器)的示意图。Fig. 2 shows a schematic diagram of a PID-based controller (PID controller) in an embodiment of the present disclosure.
图3示出本公开实施例中的基于PID的控制器的核心组件的示意图。Fig. 3 shows a schematic diagram of core components of a PID-based controller in an embodiment of the present disclosure.
图4示出本公开实施例中通过基于PID的控制器的3个参数调节后的控制效果的示意图。FIG. 4 shows a schematic diagram of the control effect after adjusting the three parameters of the PID-based controller in the embodiment of the present disclosure.
图5示出本公开实施例中的基于MPC的控制器(MPC控制器)的示意图。FIG. 5 shows a schematic diagram of an MPC-based controller (MPC controller) in an embodiment of the present disclosure.
图6示出本公开实施例中的基于MPC的控制器的核心组件的示意图。Fig. 6 shows a schematic diagram of core components of an MPC-based controller in an embodiment of the present disclosure.
图7示出本公开实施例的基于MPC的控制器中的车辆动力学模型的示意图。FIG. 7 shows a schematic diagram of a vehicle dynamics model in an MPC-based controller of an embodiment of the present disclosure.
图8A-8C示出本公开实施例的基于MPC的控制器中的核心组件的目标函数优化的示意图。8A-8C show schematic diagrams of objective function optimization of core components in an MPC-based controller in an embodiment of the present disclosure.
图9示出本公开实施例中基于MPC的控制器的优化过程的示意图。Fig. 9 shows a schematic diagram of an optimization process of an MPC-based controller in an embodiment of the present disclosure.
图10示出本公开实施例提供的自动驾驶系统的总体架构的示意图。FIG. 10 shows a schematic diagram of the overall architecture of an automatic driving system provided by an embodiment of the present disclosure.
图11示出本公开实施例中利用参考控制器指导被调控制器进行参数配置的示意图。FIG. 11 shows a schematic diagram of using a reference controller to guide the adjusted controller to perform parameter configuration in an embodiment of the present disclosure.
图12示出本公开实施例提供的控制器的参数配置流程的示意图。FIG. 12 shows a schematic diagram of a parameter configuration process of a controller provided by an embodiment of the present disclosure.
图13a至图13d示出本公开实施例中基于MPC的控制器的控制结果的示意图。13a to 13d show schematic diagrams of control results of the MPC-based controller in an embodiment of the present disclosure.
图14示出本公开实施例中在基于MPC的控制器的控制下的横向轨迹误差、朝向误差以及纵向速度误差随时间变化的示意图。FIG. 14 shows a schematic diagram of the lateral trajectory error, the orientation error, and the longitudinal velocity error over time under the control of the MPC-based controller in the embodiment of the present disclosure.
图15示出本公开实施例中在对基于MPC的控制器进行参数调整后,在基于MPC的控制器的控制下的横向轨迹误差、朝向误差以及纵向速度误差随时间变化的示意图。FIG. 15 shows a schematic diagram of the lateral trajectory error, the heading error, and the longitudinal speed error changing with time under the control of the MPC-based controller after parameter adjustment of the MPC-based controller in an embodiment of the present disclosure.
图16示出本公开实施例提供的参数配置装置的框图。FIG. 16 shows a block diagram of a parameter configuration device provided by an embodiment of the present disclosure.
图17示出本公开实施例提供的一种电子设备800的框图。FIG. 17 shows a block diagram of an electronic device 800 provided by an embodiment of the present disclosure.
图18示出本公开实施例提供的一种电子设备1900的框图。FIG. 18 shows a block diagram of an electronic device 1900 provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the drawings. The same reference numerals in the drawings indicate elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, unless otherwise noted, the drawings are not necessarily drawn to scale.
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所 说明的任何实施例不必解释为优于或好于其它实施例。The dedicated word "exemplary" here means "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" need not be construed as being superior or better than other embodiments.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is only an association relationship that describes associated objects, which means that there can be three relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, exist alone B these three situations. In addition, the term "at least one" in this document means any one of a plurality of or any combination of at least two of the plurality, for example, including at least one of A, B, and C, may mean including A, Any one or more elements selected in the set formed by B and C.
另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. Those skilled in the art should understand that the present disclosure can also be implemented without certain specific details. In some instances, the methods, means, elements, and circuits well known to those skilled in the art have not been described in detail, so as to highlight the gist of the present disclosure.
在本公开实施例中,通过获取智能设备的控制器输出的控制数据,其中,所述控制器包括第一控制器和第二控制器,所述第一控制器输出的控制数据包括第一控制数据,所述第二控制器输出的控制数据包括第二控制数据,并根据所述第一控制数据与所述第二控制数据,配置所述第二控制器的参数。由此将第一控制器作为参考控制器,将第二控制器作为被调控制器,准确、高效、低成本地为第二控制器找到可靠的参数。并且,由于第二控制器的配置基于第一控制器的实际输出的第一控制数据来实现,而在第二控制器完成配置之前,通常可以使用第一控制数据来控制智能设备,因此,可以使第二控制器的参数更适应于智能设备当前所处的应用场景。此外,在后续进一步对第二控制器进行参数调整的过程中,能够降低智能设备(例如车辆)失控的风险,降低由于第二控制器的参数配置不当带来的潜在交通事故的安全风险。In the embodiment of the present disclosure, the control data output by the controller of the smart device is acquired, wherein the controller includes a first controller and a second controller, and the control data output by the first controller includes a first control Data, the control data output by the second controller includes second control data, and the parameters of the second controller are configured according to the first control data and the second control data. Therefore, the first controller is used as the reference controller, and the second controller is used as the adjusted controller to find reliable parameters for the second controller accurately, efficiently, and at low cost. Moreover, because the configuration of the second controller is implemented based on the first control data actually output by the first controller, the first control data can usually be used to control the smart device before the second controller completes the configuration. Therefore, The parameters of the second controller are more adapted to the current application scenario of the smart device. In addition, in the subsequent process of further adjusting the parameters of the second controller, the risk of loss of control of the smart device (for example, a vehicle) can be reduced, and the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller can be reduced.
需要说明的是,智能设备还可以包括除第一控制器和第二控制器以外的其他控制器,在本公开实施例中,对于智能设备包括的控制器的种类,以及各类型控制器的数量等不予限定。在本公开实施例中,以智能设备包括第一控制器和第二控制器为例,对本公开实施例提供的技术方案进行阐述。It should be noted that the smart device may also include other controllers besides the first controller and the second controller. In the embodiments of the present disclosure, the types of controllers included in the smart device and the number of controllers of various types Etc. are not limited. In the embodiments of the present disclosure, a smart device including a first controller and a second controller is taken as an example to illustrate the technical solutions provided by the embodiments of the present disclosure.
图1示出本公开实施例提供的参数配置方法的流程图。所述参数配置方法可以应用于参数配置装置。例如,所述参数配置方法可以由终端设备或服务器或其它处理设备执行。其中,终端设备可以是车载设备、用户设备(User Equipment,UE)、移动设备、用户终端、终端、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备或者可穿戴设备等。在一些可能的实现方式中,所述参数配置方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。所述参数配置方法应用于智能设备,所述智能设备包括多个控制器,所述多个控制器至少包括第一控制器和第二控制器。所述智能设备可以包括智能移动设备,例如车辆或者移动机器人等。下文以智能设备为车辆为例,对本公开实施例进行说明。如图1所示,所述参数配置方法包括步骤S11至步骤S12。Fig. 1 shows a flowchart of a parameter configuration method provided by an embodiment of the present disclosure. The parameter configuration method can be applied to a parameter configuration device. For example, the parameter configuration method can be executed by a terminal device or a server or other processing device. Among them, the terminal device may be a vehicle-mounted device, a user equipment (UE), a mobile device, a user terminal, a terminal, a personal digital assistant (PDA), a handheld device, a computing device, or a wearable device. In some possible implementation manners, the parameter configuration method may be implemented by a processor invoking computer-readable instructions stored in a memory. The parameter configuration method is applied to a smart device, the smart device includes a plurality of controllers, and the plurality of controllers include at least a first controller and a second controller. The smart device may include a smart mobile device, such as a vehicle or a mobile robot. The following uses a smart device as a vehicle as an example to describe the embodiments of the present disclosure. As shown in Fig. 1, the parameter configuration method includes step S11 to step S12.
在步骤S11中,获取所述多个控制器各自输出的控制数据,所述第一控制器输出的控制数据包括第一控制数据,所述第二控制器输出的控制数据包括第二控制数据。In step S11, the control data output by each of the plurality of controllers is acquired, the control data output by the first controller includes first control data, and the control data output by the second controller includes second control data.
本公开实施例中的控制器可以是自动驾驶中用于轨迹跟踪的控制器,还可以是具备其他功能的控制器,本公开实施例对此不作限定。控制器输出的控制数据(第一控制器输出的第一控制数据和/或第二控制器输出的第二控制数据)可以用于对智能设备进行控制。第一控制器和第二控制器可以根据相同的输入数据,分别得到第一控制数据和第二控制数据。在第二控制器的参数配置的过程中,可以多次获取第一控制器输出的第一控制数据和第二控制器输出的第二控制数据。例如,对于多次中的任意一次,可以同时获取第一控制器输出的第一控制数据和第二控制器输出的第二控制数据,以将两者进行比较。当然,也可以按照一定先后顺序,依次获取第一控制数据和第二控制数据,或是依 次获取第二控制数据和第一控制数据。需要说明的是,在控制数据的获取过程中,不限定第一控制数据和第二控制数据的先后顺序。The controller in the embodiment of the present disclosure may be a controller used for trajectory tracking in automatic driving, or may be a controller with other functions, which is not limited in the embodiment of the present disclosure. The control data output by the controller (the first control data output by the first controller and/or the second control data output by the second controller) can be used to control the smart device. The first controller and the second controller can obtain the first control data and the second control data respectively according to the same input data. In the process of parameter configuration of the second controller, the first control data output by the first controller and the second control data output by the second controller can be acquired multiple times. For example, for any one of the multiple times, the first control data output by the first controller and the second control data output by the second controller can be simultaneously acquired to compare the two. Of course, it is also possible to obtain the first control data and the second control data in sequence according to a certain sequence, or to obtain the second control data and the first control data in sequence. It should be noted that in the process of acquiring the control data, the sequence of the first control data and the second control data is not limited.
在步骤S12中,根据所述第一控制数据与所述第二控制数据,配置所述第二控制器的参数。In step S12, the parameters of the second controller are configured according to the first control data and the second control data.
在本公开实施例中,可以根据所述第一控制数据与所述第二控制数据的差异,配置所述第二控制器的参数。例如,可以根据所述第一控制数据与所述第二控制数据的差异,初始化和/或调整所述第二控制器的参数。In the embodiment of the present disclosure, the parameters of the second controller may be configured according to the difference between the first control data and the second control data. For example, the parameters of the second controller may be initialized and/or adjusted according to the difference between the first control data and the second control data.
其中,初始化第二控制器的参数,指的是对第二控制器的参数进行初始的配置;调整第二控制器的参数,指的是将完成初始化的第二控制器的参数进行调整。在一种可能的实现方式中,完成初始化的第二控制器的参数可以为默认的第二控制器参数,具体可以为结合历史经验值配置的第二控制器的参数,或是第二控制器在出厂前配置的出厂参数等,在此不予限定。Wherein, initializing the parameters of the second controller refers to initial configuration of the parameters of the second controller; adjusting the parameters of the second controller refers to adjusting the parameters of the second controller that has been initialized. In a possible implementation manner, the parameter of the second controller that is initialized may be the default second controller parameter, specifically it may be the parameter of the second controller configured in combination with historical experience values, or the second controller The factory parameters configured before leaving the factory are not limited here.
在本公开实施例中,由于第二控制器的配置基于第一控制器的实际输出的第一控制数据来实现,而在第二控制器完成配置之前,通常可以使用第一控制数据来控制智能设备,因此,可以使第二控制器的参数更适应于智能设备当前所处的应用场景。此外,在后续进一步对第二控制器进行参数调整的过程中,能够降低智能设备(例如车辆)失控的风险,降低由于第二控制器的参数配置不当带来的潜在交通事故的安全风险。In the embodiments of the present disclosure, since the configuration of the second controller is implemented based on the first control data actually output by the first controller, the first control data can usually be used to control the intelligent control data before the second controller completes the configuration. Device, therefore, the parameters of the second controller can be more adapted to the current application scenario of the smart device. In addition, in the subsequent process of further adjusting the parameters of the second controller, the risk of loss of control of the smart device (for example, a vehicle) can be reduced, and the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller can be reduced.
在一种可能的实现方式中,所述获取所述多个控制器各自输出的控制数据,包括:获取第一参考轨迹数据,以及所述智能设备处于第一模式的第一状态数据;通过所述多个控制器,根据所述第一参考轨迹数据以及所述第一状态数据,生成各自的控制数据。In a possible implementation manner, the obtaining the control data output by each of the multiple controllers includes: obtaining first reference trajectory data and first state data of the smart device in the first mode; The multiple controllers generate respective control data according to the first reference trajectory data and the first state data.
在该实现方式中,第一参考轨迹数据可以表示在根据第一控制数据和第二控制数据配置第二控制器的参数的过程中,获取的参考轨迹数据。第一参考轨迹数据可以包括参考轨迹和参考轨迹上的多个途经点的目标速度,第一参考轨迹数据可以是自动驾驶系统中的轨迹规划模块输出的。In this implementation manner, the first reference trajectory data may represent reference trajectory data acquired during the process of configuring the parameters of the second controller according to the first control data and the second control data. The first reference trajectory data may include the reference trajectory and target speeds of multiple passing points on the reference trajectory, and the first reference trajectory data may be output by the trajectory planning module in the automatic driving system.
在该实现方式中,第一状态数据可以表示在根据第一控制数据和第二控制数据配置第二控制器的参数的过程中,获取的智能设备的状态数据。其中,第一状态数据可以是实时获取的。例如,第一状态数据可以包括智能设备的位置、速度和加速度等中的一项或是多项的组合。In this implementation manner, the first state data may represent the state data of the smart device acquired during the process of configuring the parameters of the second controller according to the first control data and the second control data. Among them, the first state data may be acquired in real time. For example, the first state data may include one or a combination of multiple items of the position, speed, and acceleration of the smart device.
在该实现方式中,所述智能设备至少具备第一模式,例如,第一模式可以是全自动驾驶模式或者半自动驾驶模式。所述智能设备还可以具备第二模式,例如,第二模式可以是全人工驾驶模式。所述智能设备还可以具备第三模式,例如,若第一模式是全自动驾驶模式,则第三模式可以是半自动驾驶模式,或者,若第一模式是半自动驾驶模式,则第三模式可以是全自动驾驶模式。其中,每个模式下还可以包括子模式,以对各模式进行更精细的划分,在此对于智能设备的模式类型以及子模式的具体参数等不予限定。In this implementation, the smart device has at least a first mode. For example, the first mode may be a fully automatic driving mode or a semi-automatic driving mode. The smart device may also have a second mode, for example, the second mode may be a fully manual driving mode. The smart device may also have a third mode. For example, if the first mode is a fully automatic driving mode, the third mode may be a semi-automatic driving mode, or if the first mode is a semi-automatic driving mode, the third mode may be Fully automatic driving mode. Among them, each mode may also include sub-modes to more finely divide each mode. The mode type of the smart device and the specific parameters of the sub-modes are not limited herein.
在该实现方式中,第一控制器可以根据所述第一参考轨迹数据以及所述第一状态数据,生成第一控制数据,其中,所述第一控制数据表示第一控制器生成的与所述第一参考轨迹数据和所述第一状态数据对应的控制数据。第二控制器可以根据所述第一参考轨迹数据以及所述第一状态数据,生成第二控制数据,其中,所述第二控制数据表示第二控制器生成的与所述第一参考轨迹数据和所述第一状态数据对应的控制数据。第二控制数据可以指在根据第一控制数据和第二控制数据配置第二控制器的参数的过程中,第二控制器生成的控制数据。In this implementation manner, the first controller may generate first control data according to the first reference trajectory data and the first state data, where the first control data represents the data generated by the first controller and the The first reference trajectory data and the control data corresponding to the first state data. The second controller may generate second control data according to the first reference trajectory data and the first state data, where the second control data represents the data generated by the second controller and the first reference trajectory data Control data corresponding to the first state data. The second control data may refer to the control data generated by the second controller in the process of configuring the parameters of the second controller according to the first control data and the second control data.
在该实现方式中,通过所述控制器,根据所述第一参考轨迹数据以及所述第一状态 数据,生成所述控制数据,基于由此生成的第一控制数据和第二控制数据配置第二控制器的参数,能够使配置得到的第二控制器的参数更加适用于真实场景。In this implementation, the controller generates the control data based on the first reference trajectory data and the first state data, and configures the first control data and second control data based on the first control data and second control data thus generated. The parameters of the second controller can make the configured parameters of the second controller more suitable for real scenes.
在一种可能的实现方式中,在所述获取所述控制器输出的控制数据之后,所述方法还包括:根据所述第一控制数据,控制处于第一模式的所述智能设备行驶。In a possible implementation manner, after the acquisition of the control data output by the controller, the method further includes: controlling the smart device in the first mode to drive according to the first control data.
在该实现方式中,可以通过将第一控制器设置为所述智能设备的当前控制器,以根据所述第一控制数据,控制处于第一模式的所述智能设备行驶。例如,可以通过智能设备的切换开关(Switcher)将所述第一控制器设置为所述智能设备的当前控制器。In this implementation manner, the first controller may be set as the current controller of the smart device to control the smart device in the first mode to drive according to the first control data. For example, the first controller can be set as the current controller of the smart device through a switcher of the smart device.
根据该实现方式,通过根据所述第一控制数据,控制处于第一模式的所述智能设备行驶,由此能够在实车中对第二控制器进行参数配置,从而能够降低在模拟器(如模拟车辆运行的设备)和实车上来回切换调试控制器的成本,并能使参数配置后的第二控制器更加适用于真实场景。According to this implementation mode, by controlling the driving of the smart device in the first mode according to the first control data, the second controller can be parameterized in the real vehicle, thereby reducing the number of operating conditions in the simulator (such as The cost of switching and debugging the controller back and forth between the equipment that simulates the operation of the vehicle and the real vehicle, and can make the second controller after parameter configuration more suitable for real scenes.
在一种可能的实现方式中,在所述配置所述第二控制器的参数之后,所述方法还包括:获取第二参考轨迹数据,以及所述智能设备处于第一模式的第二状态数据;通过所述第二控制器,根据所述第二参考轨迹数据以及所述第二状态数据,生成第三控制数据;根据所述第三控制数据,控制处于第一模式的所述智能设备行驶。In a possible implementation manner, after the configuration of the parameters of the second controller, the method further includes: acquiring second reference trajectory data, and second state data of the smart device in the first mode ; Through the second controller, according to the second reference trajectory data and the second state data, generate third control data; according to the third control data, control the smart device in the first mode to drive .
在该实现方式中,第二参考轨迹数据可以表示在根据所述第三控制数据控制所述智能设备行驶的过程中,获取的参考轨迹数据。第二参考轨迹数据可以包括参考轨迹和参考轨迹上的多个途经点的目标速度,第二参考轨迹数据可以是自动驾驶系统中的轨迹规划模块输出的。第一参考轨迹数据可以包括第二参考轨迹数据中的内容,即,第二参考轨迹数据可以是第一参考轨迹数据的后段的参考轨迹数据,例如,智能设备按照第一参考轨迹数据行驶一段时间后,获取到第二参考轨迹数据。或者,在智能设备改变行驶路线等的情况下,第二参考轨迹数据与第一参考轨迹数据可以不同。In this implementation manner, the second reference trajectory data may represent reference trajectory data acquired during the process of controlling the smart device to travel according to the third control data. The second reference trajectory data may include the reference trajectory and the target speeds of multiple passing points on the reference trajectory, and the second reference trajectory data may be output by the trajectory planning module in the automatic driving system. The first reference trajectory data may include the content in the second reference trajectory data, that is, the second reference trajectory data may be the reference trajectory data of the later section of the first reference trajectory data. For example, the smart device drives for a period of time according to the first reference trajectory data. After time, the second reference trajectory data is obtained. Or, in the case where the smart device changes the driving route, etc., the second reference trajectory data may be different from the first reference trajectory data.
在该实现方式中,第二状态数据可以表示在根据所述第三控制数据控制所述智能设备行驶的过程中,获取的智能设备的状态数据。其中,第二状态数据可以是实时获取的。例如,第二状态数据可以包括智能设备的位置、速度和加速度等中的一项或是多项的组合。In this implementation manner, the second state data may represent state data of the smart device acquired during the process of controlling the smart device to drive according to the third control data. Wherein, the second state data may be acquired in real time. For example, the second state data may include one or a combination of multiple items of the position, speed, and acceleration of the smart device.
在该实现方式中,第三控制数据可以表示第二控制器生成的与第二参考轨迹数据和第二状态数据对应的控制数据。第三控制数据可以指根据所述第三控制数据控制所述智能设备行驶的过程中,第二控制器生成的控制数据。In this implementation manner, the third control data may represent control data generated by the second controller and corresponding to the second reference trajectory data and the second state data. The third control data may refer to the control data generated by the second controller in the process of controlling the smart device to travel according to the third control data.
根据该实现方式,通过根据所述第三控制数据,控制处于第一模式的所述智能设备行驶,由此能够在实车中对第二控制器进行参数调整,从而能够降低在模拟器和实车上来回切换调试控制器的成本,并能使参数调整后的第二控制器更加适用于真实场景。According to this implementation manner, by controlling the driving of the smart device in the first mode according to the third control data, the second controller can be adjusted in the real vehicle, thereby reducing the simulator and actual The cost of switching and debugging the controller back and forth on the car, and can make the second controller after parameter adjustment more suitable for real scenes.
在一种可能的实现方式中,在所述根据所述第三控制数据,控制处于第一模式的所述智能设备行驶之后,所述方法还包括:获取所述智能设备处于所述第一模式行驶,产生的实际轨迹数据;根据所述第二参考轨迹数据与所述实际轨迹数据,调整所述第二控制器的参数。In a possible implementation manner, after the control of the smart device in the first mode to drive according to the third control data, the method further includes: acquiring that the smart device is in the first mode Driving, actual trajectory data generated; adjusting the parameters of the second controller according to the second reference trajectory data and the actual trajectory data.
其中,实际轨迹数据可以包括实际轨迹以及实际轨迹上的多个点的速度。根据第二参考轨迹数据与实际轨迹数据,可以确定两者之间的朝向误差、横向轨迹误差和纵向速度误差,从而可以根据两者之间的朝向误差、横向轨迹误差和纵向速度误差,调整第二控制器的参数。The actual trajectory data may include the actual trajectory and the speed of multiple points on the actual trajectory. According to the second reference trajectory data and the actual trajectory data, the heading error, lateral trajectory error and longitudinal velocity error between the two can be determined, so that the first can be adjusted according to the heading error, lateral trajectory error and longitudinal velocity error between the two. 2. Parameters of the controller.
在该实现方式中,通过根据所述实际轨迹数据与所述第二参考轨迹数据之间的差异,调整所述第二控制器的参数,由此使第二控制器能够更准确地适配智能设备,从而实现 更精确的控制以及更安全、舒适的驾驶体验。In this implementation manner, the parameters of the second controller are adjusted according to the difference between the actual trajectory data and the second reference trajectory data, thereby enabling the second controller to more accurately adapt to the intelligent Equipment to achieve more precise control and a safer and more comfortable driving experience.
在一种可能的实现方式中,所述智能设备包括智能移动设备,所述控制数据包括方向盘转向数据、油门数据、刹车数据、指示灯数据中的至少一项。In a possible implementation manner, the smart device includes a smart mobile device, and the control data includes at least one of steering wheel steering data, accelerator data, brake data, and indicator light data.
在该实现方式中,方向盘转向数据可以包括方向盘旋转角度、旋转圈数、旋转方向等中的一项或是多项的组合。油门数据可以包括油门大小、油门速度等中的一项或是多项的组合,其中,油门大小可以采用占最大油门量的百分比等方式来表示。刹车数据可以包括刹车力度、刹车速度等中的一项或是多项的组合,其中,刹车力度可以采用占最大刹车力度的百分比等方式来表示。指示灯数据可以包括指示灯类型、时长等中的一项或是多项的组合。基于该实现方式,能够对智能移动设备实现精准的自动控制。In this implementation manner, the steering wheel steering data may include one or a combination of multiple of the steering wheel rotation angle, the number of rotations, and the rotation direction. The throttle data may include one or a combination of multiple of throttle size, throttle speed, etc., wherein the throttle size can be expressed as a percentage of the maximum throttle amount. The braking data may include one or a combination of multiple of braking force, braking speed, etc., wherein the braking force can be expressed as a percentage of the maximum braking force. The indicator light data may include one or a combination of multiple items, such as indicator type and duration. Based on this implementation method, precise automatic control of smart mobile devices can be achieved.
在一种可能的实现方式中,所述根据所述第三控制数据,控制处于第一模式的所述智能设备行驶,包括:响应于所述第一控制数据与所述第二控制数据之间的差异满足预设条件,根据所述第三控制数据,控制处于第一模式的所述智能设备行驶;其中,所述预设条件包括所述第一控制数据中第一目标控制数据与所述第二控制数据中第二目标控制数据之间的差值属于阈值范围,所述第一目标控制数据与所述第二目标控制数据的类型相同。In a possible implementation manner, the controlling the driving of the smart device in the first mode according to the third control data includes: responding to the difference between the first control data and the second control data According to the third control data, the smart device in the first mode is controlled to drive; wherein the preset condition includes the first target control data in the first control data and the The difference between the second target control data in the second control data belongs to the threshold range, and the first target control data and the second target control data are of the same type.
在该实现方式中,第一目标控制数据可以包括第一控制数据中的一个或多个类型的数据,相应地,第二目标控制数据也可以包括第二控制数据中的一个或多个类型的数据。其中,第一目标控制数据与第二目标控制数据所包括的数据类型相同。例如,第一目标控制数据包括第一控制数据中的方向盘转向数据、油门数据和刹车数据,第二目标控制数据包括第二控制数据中的方向盘转向数据、油门数据和刹车数据;又如,第一目标控制数据包括第一控制数据中的方向盘转向数据、油门数据、刹车数据和指示灯数据,第二目标控制数据包括第二控制数据中的方向盘转向数据、油门数据、刹车数据和指示灯数据。In this implementation manner, the first target control data may include one or more types of data in the first control data, and correspondingly, the second target control data may also include one or more types of data in the second control data. data. Wherein, the first target control data and the second target control data include the same data type. For example, the first target control data includes steering wheel steering data, throttle data, and brake data in the first control data, and the second target control data includes steering wheel steering data, throttle data, and brake data in the second control data; another example is the first control data. One target control data includes steering wheel steering data, throttle data, brake data, and indicator data in the first control data, and the second target control data includes steering wheel steering data, throttle data, brake data, and indicator data in the second control data. .
在该实现方式中,阈值范围可以是以一个参数为阈值,若所述第一控制数据中第一目标控制数据与所述第二控制数据中第二目标控制数据之间的差值小于或等于该阈值,则满足预设条件;或者,阈值范围可以以两个阈值作为上下限,若所述第一控制数据中第一目标控制数据与所述第二控制数据中第二目标控制数据之间的差值属于该阈值范围,则满足预设条件。In this implementation manner, the threshold range may be a parameter as the threshold, if the difference between the first target control data in the first control data and the second target control data in the second control data is less than or equal to The threshold value satisfies the preset condition; or, the threshold value range may use two threshold values as upper and lower limits, if the first target control data in the first control data is between the first target control data in the second control data and the second target control data in the second control data. If the difference of is within the threshold range, the preset condition is met.
作为该实现方式的一个示例,第一目标控制数据包括第一控制数据中的方向盘转向数据、油门数据、刹车数据和指示灯数据中的至少之一,第二目标控制数据包括第二控制数据中的方向盘转向数据、油门数据、刹车数据和指示灯数据中的至少之一。预设条件包括以下至少之一:所述第一控制数据中的方向盘转向数据与所述第二控制数据中的方向盘转向数据之间的差值小于或等于第一阈值,所述第一控制数据中的油门数据与所述第二控制数据中的油门数据之间的差值小于或等于第二阈值,所述第一控制数据中的刹车数据与所述第二控制数据中的刹车数据之间的差值小于或等于第三阈值,所述第一控制数据中的指示灯数据与所述第二控制数据中的指示灯数据之间的差值小于或等于第四阈值。As an example of this implementation, the first target control data includes at least one of steering wheel steering data, throttle data, brake data, and indicator light data in the first control data, and the second target control data includes at least one of the second control data. At least one of the steering wheel steering data, throttle data, brake data, and indicator light data. The preset condition includes at least one of the following: the difference between the steering wheel steering data in the first control data and the steering wheel steering data in the second control data is less than or equal to a first threshold, the first control data The difference between the throttle data in the second control data and the throttle data in the second control data is less than or equal to the second threshold, and the difference between the brake data in the first control data and the brake data in the second control data The difference between is less than or equal to the third threshold, and the difference between the indicator data in the first control data and the indicator data in the second control data is less than or equal to the fourth threshold.
在该实现方式中,可以通过将所述第二控制器设置为所述智能设备的当前控制器,以根据所述第三控制数据,控制处于第一模式的所述智能设备行驶。例如,可以通过切换开关将所述第二控制器设置为所述智能设备的当前控制器。In this implementation manner, the second controller may be set as the current controller of the smart device to control the smart device in the first mode to drive according to the third control data. For example, the second controller can be set as the current controller of the smart device through a switch.
在该实现方式中,可以将指示灯数据中的指示灯类型、时长等量化,从而可以得到所述第一控制数据中的指示灯数据与所述第二控制数据中的指示灯数据之间的差值。In this implementation manner, the indicator type, duration, etc. in the indicator data can be quantified, so that the difference between the indicator data in the first control data and the indicator data in the second control data can be obtained. Difference.
在该实现方式中,通过在所述第一控制数据与所述第二控制数据之间的差异满足预 设条件的情况下,根据所述第二控制器输出的第三控制数据控制智能设备行驶,由此能够在降低智能设备(例如车辆)失控的风险、降低由于第二控制器的参数配置不当带来的潜在交通事故的安全风险的前提下,使第二控制器调整后的参数更加适用于真实场景。In this implementation manner, the smart device is controlled to drive according to the third control data output by the second controller when the difference between the first control data and the second control data satisfies a preset condition Therefore, it is possible to make the adjusted parameters of the second controller more applicable under the premise of reducing the risk of loss of control of smart devices (such as vehicles) and reducing the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller. In the real scene.
在该实现方式中,若第一控制数据与第二控制数据之间的差异满足预设条件,则可以判定第二控制器的参数已较为可靠。In this implementation, if the difference between the first control data and the second control data satisfies the preset condition, it can be determined that the parameters of the second controller are relatively reliable.
在一种可能的实现方式中,所述第一控制器为不包含车辆动力学模型的控制器,所述第二控制器为包含车辆动力学模型的控制器。In a possible implementation manner, the first controller is a controller that does not include a vehicle dynamics model, and the second controller is a controller that includes a vehicle dynamics model.
例如,第一控制器可以为基于PI(P:Proportional,比例;I:Integral,积分)的控制器或者基于PID(P:Proportional,比例;I:Integral,积分;D:Derivative,微分)的控制器等,第二控制器可以为基于MPC(Model Predictive Control,模型预测控制)的控制器或者基于LQR(Linear Quadratic Regulator,线性二次型调节器)的控制器等。For example, the first controller may be a controller based on PI (P: Proportional; I: Integral) or a controller based on PID (P: Proportional; I: Integral; D: Derivative). The second controller may be a controller based on MPC (Model Predictive Control, model predictive control) or a controller based on LQR (Linear Quadratic Regulator, linear quadratic regulator).
在该实现方式中,第二控制器基于车辆动力学模型,即动力学自行车模型(Dynamic Bicycle Model)。车辆动力学模型能够动态建模车辆运动行为,通过一系列合理的假设(例如:小角度假设,模型基于误差(error)建模,比直接基于参考角度和参考位置建模更有利于模型线性化),将非线性模型简化为线性模型,该模型用于预测车辆未来有限时间内的行为或行驶轨迹。In this implementation, the second controller is based on a vehicle dynamics model, that is, a dynamic bicycle model (Dynamic Bicycle Model). The vehicle dynamics model can dynamically model the vehicle motion behavior, through a series of reasonable assumptions (for example: small angle assumptions, the model is based on error (error) modeling, which is more conducive to model linearization than directly based on the reference angle and reference position. ), the nonlinear model is simplified to a linear model, which is used to predict the behavior or trajectory of the vehicle in a limited time in the future.
基于上述实现方式,能够将不包含车辆动力学模型的控制器作为参考控制器,将包含车辆动力学模型的控制器作为被调控制器,准确、高效、低成本地为包含车辆动力学模型的控制器找到可靠的参数,由此在后续进一步对包含车辆动力学模型的控制器进行参数调整时,能够降低智能设备(例如车辆)失控的风险,降低由于包含车辆动力学模型的控制器的参数配置不当带来的潜在交通事故的安全风险,从而能够方便现场调试工程师进行大规模的实车控制器的性能测试工作。Based on the above implementation method, the controller that does not contain the vehicle dynamics model can be used as the reference controller, and the controller that contains the vehicle dynamics model can be used as the adjusted controller. The controller finds reliable parameters, so that when further parameter adjustments are made to the controller containing the vehicle dynamics model, the risk of loss of control of the smart device (such as a vehicle) can be reduced, and the parameters of the controller containing the vehicle dynamics model can be reduced. The safety risk of potential traffic accidents caused by improper configuration can facilitate on-site commissioning engineers to carry out large-scale performance testing of real vehicle controllers.
图2示出本公开实施例中的基于PID的控制器(PID控制器)的示意图。基于PID的控制器可以实现纵向速度闭环控制和横向位置闭环控制,从而实现对无人车进行自动驾驶。除了图2示出的反馈控制外,基于PID的控制器还包含前馈控制。如图2所示,基于PID的控制器可以基于轨迹规划模块输出的第一参考轨迹数据与车的第一状态数据之间的误差(error),输出第一控制数据,以控制车行驶。Fig. 2 shows a schematic diagram of a PID-based controller (PID controller) in an embodiment of the present disclosure. The PID-based controller can realize the longitudinal speed closed-loop control and the lateral position closed-loop control, so as to realize the automatic driving of the unmanned vehicle. In addition to the feedback control shown in Figure 2, the PID-based controller also includes feedforward control. As shown in FIG. 2, the PID-based controller may output first control data based on the error between the first reference trajectory data output by the trajectory planning module and the first state data of the car to control the driving of the car.
图3示出本公开实施例中的基于PID的控制器的核心组件的示意图。如图3所示,基于PID的控制器只需要调节3个参数就可以完成控制任务,这3个参数分别是比例项K p、积分项K i和微分项K d。在自动驾驶系统中,基于PI的控制器往往就可以满足系统的控制需求了,即,通过K p使自动驾驶系统立即响应,通过K i消除自动驾驶系统中的稳态误差。 Fig. 3 shows a schematic diagram of core components of a PID-based controller in an embodiment of the present disclosure. As shown in FIG. 3, only three parameters need to be adjusted based on the PID control task controller can be completed, the three parameters are proportional term K p, K i of the integral term and differential term K d. In an automatic driving system, PI-based controllers can often meet the control requirements of the system, that is, K p makes the automatic driving system respond immediately, and K i eliminates the steady-state error in the automatic driving system.
图4示出本公开实施例中通过基于PID的控制器的3个参数调节后的控制效果的示意图。其中,图4中的直线41为参考轨迹,42为无控制下的实际轨迹,43为在基于PID的控制器的控制下的实际轨迹。由于基于PID的控制器只需要调节K p和K i这两个参数就可以完成对无人车的自动控制,且很容易调试,因此,本公开实施例可以将基于PI的控制器作为参考控制器,用于指导包含车辆动力学模型的第二控制器进行参数配置。在本公开实施例中,可以通过手动调参为基于PI的控制器选择合适的参数,也可以采用相关技术中的自动调参方法为基于PI的控制器选择合适的参数。 FIG. 4 shows a schematic diagram of the control effect after adjusting the three parameters of the PID-based controller in the embodiment of the present disclosure. Among them, the straight line 41 in FIG. 4 is the reference trajectory, 42 is the actual trajectory under no control, and 43 is the actual trajectory under the control of the PID-based controller. Since the PID-based controller only needs to adjust the two parameters of K p and K i to complete the automatic control of the unmanned vehicle, and is easy to debug, the embodiment of the present disclosure can use the PI-based controller as a reference control The device is used to guide the second controller including the vehicle dynamics model to configure the parameters. In the embodiments of the present disclosure, appropriate parameters can be selected for the PI-based controller through manual parameter adjustment, or the automatic parameter adjustment method in the related art can be used to select appropriate parameters for the PI-based controller.
图5示出本公开实施例中的基于MPC的控制器(MPC控制器)的示意图。基于MPC的控制器可以实现纵向速度闭环控制和横向位置闭环控制,从而实现对无人车进行自动驾驶。除了图5示出的反馈控制外,基于MPC的控制器还包含前馈控制。如图5所示,基于MPC的控制器可以基于轨迹规划模块输出的第一参考轨迹数据与车的 第一状态数据之间的误差(error),输出第二控制数据,或者,可以基于轨迹规划模块输出的第二参考轨迹数据与车的第二状态数据之间的误差,输出第三控制数据,以对车进行控制。FIG. 5 shows a schematic diagram of an MPC-based controller (MPC controller) in an embodiment of the present disclosure. The MPC-based controller can realize the longitudinal speed closed-loop control and the lateral position closed-loop control, so as to realize the automatic driving of the unmanned vehicle. In addition to the feedback control shown in Figure 5, the MPC-based controller also includes feedforward control. As shown in FIG. 5, the MPC-based controller may output second control data based on the error between the first reference trajectory data output by the trajectory planning module and the first state data of the vehicle, or may be based on the trajectory planning The error between the second reference trajectory data output by the module and the second state data of the car, and the third control data is output to control the car.
图6示出本公开实施例中的基于MPC的控制器的核心组件的示意图。如图6所示,基于MPC的控制器包括车辆动力学模型和优化器这两个核心组件。其中,车辆动力学模型用于预测车辆未来可能的行驶轨迹;优化器解一个优化问题,从多条候选的预测轨迹中找到使目标函数J最小的轨迹,得到第二控制数据或者第三控制数据,从而确保基于MPC的控制器最大可能驱动车辆接近第一参考轨迹数据或者第二参考轨迹数据。Fig. 6 shows a schematic diagram of core components of an MPC-based controller in an embodiment of the present disclosure. As shown in Figure 6, the MPC-based controller includes two core components: a vehicle dynamics model and an optimizer. Among them, the vehicle dynamics model is used to predict the possible future trajectory of the vehicle; the optimizer solves an optimization problem, finds the trajectory that minimizes the objective function J from multiple candidate predicted trajectories, and obtains the second control data or the third control data , So as to ensure that the MPC-based controller can drive the vehicle close to the first reference trajectory data or the second reference trajectory data as much as possible.
图7示出本公开实施例的基于MPC的控制器中的车辆动力学模型的示意图。在图7中,71表示车,上面是车头,下面是车尾。根据第一参考轨迹数据或者第二参考轨迹数据中的参考轨迹上参考点的朝向与车头当前朝向之间的差异,可以得到转向误差e1;根据车的当前位置(例如车的几何中心点)与参考点的切线之间的最小距离,可以得到横向轨迹误差e2,例如,横向轨迹误差e2可以等于车的当前位置与参考点的切线之间的最小距离;根据第一参考轨迹数据或者第二参考轨迹数据中的参考速度与车的实际速度之间的差异,可以得到纵向速度(Lon Velocity)误差e3。在图7中,
Figure PCTCN2021086141-appb-000001
表示e1的微分,
Figure PCTCN2021086141-appb-000002
表示e1的二次微分,e2和e3与此类似。本公开实施例中的基于MPC的控制器基于车辆动力学模型,能够动态建模车辆运动行为,通过一系列合理的假设,将非线性模型简化为图7所示的线性模型,该模型用于预测车辆未来有限时间内的行为或行驶轨迹。在图7中,ST(steer)表示方向盘转向数据(例如方向盘旋转角度),TH(throttle)表示油门数据(例如占最大油门量的百分比),BR(brake)表示刹车数据(例如占最大刹车力度的百分比)。
FIG. 7 shows a schematic diagram of a vehicle dynamics model in an MPC-based controller of an embodiment of the present disclosure. In Figure 7, 71 represents a car, with the front of the car on the top and the rear of the car on the bottom. According to the difference between the orientation of the reference point on the reference trajectory in the first reference trajectory data or the second reference trajectory data and the current heading of the vehicle, the steering error e1 can be obtained; according to the current position of the vehicle (for example, the geometric center point of the vehicle) and The minimum distance between the tangents of the reference points can be used to obtain the lateral trajectory error e2. For example, the lateral trajectory error e2 can be equal to the minimum distance between the current position of the car and the tangent of the reference point; according to the first reference trajectory data or the second reference The difference between the reference speed in the trajectory data and the actual speed of the vehicle, the longitudinal speed (Lon Velocity) error e3 can be obtained. In Figure 7,
Figure PCTCN2021086141-appb-000001
Represents the differential of e1,
Figure PCTCN2021086141-appb-000002
Represents the second derivative of e1, e2 and e3 are similar. The MPC-based controller in the embodiments of the present disclosure is based on the vehicle dynamics model, which can dynamically model the vehicle motion behavior. Through a series of reasonable assumptions, the nonlinear model is simplified to the linear model shown in FIG. Predict the behavior or trajectory of the vehicle within a limited time in the future. In Figure 7, ST (steer) represents steering wheel steering data (such as steering wheel rotation angle), TH (throttle) represents throttle data (such as percentage of maximum throttle), BR (brake) represents braking data (such as maximum braking force) %).
图8C示出本公开实施例的基于MPC的控制器中的核心组件的目标函数优化的示意图。在图8C中,ΔST表示相邻的两个时刻之间ST(方向盘转向数据)的改变量,ΔTH表示相邻的两个时刻之间TH(油门数据)的改变量,ΔBR表示相邻的两个时刻之间BR(刹车数据)的改变量。图8C示出了目标函数
Figure PCTCN2021086141-appb-000003
Figure PCTCN2021086141-appb-000004
向量化后的目标函数为J=x TQx+Δu TRΔu。其中,
Figure PCTCN2021086141-appb-000005
u=[steer throttle/brake] T,Δu=[Δsteer Δthrottle/brake] T,Q=[q1 q2 q3 q4 q5 q6] T,R=[r1 r2] T。从向量化的目标函数中可以看到,基于MPC的控制器需要配置的参数包括8个,其中Q向量包含6个待配置参数,分别为q1、q2、q3、q4、q5和q6,R向量包含2个待配置参数,分别为r1和r2。图8A示出了车的预测轨迹在车道中的位置的示意图,图8A还示出了车道的中心线的位置和预测范围。其中,预测轨迹是执行预测出的控制动作序列(控制动作数据可以包括方向盘转向数据、油门数据、刹车数据、指示灯数据中的至少一项)而产生的轨迹。图8B示出了在t+1时刻到t+7时刻的横向轨迹误差cte t+1至cte t+7(即e2)的示意图,其中横坐标为时间,纵坐标为距离。相应地,t+1时刻到t+7时刻的朝向误差e1可以分别表示为he t+1至he t+7,t+1时刻到t+7时刻的纵向速度误差e3可以分别表示为ve t+1至ve t+7
FIG. 8C shows a schematic diagram of the objective function optimization of the core components in the MPC-based controller according to an embodiment of the present disclosure. In Figure 8C, ΔST represents the amount of change in ST (steering wheel steering data) between two adjacent moments, ΔTH represents the amount of change in TH (throttle data) between two adjacent moments, and ΔBR represents the amount of change between two adjacent times. The amount of change in BR (brake data) between times. Figure 8C shows the objective function
Figure PCTCN2021086141-appb-000003
Figure PCTCN2021086141-appb-000004
The objective function after vectorization is J=x T Qx+Δu T RΔu. in,
Figure PCTCN2021086141-appb-000005
u=[steer throttle/brake] T , Δu=[Δsteer Δthrottle/brake] T , Q=[q1 q2 q3 q4 q5 q6] T , R=[r1 r2] T. It can be seen from the vectorized objective function that the MPC-based controller needs to configure 8 parameters, of which the Q vector contains 6 parameters to be configured, namely q1, q2, q3, q4, q5 and q6, R vector Contains 2 parameters to be configured, namely r1 and r2. FIG. 8A shows a schematic diagram of the position of the predicted trajectory of the vehicle in the lane, and FIG. 8A also shows the position and the predicted range of the center line of the lane. The predicted trajectory is a trajectory generated by executing a predicted control action sequence (the control action data may include at least one of steering wheel steering data, accelerator data, brake data, and indicator light data). Fig. 8B shows a schematic diagram of the lateral trajectory error cte t+1 to cte t+7 (ie, e2) from time t+1 to time t+7, where the abscissa is time and the ordinate is distance. Correspondingly, the orientation error e1 from time t+1 to t+7 can be expressed as he t+1 to he t+7 , and the longitudinal velocity error e3 from time t+1 to t+7 can be expressed as ve t +1 to ve t+7 .
图9示出本公开实施例中基于MPC的控制器的优化过程的示意图。如图9所示,基于MPC的控制器的参数配置的目标是使J最小。配置Q和R后,通过参数调整,基于MPC的控制器即可按照图9所示的方式对潜在的控制动作序列进行轨迹预测和评估(计算目标函数J),从而得到最优的控制动作序列作为第二控制数据或者第三控制数据。图9示出了J=50、J=30和J=10时,车的预测轨迹的示意图。如图9所示,在J=10时,车的预测轨迹最接近于车道的中心线,因此,J=10对应的控制动作序列为最优的控制动作序列。Fig. 9 shows a schematic diagram of an optimization process of an MPC-based controller in an embodiment of the present disclosure. As shown in Figure 9, the goal of the parameter configuration of the MPC-based controller is to minimize J. After configuring Q and R, through parameter adjustment, the MPC-based controller can predict and evaluate the potential control action sequence (calculate the objective function J) according to the method shown in Figure 9 to obtain the optimal control action sequence As the second control data or the third control data. Fig. 9 shows a schematic diagram of the predicted trajectory of the vehicle when J=50, J=30, and J=10. As shown in Fig. 9, when J=10, the predicted trajectory of the vehicle is closest to the center line of the lane. Therefore, the control action sequence corresponding to J=10 is the optimal control action sequence.
通常情况下,包含车辆动力学模型的控制器的待调参数量比不包含车辆动力学 模型的控制器的待调参数量大。例如,基于PI的控制器的待调参数为2个,分别为比例项(K p)和积分项(K i)。虽然无模型的PI控制器较为简单、易于调试,但控制不够精准,而基于MPC的控制器等包含车辆动力学模型的控制器建模了车辆动力学行为,能够更精准地刻画车辆未来运动轨迹。本公开实施例可以采用包含车辆动力学模型的控制器(第二控制器)对无人车进行行为建模,进而获得更精准的自动控制效果。然而,包含车辆动力学模型的控制器通常包含多个参数,例如,基于MPC的控制器包含8个待调参数,其中6个待调参数用于调节系统状态(朝向误差、横向轨迹误差、纵向速度误差),2个待调参数用于调节系统输入(方向盘转向角度,油门量或者刹车量)。8个参数的调试难度,往往高于2个参数的调试难度,因此,本申请提供的方法,将PID控制器作为参考控制器,根据第一控制数据和第二控制数据来配置MPC控制器的待调参数。在MPC控制器待调参数未调整好之前,仍使用PID控制器作为当前控制器控制无人车的行驶,可以减少使用未调整好的MPC控制器可能导致的潜在的交通事故。 Generally, the amount of parameters to be adjusted for a controller that includes a vehicle dynamics model is larger than that of a controller that does not include a vehicle dynamics model. For example, the PI-based controller has two parameters to be adjusted, namely the proportional term (K p ) and the integral term (K i ). Although model-free PI controllers are relatively simple and easy to debug, the control is not precise enough, while controllers containing vehicle dynamics models such as MPC-based controllers model vehicle dynamics behavior and can more accurately describe the vehicle's future motion trajectory . In the embodiments of the present disclosure, a controller (a second controller) containing a vehicle dynamics model may be used to model the behavior of the unmanned vehicle, thereby obtaining a more accurate automatic control effect. However, the controller containing the vehicle dynamics model usually contains multiple parameters. For example, the MPC-based controller contains 8 parameters to be adjusted, of which 6 parameters are used to adjust the system state (heading error, lateral trajectory error, longitudinal Speed error), 2 parameters to be adjusted are used to adjust the system input (steering wheel steering angle, throttle amount or brake amount). The debugging difficulty of 8 parameters is often higher than that of 2 parameters. Therefore, the method provided in this application uses the PID controller as the reference controller, and configures the MPC controller according to the first control data and the second control data. Parameters to be adjusted. Before the parameters to be adjusted of the MPC controller are adjusted, the PID controller is still used as the current controller to control the driving of the unmanned vehicle, which can reduce the potential traffic accidents that may be caused by using the unadjusted MPC controller.
图10示出本公开实施例提供的自动驾驶系统的总体架构的示意图。如图10所示,由轨迹规划模块输出参考轨迹数据(例如第一参考轨迹数据、第二参考轨迹数据),并通过总线(读总线)读取车的状态数据(例如第一状态数据、第二状态数据);控制器(第一控制器和/或第二控制器)根据参考轨迹数据与车的状态数据之间的差异,输出控制数据(第一控制器输出第一控制数据,第二控制器输出第二控制数据和/或第三控制数据),并通过总线(写总线)将控制数据写入车,从而实现对车的闭环控制,驱动车行驶。FIG. 10 shows a schematic diagram of the overall architecture of an automatic driving system provided by an embodiment of the present disclosure. As shown in Figure 10, the trajectory planning module outputs reference trajectory data (such as the first reference trajectory data, the second reference trajectory data), and reads the state data of the car (such as the first state data, the first state data, and the first state data) through the bus (read bus). Two status data); the controller (the first controller and/or the second controller) outputs the control data according to the difference between the reference trajectory data and the state data of the car (the first controller outputs the first control data, the second The controller outputs the second control data and/or the third control data), and writes the control data into the car through the bus (write bus), so as to realize the closed-loop control of the car and drive the car to travel.
图11示出本公开实施例中利用参考控制器指导被调控制器进行参数配置的示意图。如图11所示,参考控制器可以为基于PID的控制器等,被调控制器可以为基于LQR的控制器或者基于MPC的控制器等,参考控制器可以指导被调控制器配置参数(例如Q向量、R向量等)。例如,可以根据第一控制数据与第二控制数据中的方向盘转向数据的差异,调节r1;根据第一控制数据与第二控制数据中的油门数据或者刹车数据的差异,调节r2;根据朝向误差e1,调节q1与q2;根据横向轨迹误差e2,调节q3和q4;根据纵向速度误差e3,调节q5和q6。FIG. 11 shows a schematic diagram of using a reference controller to guide the adjusted controller to perform parameter configuration in an embodiment of the present disclosure. As shown in Figure 11, the reference controller can be a PID-based controller, etc., the adjusted controller can be an LQR-based controller or an MPC-based controller, etc., and the reference controller can guide the adjusted controller to configure parameters (such as Q vector, R vector, etc.). For example, r1 can be adjusted according to the difference between the steering wheel steering data in the first control data and the second control data; r2 can be adjusted according to the difference between the throttle data or the brake data in the first control data and the second control data; according to the heading error e1, adjust q1 and q2; adjust q3 and q4 according to lateral trajectory error e2; adjust q5 and q6 according to longitudinal velocity error e3.
图12示出本公开实施例提供的控制器的参数配置流程的示意图。如图12所示,自动驾驶系统启动后,第一控制器(不包含车辆动力学模型的控制器,例如基于PI的控制器)与第二控制器(包含车辆动力学模型的控制器,例如基于LQR的控制器或者基于MPC的控制器)可以同时开始工作。打开切换开关,选择使用第一控制器作为无人车的当前控制器,即,将第一控制器输出的第一控制数据下发到车辆执行器,驱动无人车行驶。在将第一控制器作为无人车的当前控制器的过程中,可以通过调整比例项和积分项的值,使第一控制器完成对无人车在直线及弯道的准确控制,即,使第一控制器输出的控制数据能够驱动无人车正确跟踪参考轨迹。一旦第一控制器成功适配到自动驾驶系统(即在第一控制器的控制下无人车能够正确跟踪参考轨迹)后,其输出的第一控制数据可以认为是参考控制数据,该参考控制数据可以使无人车较为准确地完成常规的自动驾驶任务。FIG. 12 shows a schematic diagram of a parameter configuration process of a controller provided by an embodiment of the present disclosure. As shown in Figure 12, after the autopilot system is started, the first controller (controllers that do not include vehicle dynamics models, such as PI-based controllers) and the second controller (controllers that include vehicle dynamics models, such as LQR-based controllers or MPC-based controllers) can start working at the same time. Turn on the switch, select the first controller as the current controller of the unmanned vehicle, that is, send the first control data output by the first controller to the vehicle actuator to drive the unmanned vehicle to drive. In the process of using the first controller as the current controller of the unmanned vehicle, the first controller can complete the accurate control of the unmanned vehicle in straight lines and curves by adjusting the values of the proportional term and the integral term, that is, The control data output by the first controller can drive the unmanned vehicle to correctly track the reference trajectory. Once the first controller is successfully adapted to the automatic driving system (that is, the unmanned vehicle can correctly track the reference trajectory under the control of the first controller), the first control data output by it can be regarded as the reference control data, and the reference control The data can enable unmanned vehicles to complete routine autonomous driving tasks more accurately.
在第一控制器成功适配到自动驾驶系统后,可以打开比较器(Comparer),通过比较器比较第一控制器输出的第一控制数据与第二控制器输出的第二控制数据之间的差异,并根据第一控制数据与第二控制数据之间的差异,配置第二控制器的参数,以使配置后的第二控制器输出的第二控制数据与第一控制器输出的第一控制数据之间的差异最小。若第一控制数据与第二控制数据之间的差异满足预设条件,则可以判定第二控制器已获得了较可靠的参数。作为示例,在基于MPC的控制器的参数为Q=[0.0,0.0,1,0,0,1] T,R=[0.4,0.8] T时,基于MPC的控制器输出的第二控制数据与基于PI的控制器输出的第一控制数据基本一致,也就是说,可以利用该参数的基于MPC的控 制器完成与基于PI的控制器一样的轨迹跟踪效果。 After the first controller is successfully adapted to the automatic driving system, the comparator can be turned on, and the comparator can be used to compare the first control data output by the first controller and the second control data output by the second controller. According to the difference between the first control data and the second control data, configure the parameters of the second controller so that the second control data output by the second controller after the configuration is the same as the first control data output by the first controller. The difference between the control data is minimal. If the difference between the first control data and the second control data satisfies the preset condition, it can be determined that the second controller has obtained more reliable parameters. As an example, when the parameters of the MPC-based controller are Q=[0.0,0.0,1,0,0,1] T and R=[0.4,0.8] T , the second control data output by the MPC-based controller It is basically the same as the first control data output by the PI-based controller, that is, the MPC-based controller with this parameter can be used to achieve the same trajectory tracking effect as the PI-based controller.
图13a至图13d示出本公开实施例中基于MPC的控制器的控制结果的示意图。其中,图13a示出参考轨迹与在基于MPC的控制器的控制下无人车的实际轨迹的示意图。图13a中采用UTM(Universal Transverse Mercator grid system,通用横墨卡托格网系统)坐标系。图13b示出参考纵向速度与在基于MPC的控制器的控制下无人车的实际纵向速度相对于距离的示意图。图13c示出车头的参考朝向与在基于MPC的控制器的控制下无人车的车头实际朝向的示意图。图13d示出参考的方向盘转向角度与在基于MPC的控制器的控制下无人车的实际的方向盘转向角度的示意图。其中,图13b至图13d中的距离可以表示相对于自动驾驶任务的起点的距离。如图13a至图13d所示,基于MPC的控制器基于参数(Q=[0.0,0.0,1,0,0,1] T,R=[0.4,0.8] T)完成了自动驾驶,从评估数据来看,该参数能够确保基于MPC的控制器安全地完成基本的自动驾驶任务,但性能有待进一步提升。 13a to 13d show schematic diagrams of control results of the MPC-based controller in an embodiment of the present disclosure. Wherein, FIG. 13a shows a schematic diagram of the reference trajectory and the actual trajectory of the unmanned vehicle under the control of the MPC-based controller. In Figure 13a, the UTM (Universal Transverse Mercator grid system) coordinate system is used. Fig. 13b shows a schematic diagram of the reference longitudinal speed and the actual longitudinal speed of the unmanned vehicle with respect to the distance under the control of the MPC-based controller. Fig. 13c shows a schematic diagram of the reference heading of the vehicle head and the actual heading of the unmanned vehicle under the control of the MPC-based controller. Fig. 13d shows a schematic diagram of the reference steering wheel steering angle and the actual steering wheel steering angle of the unmanned vehicle under the control of the MPC-based controller. Wherein, the distance in FIG. 13b to FIG. 13d may represent the distance relative to the starting point of the automatic driving task. As shown in Figure 13a to Figure 13d, the MPC-based controller has completed the automatic driving based on the parameters (Q=[0.0,0.0,1,0,0,1] T , R=[0.4,0.8] T). From the data point of view, this parameter can ensure that the MPC-based controller safely completes the basic autonomous driving tasks, but the performance needs to be further improved.
图14示出本公开实施例中在基于MPC的控制器的控制下的横向轨迹误差(CTE,Cross Track Error)、朝向误差以及纵向速度误差随时间变化的示意图。在图14中,横坐标为时间,单位为秒。如图14所示,横向轨迹误差较大,也就是说,基于MPC的控制器的横向控制不够准确,会导致无人车偏离车道中线行驶。为了使基于MPC的控制器的控制更精准,可以对基于MPC的控制器进行进一步的参数调整。在本公开实施例中,在根据第一控制数据和第二控制数据配置第二控制器的参数之后,可以通过切换开关将第二控制器作为无人车的当前控制器,通过第二控制器对无人车进行控制,根据所述第二参考轨迹数据与实际轨迹数据,对第二控制器的参数进行进一步地调整,以使第二控制器更准确地适配到自动驾驶系统。针对横向轨迹误差较大的问题,可以对基于MPC的控制器的参数(Q=[0.0,0.0,1,0,0,1] T,R=[0.4,0.8] T)进行调整,示例性的,调整为Q=[0.03,0.0,1,0,0,1] T,R=[0.4,0.8] T,即加大了对横向轨迹误差的惩罚力度,从而使得基于MPC的控制器可以控制无人车更靠近车道中线行驶。 FIG. 14 shows a schematic diagram of the cross track error (CTE, Cross Track Error), heading error, and longitudinal speed error over time under the control of an MPC-based controller in an embodiment of the present disclosure. In Figure 14, the abscissa is time and the unit is seconds. As shown in Figure 14, the lateral trajectory error is large, that is, the lateral control of the MPC-based controller is not accurate enough, which will cause the unmanned vehicle to deviate from the center line of the lane. In order to make the control of the MPC-based controller more precise, further parameter adjustments can be made to the MPC-based controller. In the embodiment of the present disclosure, after the parameters of the second controller are configured according to the first control data and the second control data, the second controller can be used as the current controller of the unmanned vehicle through a switch, and the second controller The unmanned vehicle is controlled, and the parameters of the second controller are further adjusted according to the second reference trajectory data and the actual trajectory data, so that the second controller is more accurately adapted to the automatic driving system. For the problem of large lateral trajectory error, the parameters of the MPC-based controller (Q=[0.0,0.0,1,0,0,1] T , R=[0.4,0.8] T ) can be adjusted. Yes, adjusted to Q=[0.03,0.0,1,0,0,1] T , R=[0.4,0.8] T , which increases the penalty for lateral trajectory errors, so that MPC-based controllers can Control the unmanned vehicle to drive closer to the center line of the lane.
图15示出本公开实施例中在对基于MPC的控制器进行参数调整后,在基于MPC的控制器的控制下的横向轨迹误差、朝向误差以及纵向速度误差随时间变化的示意图。在图15所示的示例中,在对基于MPC的控制器进行参数调整后,横向轨迹误差相对参数调整前下降了50%左右。如图13d所示,基于MPC的控制器输出的实际方向盘转向角度比参考的方向盘转向角度的波动更加频繁,方向转向不平滑,这会带来不舒服的驾驶体验。可以进一步调整基于MPC的控制器的参数,使其输出的控制数据中的方向盘转向角度的变化更加平滑。FIG. 15 shows a schematic diagram of the lateral trajectory error, the heading error, and the longitudinal speed error changing with time under the control of the MPC-based controller after parameter adjustment of the MPC-based controller in an embodiment of the present disclosure. In the example shown in FIG. 15, after the parameter adjustment of the MPC-based controller, the lateral trajectory error is reduced by about 50% from before the parameter adjustment. As shown in Figure 13d, the actual steering angle of the steering wheel output by the MPC-based controller fluctuates more frequently than the reference steering angle of the steering wheel, and the direction steering is not smooth, which will bring an uncomfortable driving experience. The parameters of the MPC-based controller can be further adjusted to make the change of the steering angle of the steering wheel in the output control data more smooth.
在一个例子中,可以选用自动档轿车作为实验平台,平均车速为20km/h,测试路径是先直行,然后左转直行,再右转直行。In one example, an automatic transmission car can be used as the experimental platform. The average speed is 20km/h. The test path is to go straight first, then turn left and go straight, then turn right and go straight.
本公开实施例可以应用于自动驾驶系统、驾驶辅助系统、自动泊车系统等应用场景中,本公开实施例对此不作限定。The embodiments of the present disclosure may be applied to application scenarios such as automatic driving systems, driving assistance systems, and automatic parking systems, which are not limited in the embodiments of the present disclosure.
在本公开实施例中,通过获取智能设备的多个控制器各自输出的控制数据,其中,所述多个控制器包括第一控制器和第二控制器,所述第一控制器输出的控制数据包括第一控制数据,所述第二控制器输出的控制数据包括第二控制数据,并根据所述第一控制数据与所述第二控制数据,配置所述第二控制器的参数,由此将第一控制器作为参考控制器,将第二控制器作为被调控制器,准确、高效、低成本地为第二控制器找到可靠的参数,由此在后续进一步对第二控制器进行参数调整时,能够降低智能设备(例如车辆)失控的风险,降低由于第二控制器的参数配置不当带来的潜在交通事故的安全风险。In the embodiment of the present disclosure, the control data output by each of the multiple controllers of the smart device is acquired, wherein the multiple controllers include a first controller and a second controller, and the control output by the first controller is The data includes first control data, the control data output by the second controller includes second control data, and the parameters of the second controller are configured according to the first control data and the second control data, and the parameters of the second controller are configured by This uses the first controller as the reference controller and the second controller as the adjusted controller to find reliable parameters for the second controller accurately, efficiently, and at low cost, so that the second controller will be further performed in the follow-up. When the parameters are adjusted, the risk of loss of control of smart devices (for example, vehicles) can be reduced, and the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller can be reduced.
可以理解,本公开提及的上述各个方法实施例,在不违背原理逻辑的情况下, 均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。It can be understood that, without violating the principle and logic, the various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment, which is limited in length and will not be repeated in this disclosure.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above-mentioned methods of the specific implementation, the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possibility. The inner logic is determined.
此外,本公开还提供了参数配置装置、电子设备、计算机可读存储介质、程序,上述均可用来实现本公开提供的任一种参数配置方法,相应技术方案和描述和参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides parameter configuration devices, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any parameter configuration method provided in the present disclosure. For the corresponding technical solutions and descriptions, refer to the corresponding records in the method section. ,No longer.
图16示出本公开实施例提供的参数配置装置的框图。所述装置应用于智能设备,所述智能设备包括多个控制器,所述多个控制器包括第一控制器和第二控制器。如图16所示,所述参数配置装置包括:第一获取模块21,用于获取所述多个控制器各自输出的控制数据,所述第一控制器输出的控制数据包括第一控制数据,所述第二控制器输出的控制数据包括第二控制数据;配置模块22,用于根据所述第一控制数据与所述第二控制数据,配置所述第二控制器的参数。FIG. 16 shows a block diagram of a parameter configuration device provided by an embodiment of the present disclosure. The device is applied to a smart device, the smart device includes a plurality of controllers, and the plurality of controllers includes a first controller and a second controller. As shown in FIG. 16, the parameter configuration device includes: a first obtaining module 21, configured to obtain control data output by each of the multiple controllers, and the control data output by the first controller includes first control data, The control data output by the second controller includes second control data; the configuration module 22 is configured to configure the parameters of the second controller according to the first control data and the second control data.
在一种可能的实现方式中,所述第一获取模块21用于:获取第一参考轨迹数据,以及所述智能设备处于第一模式的第一状态数据;通过所述多个控制器,根据所述第一参考轨迹数据以及所述第一状态数据,生成所述控制数据。In a possible implementation manner, the first acquisition module 21 is configured to: acquire first reference trajectory data and first state data of the smart device in the first mode; through the multiple controllers, according to The first reference trajectory data and the first state data generate the control data.
在一种可能的实现方式中,所述装置还包括:第一控制模块,用于根据所述第一控制数据,控制处于第一模式的所述智能设备行驶。In a possible implementation manner, the device further includes: a first control module, configured to control the smart device in the first mode to drive according to the first control data.
在一种可能的实现方式中,所述装置还包括:第二获取模块,用于获取第二参考轨迹数据,以及所述智能设备处于第一模式的第二状态数据;生成模块,用于通过所述第二控制器,根据所述第二参考轨迹数据以及所述第二状态数据,生成第三控制数据;第二控制模块,用于根据所述第三控制数据,控制处于第一模式的所述智能设备行驶。In a possible implementation manner, the device further includes: a second acquisition module, configured to acquire second reference trajectory data, and second state data of the smart device in the first mode; and a generating module, configured to pass The second controller generates third control data according to the second reference trajectory data and the second status data; the second control module is configured to control the first mode according to the third control data The smart device travels.
在一种可能的实现方式中,所述装置还包括:第三获取模块,用于获取所述智能设备处于所述第一模式行驶,产生的实际轨迹数据;调整模块,用于根据所述第二参考轨迹数据与所述实际轨迹数据,调整所述第二控制器的参数。In a possible implementation manner, the apparatus further includes: a third acquisition module, configured to acquire actual trajectory data generated by the smart device when driving in the first mode; and an adjustment module, configured according to the first mode Second, adjust the parameters of the second controller by referring to the trajectory data and the actual trajectory data.
在一种可能的实现方式中,所述第一控制器为不包含车辆动力学模型的控制器,所述第二控制器为包含车辆动力学模型的控制器。In a possible implementation manner, the first controller is a controller that does not include a vehicle dynamics model, and the second controller is a controller that includes a vehicle dynamics model.
在一种可能的实现方式中,所述智能设备包括智能移动设备,所述控制数据包括方向盘转向数据、油门数据、刹车数据、指示灯数据中的至少一项。In a possible implementation manner, the smart device includes a smart mobile device, and the control data includes at least one of steering wheel steering data, accelerator data, brake data, and indicator light data.
在一种可能的实现方式中,所述第二控制模块用于:响应于所述第一控制数据与所述第二控制数据之间的差异满足预设条件,根据所述第三控制数据,控制处于第一模式的所述智能设备行驶;其中,所述预设条件包括所述第一控制数据中第一目标控制数据与所述第二控制数据中第二目标控制数据之间的差值属于阈值范围,所述第一目标控制数据与所述第二目标控制数据的类型相同。In a possible implementation manner, the second control module is configured to: in response to the difference between the first control data and the second control data satisfying a preset condition, according to the third control data, Control the driving of the smart device in the first mode; wherein the preset condition includes the difference between the first target control data in the first control data and the second target control data in the second control data Belonging to a threshold value range, the first target control data and the second target control data are of the same type.
在本公开实施例中,通过获取智能设备的控制器输出的控制数据,其中,所述控制器包括第一控制器和第二控制器,所述第一控制器输出的控制数据包括第一控制数据,所述第二控制器输出的控制数据包括第二控制数据,并根据所述第一控制数据与所述第二控制数据,配置所述第二控制器的参数。由此将第一控制器作为参考控制器,将第二控制器作为被调控制器,准确、高效、低成本地为第二控制器找到可靠的参数。并且,由于第二控制器的配置基于第一控制器的实际输出的第一控制数据来实现,而在第二控制器完成配置之前,通常可以使用第一控制数据来控制智能设备,因此,可以使第二控制器的参数更适应于智能设备当前所处的应用场景。此外,在后续进一步对第二控 制器进行参数调整的过程中,能够降低智能设备(例如车辆)失控的风险,降低由于第二控制器的参数配置不当带来的潜在交通事故的安全风险。In the embodiment of the present disclosure, the control data output by the controller of the smart device is acquired, wherein the controller includes a first controller and a second controller, and the control data output by the first controller includes a first control Data, the control data output by the second controller includes second control data, and the parameters of the second controller are configured according to the first control data and the second control data. Therefore, the first controller is used as the reference controller, and the second controller is used as the adjusted controller to find reliable parameters for the second controller accurately, efficiently, and at low cost. Moreover, because the configuration of the second controller is implemented based on the first control data actually output by the first controller, the first control data can usually be used to control the smart device before the second controller completes the configuration. Therefore, The parameters of the second controller are more adapted to the current application scenario of the smart device. In addition, in the subsequent process of further parameter adjustment of the second controller, the risk of loss of control of the smart device (such as a vehicle) can be reduced, and the safety risk of potential traffic accidents caused by improper parameter configuration of the second controller can be reduced.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments. For specific implementation, refer to the description of the above method embodiments. For brevity, here No longer.
本公开实施例还提供一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。其中,所述计算机可读存储介质可以是非易失性计算机可读存储介质,或者可以是易失性计算机可读存储介质。The embodiments of the present disclosure also provide a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the foregoing method when executed by a processor. Wherein, the computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.
本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,当计算机可读代码在设备上运行时,设备中的处理器执行用于实现如上任一实施例提供的参数配置方法的指令。The embodiments of the present disclosure also provide a computer program product, including computer-readable code. When the computer-readable code runs on the device, the processor in the device executes the method for realizing the parameter configuration method provided by any of the above embodiments. instruction.
本公开实施例还提供了另一种计算机程序产品,用于存储计算机可读指令,指令被执行时使得计算机执行上述任一实施例提供的参数配置方法的操作。The embodiments of the present disclosure also provide another computer program product for storing computer-readable instructions, which when executed, cause the computer to perform the operation of the parameter configuration method provided in any of the foregoing embodiments.
本公开实施例还提供一种电子设备,包括:一个或多个处理器;用于存储可执行指令的存储器;其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行上述方法。An embodiment of the present disclosure also provides an electronic device, including: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to call the executable stored in the memory Instructions to perform the above method.
电子设备可以被提供为终端、服务器或其它形态的设备。The electronic device can be provided as a terminal, server or other form of device.
图17示出本公开实施例提供的一种电子设备800的框图。例如,电子设备800可以是车载设备,移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。FIG. 17 shows a block diagram of an electronic device 800 provided by an embodiment of the present disclosure. For example, the electronic device 800 may be a vehicle-mounted device, a mobile phone, a computer, a digital broadcasting terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and other terminals.
参照图17,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。17, the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, and a sensor component 814 , And communication component 816.
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The processing component 802 generally controls the overall operations of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the foregoing method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 804 is configured to store various types of data to support operations in the electronic device 800. Examples of these data include instructions for any application or method to operate on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable and Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。The power supply component 806 provides power for various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with the generation, management, and distribution of power for the electronic device 800.
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压 力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor can not only sense the boundary of the touch or slide action, but also detect the duration and pressure related to the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module. The above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: home button, volume button, start button, and lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到电子设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor component 814 includes one or more sensors for providing the electronic device 800 with various aspects of state evaluation. For example, the sensor component 814 can detect the on/off status of the electronic device 800 and the relative positioning of the components. For example, the component is the display and the keypad of the electronic device 800. The sensor component 814 can also detect the electronic device 800 or the electronic device 800. The position of the component changes, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration/deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact. The sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如Wi-Fi、2G、3G、4G/LTE、5G或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G/LTE, 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field-available A programmable gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components are implemented to implement the above methods.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器804,上述计算机程序指令可由电子设备800的处理器820执行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as the memory 804 including computer program instructions, which can be executed by the processor 820 of the electronic device 800 to complete the foregoing method.
图18示出本公开实施例提供的一种电子设备1900的框图。例如,电子设备1900可以被提供为一服务器。参照图18,电子设备1900包括处理组件1922,其进一步包括一个或多个处理器,以及由存储器1932所代表的存储器资源,用于存储可由处理组件1922的执行的指令,例如应用程序。存储器1932中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1922被配置为执行指令,以执行上述方法。FIG. 18 shows a block diagram of an electronic device 1900 provided by an embodiment of the present disclosure. For example, the electronic device 1900 may be provided as a server. 18, the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932, for storing instructions executable by the processing component 1922, such as application programs. The application program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above-described methods.
电子设备1900还可以包括一个电源组件1926被配置为执行电子设备1900的电源管理,一个有线或无线网络接口1950被配置为将电子设备1900连接到网络,和一个 输入输出(I/O)接口1958。电子设备1900可以操作基于存储在存储器1932的操作系统,例如
Figure PCTCN2021086141-appb-000006
或类似。
The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to the network, and an input output (I/O) interface 1958 . The electronic device 1900 can operate based on an operating system stored in the memory 1932, such as
Figure PCTCN2021086141-appb-000006
Or similar.
在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1932,上述计算机程序指令可由电子设备1900的处理组件1922执行以完成上述方法。In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as the memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to complete the foregoing method.
本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium loaded with computer-readable program instructions for enabling a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。The computer-readable storage medium may be a tangible device that can hold and store instructions used by the instruction execution device. The computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) Or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a printer with instructions stored thereon The protruding structure in the hole card or the groove, and any suitable combination of the above. The computer-readable storage medium used here is not interpreted as the instantaneous signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (for example, light pulses through fiber optic cables), or through wires Transmission of electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to various computing/processing devices, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。The computer program instructions used to perform the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or in one or more programming languages. Source code or object code written in any combination, the programming language includes object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. Computer-readable program instructions can be executed entirely on the user's computer, partly on the user's computer, executed as a stand-alone software package, partly on the user's computer and partly executed on a remote computer, or entirely on the remote computer or server implement. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network-including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to connect to the user's computer) connect). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), can be customized by using the status information of the computer-readable program instructions. The computer-readable program instructions are executed to realize various aspects of the present disclosure.
这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Here, various aspects of the present disclosure are described with reference to flowcharts and/or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each block of the flowcharts and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams, can be implemented by computer-readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多 个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine that makes these instructions when executed by the processor of the computer or other programmable data processing device , A device that implements the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams is produced. It is also possible to store these computer-readable program instructions in a computer-readable storage medium. These instructions make computers, programmable data processing apparatuses, and/or other devices work in a specific manner, so that the computer-readable medium storing the instructions includes An article of manufacture, which includes instructions for implementing various aspects of the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions on a computer, other programmable data processing device, or other equipment, so that a series of operation steps are executed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , So that the instructions executed on the computer, other programmable data processing apparatus, or other equipment realize the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the accompanying drawings show the possible implementation architecture, functions, and operations of the system, method, and computer program product according to multiple embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of an instruction, and the module, program segment, or part of an instruction contains one or more components for realizing the specified logical function. Executable instructions. In some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be specifically implemented by hardware, software, or a combination thereof. In an optional embodiment, the computer program product is specifically embodied as a computer storage medium. In another optional embodiment, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc. Wait.
以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Without departing from the scope and spirit of the illustrated embodiments, many modifications and changes are obvious to those of ordinary skill in the art. The choice of terms used herein is intended to best explain the principles, practical applications, or improvements to technologies in the market of the embodiments, or to enable other ordinary skilled in the art to understand the embodiments disclosed herein.

Claims (12)

  1. 一种参数配置方法,其特征在于,所述方法应用于智能设备,所述智能设备包括多个控制器,所述多个控制器至少包括第一控制器和第二控制器,所述方法包括:A parameter configuration method, characterized in that the method is applied to a smart device, the smart device includes a plurality of controllers, the plurality of controllers include at least a first controller and a second controller, and the method includes :
    获取所述多个控制器各自输出的控制数据,所述第一控制器输出的控制数据包括第一控制数据,所述第二控制器输出的控制数据包括第二控制数据;Acquiring control data output by each of the multiple controllers, where the control data output by the first controller includes first control data, and the control data output by the second controller includes second control data;
    根据所述第一控制数据与所述第二控制数据,配置所述第二控制器的参数。According to the first control data and the second control data, the parameters of the second controller are configured.
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述多个控制器各自输出的控制数据,包括:The method according to claim 1, wherein the acquiring control data output by each of the multiple controllers comprises:
    获取第一参考轨迹数据,以及所述智能设备处于第一模式的第一状态数据;Acquiring first reference trajectory data and first state data of the smart device in the first mode;
    通过所述多个控制器,根据所述第一参考轨迹数据以及所述第一状态数据,生成各自的所述控制数据。Through the plurality of controllers, the respective control data are generated according to the first reference trajectory data and the first state data.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    根据所述第一控制数据,控制处于第一模式的所述智能设备行驶。According to the first control data, the smart device in the first mode is controlled to drive.
  4. 根据权利要求1至3中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    获取第二参考轨迹数据,以及所述智能设备处于第一模式的第二状态数据;Acquiring second reference trajectory data and second state data of the smart device in the first mode;
    通过所述第二控制器,根据所述第二参考轨迹数据以及所述第二状态数据,生成第三控制数据;Generating third control data by the second controller according to the second reference trajectory data and the second state data;
    根据所述第三控制数据,控制处于第一模式的所述智能设备行驶。According to the third control data, the smart device in the first mode is controlled to travel.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    获取所述智能设备处于所述第一模式行驶产生的实际轨迹数据;Acquiring actual trajectory data generated by the smart device driving in the first mode;
    根据所述第二参考轨迹数据与所述实际轨迹数据,调整所述第二控制器的参数。Adjusting the parameters of the second controller according to the second reference trajectory data and the actual trajectory data.
  6. 根据权利要求1至5中任意一项所述的方法,其特征在于,所述第一控制器为不包含车辆动力学模型的控制器,所述第二控制器为包含车辆动力学模型的控制器。The method according to any one of claims 1 to 5, wherein the first controller is a controller that does not include a vehicle dynamics model, and the second controller is a control that includes a vehicle dynamics model Device.
  7. 根据权利要求1至6中任意一项所述的方法,其特征在于,所述智能设备包括智能移动设备,所述控制数据包括方向盘转向数据、油门数据、刹车数据、指示灯数据中的至少一项。The method according to any one of claims 1 to 6, wherein the smart device includes a smart mobile device, and the control data includes at least one of steering wheel steering data, throttle data, brake data, and indicator light data. item.
  8. 根据权利要求4所述的方法,其特征在于,所述根据所述第三控制数据,控制处于第一模式的所述智能设备行驶,包括:The method according to claim 4, wherein the controlling the smart device in the first mode to drive according to the third control data comprises:
    响应于所述第一控制数据与所述第二控制数据之间的差异满足预设条件,根据所述第三控制数据,控制处于第一模式的所述智能设备行驶;In response to the difference between the first control data and the second control data satisfying a preset condition, controlling the smart device in the first mode to drive according to the third control data;
    其中,所述预设条件包括所述第一控制数据中第一目标控制数据与所述第二控制数据中第二目标控制数据之间的差值属于阈值范围,所述第一目标控制数据与所述第二目标控制数据的类型相同。Wherein, the preset condition includes that the difference between the first target control data in the first control data and the second target control data in the second control data belongs to a threshold range, and the first target control data is equal to The types of the second target control data are the same.
  9. 一种参数配置装置,其特征在于,所述装置应用于智能设备,所述智能设备包括多个控制器,所述多个控制器至少包括第一控制器和第二控制器,所述装置包括:A parameter configuration device, characterized in that the device is applied to a smart device, the smart device includes a plurality of controllers, the plurality of controllers include at least a first controller and a second controller, and the device includes :
    第一获取模块,用于获取所述多个控制器各自输出的控制数据,所述第一控制器输出的控制数据包括第一控制数据,所述第二控制器输出的控制数据包括第二控制数据;The first acquisition module is configured to acquire the control data output by each of the plurality of controllers, the control data output by the first controller includes first control data, and the control data output by the second controller includes second control data;
    配置模块,用于根据所述第一控制数据与所述第二控制数据,配置所述第二控制器的参数。The configuration module is used to configure the parameters of the second controller according to the first control data and the second control data.
  10. 一种电子设备,其特征在于,包括:一个或多个处理器;用于存储可执行指令的存储器;其中,所述一个或多个处理器被配置为调用所述存储器存储的可执行指令,以执行权利要求1至8中任意一项所述的方法。An electronic device, characterized by comprising: one or more processors; a memory for storing executable instructions; wherein the one or more processors are configured to call the executable instructions stored in the memory, To implement the method described in any one of claims 1 to 8.
  11. 一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1至8中任意一项所述的方法。A computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the method according to any one of claims 1 to 8 when the computer program instructions are executed by a processor.
  12. 一种计算机程序产品,用于存储计算机可读指令,指令被执行时使得计算机执行权利要求1至8中任意一项所述的方法。A computer program product for storing computer-readable instructions, which when executed, cause a computer to execute the method described in any one of claims 1 to 8.
PCT/CN2021/086141 2020-04-14 2021-04-09 Parameter configuration method and apparatus, and electronic device and storage medium WO2021208812A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021577135A JP2022538275A (en) 2020-04-14 2021-04-09 Parameter arrangement method and device, electronic device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010290979.6 2020-04-14
CN202010290979.6A CN111487904B (en) 2020-04-14 2020-04-14 Parameter configuration method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2021208812A1 true WO2021208812A1 (en) 2021-10-21

Family

ID=71794866

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/086141 WO2021208812A1 (en) 2020-04-14 2021-04-09 Parameter configuration method and apparatus, and electronic device and storage medium

Country Status (3)

Country Link
JP (1) JP2022538275A (en)
CN (1) CN111487904B (en)
WO (1) WO2021208812A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111487904B (en) * 2020-04-14 2021-08-13 上海商汤临港智能科技有限公司 Parameter configuration method and device, electronic equipment and storage medium
CN112947073B (en) * 2021-01-29 2023-08-29 大连理工大学 Model predictive control-based carrier-based aircraft sliding track tracking method
CN114326418B (en) * 2021-11-30 2023-06-20 重庆电子工程职业学院 Intelligent household equipment control system
CN115086167B (en) * 2022-05-31 2024-05-17 上海商汤临港智能科技有限公司 Parameter configuration method, device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103587723A (en) * 2013-11-07 2014-02-19 北京临近空间飞行器系统工程研究所 Longitudinal on-line locus designing and tracking method for reentry initial segment analytic expression
WO2014164408A1 (en) * 2013-03-13 2014-10-09 Eaton Corporation System and method for clutch pressure control
CN104267732A (en) * 2014-09-29 2015-01-07 哈尔滨工业大学 Flexible satellite high-stability attitude control method based on frequency-domain analysis
CN104979845A (en) * 2015-06-26 2015-10-14 四川大学 Multi-band high voltage direct current power transmission supplementary damping control method based on multi-stage linear optimal theory
CN110531750A (en) * 2018-05-23 2019-12-03 百度(美国)有限责任公司 The embedded LQR of PID for automatic driving vehicle
CN110941272A (en) * 2019-11-27 2020-03-31 深圳先进技术研究院 Automatic driving control method and device
CN111487904A (en) * 2020-04-14 2020-08-04 上海商汤临港智能科技有限公司 Parameter configuration method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7643893B2 (en) * 2006-07-24 2010-01-05 The Boeing Company Closed-loop feedback control using motion capture systems
US7885732B2 (en) * 2006-10-25 2011-02-08 The Boeing Company Systems and methods for haptics-enabled teleoperation of vehicles and other devices
US20190201140A1 (en) * 2017-12-28 2019-07-04 Ethicon Llc Surgical hub situational awareness
CN110244721B (en) * 2019-06-05 2022-04-12 杭州飞步科技有限公司 Automatic driving control method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014164408A1 (en) * 2013-03-13 2014-10-09 Eaton Corporation System and method for clutch pressure control
CN103587723A (en) * 2013-11-07 2014-02-19 北京临近空间飞行器系统工程研究所 Longitudinal on-line locus designing and tracking method for reentry initial segment analytic expression
CN104267732A (en) * 2014-09-29 2015-01-07 哈尔滨工业大学 Flexible satellite high-stability attitude control method based on frequency-domain analysis
CN104979845A (en) * 2015-06-26 2015-10-14 四川大学 Multi-band high voltage direct current power transmission supplementary damping control method based on multi-stage linear optimal theory
CN110531750A (en) * 2018-05-23 2019-12-03 百度(美国)有限责任公司 The embedded LQR of PID for automatic driving vehicle
CN110941272A (en) * 2019-11-27 2020-03-31 深圳先进技术研究院 Automatic driving control method and device
CN111487904A (en) * 2020-04-14 2020-08-04 上海商汤临港智能科技有限公司 Parameter configuration method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111487904A (en) 2020-08-04
JP2022538275A (en) 2022-09-01
CN111487904B (en) 2021-08-13

Similar Documents

Publication Publication Date Title
WO2021208812A1 (en) Parameter configuration method and apparatus, and electronic device and storage medium
CN110348418B (en) Target tracking method and device, intelligent mobile device and storage medium
Batkovic et al. A robust scenario MPC approach for uncertain multi-modal obstacles
US20150288857A1 (en) Mount that facilitates positioning and orienting a mobile computing device
EP3543896B1 (en) Method for estimating lane information, and electronic device
JP7078665B2 (en) Vehicle avoidance control methods, devices, electronic devices and storage media
US11455836B2 (en) Dynamic motion detection method and apparatus, and storage medium
KR20200028168A (en) Computing apparatus using convolutional neural network and operating method for the same
CN113561994A (en) Trajectory planning method and device, storage medium and electronic equipment
CN118068830A (en) Method and device for controlling movement of balance car and balance car
KR20210090255A (en) Vehicle positioning system and method, vehicle control method and apparatus
US20170057090A1 (en) Generating control signal for tele-presence robot
Wang et al. Empowering autonomous driving with large language models: A safety perspective
CN116069041B (en) Track planning method, device, vehicle and medium
CN115014372B (en) Path planning method, path planning device, storage medium and vehicle
CN114834527B (en) Method and device for determining output torque of auxiliary driving system and storage medium
WO2020026798A1 (en) Control device, control method, and program
US20180336412A1 (en) Computer vision robot control
US11993259B2 (en) Vehicle speed control method and apparatus
CN117826863A (en) Robot following method, device, robot and readable storage medium
CN110244710B (en) Automatic tracing method, device, storage medium and electronic equipment
CN114608603B (en) Path planning method, path planning device, storage medium and vehicle
JP6599817B2 (en) Arithmetic apparatus, arithmetic method and program
CN114802442B (en) Vehicle transverse control method and device, storage medium and vehicle
CN114312774A (en) Automatic driving lane keeping method, device, terminal device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21787852

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021577135

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21787852

Country of ref document: EP

Kind code of ref document: A1