CONTROLLING SPEED OF AN AUTONOMOUS VEHICLE
Methods are provided for generating a target speed for an autonomous vehicle. Waypoints on a drivable path are detected, and a curvature of the drivable path at each waypoint is determined. Using the curvature at each waypoint and a lateral acceleration limit of the vehicle, a speed at or below which the autonomous vehicle is permitted to drive is computed for each waypoint. It is then determined, for each waypoint, whether the speed can be met while adhering to predefined slowdown criteria. Upon identifying a limiting waypoint at which an allowed speed cannot be met, a target speed is set so that the vehicle attains the allowed speed at the limiting waypoint while adhering to slowdown criteria.
Latest Five AI Limited Patents:
The present disclosure relates to autonomous vehicle technology, and in particular to the implementation of certain manoeuvres in fully or semi-autonomous vehicles.
TECHNICAL BACKGROUNDAn autonomous vehicle (AV), also known as a self-driving vehicle, refers to a vehicle which has a sensor system for monitoring its external environment and a control system that is capable of making and implementing driving decisions automatically. Decisions are made based on sensory input and implemented using an actor system of the AV (e.g. which may comprise drive-by-wire steering motors, and a throttle and brake control system). This includes in particular the ability to automatically adapt the vehicle's speed and direction of travel based on inputs from the sensor system. A fully autonomous or “driverless” vehicle has sufficient decision-making capability to operate without any input from a human driver. However, the term autonomous vehicle as used herein also applies to semi-autonomous vehicles, which have more limited autonomous decision-making capability and therefore still require a degree of oversight from a human driver.
Known control systems, such as adaptive cruise control (ACC), provide a system for automatically controlling the speed of an ego vehicle. ACC acts to maintain a headway between the ego vehicle and the vehicle directly in front. More sophisticated autonomous vehicles are being developed with the aim of ultimately achieving full “level 5” autonomy.
As well as abiding by road rules and ensuring physical safety of passengers, an AV must be able to move in a way that is comfortable for passengers. That is, whilst a braking manoeuvre may be legal according to road rules, and safe in view of the surroundings, only a subset of the safe and legal solutions to the breaking manoeuvre may be comfortable for passengers in the AV. Considerations of passenger comfort add another layer of complication to the already complex problem that is motion planning in AVs.
Known autonomous vehicle (AV) systems may encode a motion profile that defines dynamic vehicle constraints. The motion profile may be included in a driveable path, which may further include topological data of a driving scene. It is computationally expensive to update this motion profile continuously.
SUMMARYThe disclosure herein provides apparatus and methods which remove the need for a motion profile within the driveable path. Instead, the driveable path includes only the topological and geometric data of the driving scene, and the motion of the AV is reasoned, with speeds being modulated based on comfort constraints and other relevant considerations.
According to a first aspect of the invention there is provided a computer implemented method of generating a target speed for an autonomous vehicle on a drivable path, the method comprising:
-
- detecting a set of waypoints on the drivable path in a forward time horizon relative to an ego position of an autonomous vehicle;
- for each waypoint, determining a curvature of the drivable path and a lateral acceleration limit for the autonomous vehicle;
- computing using the curvature and the lateral acceleration limit an allowed speed at or below which the autonomous vehicle is permitted to drive the path;
- determining for each waypoint using a slowdown manoeuvre from the ego position whether the allowed speed can be met while adhering to predefined slowdown criteria,
- identifying from the set of waypoints a limiting waypoint at which a lowest allowed speed cannot be met; and
- setting a target speed for the autonomous vehicle so as to attain the lowest allowed speed at the limiting waypoint while adhering to the slowdown criteria.
In some embodiments, the slowdown distance is the distance between the ego position and the waypoint for which the allowed speed is determined.
In some embodiments, the slowdown distance is the distance between the ego position and a location on the drivable path ahead of the waypoint for which the allowed speed is being determined.
In some embodiments, the location ahead of the waypoint is spaced from the waypoint by a distance corresponding to a predetermined time.
In some embodiments, the method comprises providing the target speed to a vehicle planner for input to a slowdown manoeuvre being executed by the vehicle planner.
In some embodiments, the drivable path comprises a curve.
In some embodiments, the drivable path is defined by positional co-ordinates in a positional co-ordinate framework.
In some embodiments, the predefined slowdown criteria define limits for deceleration and jerk to meet at least one of comfort and safety requirements.
In some embodiments, the lateral acceleration limit is predefined for the autonomous vehicle. According to a second aspect of the invention there is provided a computer implemented method of generating a target speed for an autonomous vehicle on a drivable path, the method comprising:
-
- detecting a set of waypoints on the drivable path in a forward time horizon relative to an ego position of an autonomous vehicle;
- for each waypoint, determining a curvature of the drivable path and a lateral acceleration limit for the autonomous vehicle;
- computing using the curvature and the lateral acceleration limit an allowed speed at or below which the autonomous vehicle is permitted to drive the path;
- determining for each waypoint using a slowdown manoeuvre from the ego position whether the allowed speed can be met while adhering to predefined slowdown criteria,
- identifying from the set of waypoints a limiting waypoint at which a maximum allowed speed cannot be met; and
- setting a target speed for the autonomous vehicle so as to attain the maximum allowed speed at the limiting waypoint while adhering to slowdown criteria.
According to a third aspect of the invention there is provided a computer device comprising one or more processors and a memory storing computer readable instructions which when executed by the one or more processors cause the computer device to perform steps comprising:
detecting a set of waypoints on the drivable path in a forward time horizon relative to an ego position of an autonomous vehicle;
-
- for each waypoint, determining a curvature of the drivable path and a lateral acceleration limit for the autonomous vehicle;
- computing using the curvature and the lateral acceleration limit an allowed speed at or below which the autonomous vehicle is permitted to drive the path;
- determining for each waypoint using a slowdown manoeuvre from the ego position whether the allowed speed can be met while adhering to predefined slowdown criteria,
- identifying from the set of waypoints a limiting waypoint at which a lowest allowed speed cannot be met; and
- setting a target speed for the autonomous vehicle so as to attain the lowest allowed speed at the limiting waypoint while adhering to slowdown criteria.
According to a fourth aspect of the invention there is provided a computer device comprising one or more processors and a memory storing computer readable instructions which when executed by the one or more processors cause the computer device to perform steps comprising:
detecting a set of waypoints on the drivable path in a forward time horizon relative to an ego position of an autonomous vehicle;
-
- for each waypoint, determining a curvature of the drivable path and a lateral acceleration limit for the autonomous vehicle;
- computing using the curvature and the lateral acceleration limit an allowed speed at or below which the autonomous vehicle is permitted to drive the path;
- determining for each waypoint using a slowdown manoeuvre from the ego position whether the allowed speed can be met while adhering to predefined slowdown criteria,
- identifying from the set of waypoints a limiting waypoint at which a maximum allowed speed cannot be met; and
- setting a target speed for the autonomous vehicle so as to attain the maximum allowed speed at the limiting waypoint while adhering to slowdown criteria.
According to a fifth aspect of the invention there is provided a transitory or non-transitory computer readable medium storing computer-executable instructions that when executed by a processor cause a computer system to implement a method according to embodiments of the first or second aspect of the invention.
To assist understanding of the present disclosure and to show how embodiments of the present invention may be put into effect, reference is made by way of example to the accompanying drawings, in which:
The following describes the apparatus and methods by which a corner speed modulation may be implemented in an autonomous vehicle. An autonomous vehicle experiences a lateral acceleration when following a curved path. The curvature of the path and the speed of the vehicle travelling on it affect the magnitude of lateral acceleration experienced by the vehicle or robot. For passengers in an autonomous vehicle, lateral acceleration may be a source of discomfort. Therefore, it is important that autonomous vehicles consider the lateral acceleration experienced by passengers when planning speeds at which to travel on drivable paths. In particular, it is important that these considerations are made in advance, such that necessary changes to the behaviour of the robot may be affected before any discomfort is experienced. Aspects of the invention described herein may be implemented in a real-world driving scenario, or in a simulation environment to simulate the real-world behaviour of an autonomous robot more realistically.
The method and system described herein provides a number of advantages over the art, including those of passenger comfort which are indicated above and described in more detail herein.
Before describing the invention, and how it may be implemented, an exemplary autonomous vehicle is now described.
Example AV StackThe perception stack 102 receives sensor outputs from an on-board sensor system 110 of the AV. The on-board sensor system 110 can take different forms but generally comprises a variety of sensors such as image capture devices (cameras/optical sensors), LiDAR and/or RADAR unit(s), satellite-positioning sensor(s) (GPS etc.), motion sensor(s) (accelerometers, gyroscopes etc.) etc., which collectively provide rich sensor data from which it is possible to extract detailed information about the surrounding environment and the state of the AV and any external actors (vehicles, pedestrians, cyclists etc.) within that environment. Hence, the sensor outputs typically comprise sensor data of multiple sensor modalities such as stereo images from one or more stereo optical sensors, LiDAR, RADAR etc.
Stereo imaging may be used to collect dense depth data, with LiDAR/RADAR etc. proving potentially more accurate but less dense depth data. More generally, depth data collection from multiple sensor modalities may be combined in a way that respects their respective levels (e.g. using Bayesian or non-Bayesian processing or some other statistical process etc.). Multiple stereo pairs of optical sensors may be located around the vehicle e.g. to provide full 360° depth perception.
The perception stack 102 comprises multiple perception components which co-operate to interpret the sensor outputs and thereby provide perception outputs to the prediction stack 104.
The perception outputs from the perception stack 102 are used by the prediction stack 104 to predict future behaviour of the external actors.
Predictions computed by the prediction stack 104 are provided to the planner 106, which uses the predictions to make autonomous driving decisions to be executed by the AV in a way that takes into account the predicted behaviour of the external actors. The planner 106 uses the extracted information about the ego's surrounding environment and the external agents within it, together with the behaviour predictions provided by the prediction component 104, as a basis for AV planning. That is to say, the predictive analysis by the prediction component 104 adds a layer of predicted information on top of the information that has been extracted from the sensor data by the data processing component, which in turn is used by the AV planner 106 as a basis for AV planning decisions. This is generally part of hierarchical (or “multi-step”) planning process, in which the AV planner 106 makes various high-level decisions and then increasingly lower-level decisions that are needed to implement the higher-level decisions. The end result is a series of real-time, low level action decisions. In order to implement those decisions, the AV planner 106 generates control signals, which are input, at least in part, to a drive mechanism such as the motors 112 of the AV, in order to control the speed and heading of the vehicle (e.g. though steering, braking, accelerating, changing gear etc.).
The path planning process 106a may be executed to plan a spatial path for the ego vehicle (e.g., to follow a particular road/lane, or to reach a desired exit at a roundabout). The ego path may be non-linear, e.g. taking into account road curvature or even a path through a roundabout (e.g. from or via a point at which the ego vehicle is to enter the roundabout or via a point at which it is predicted to exit the roundabout). The path planning module 106a is shown to comprise a waypoint module 120 and an interpolation module 122. When a spatial path for the ego vehicle is planned by the path planning module 106a, the waypoint module 120 therein maps a set of waypoints onto the spatial path. Each waypoint may be a location on the spatial path, through which the ego vehicle passes when travelling along the planned path. However, the waypoints may not, themselves, define the spatial ego path. That is, waypoints may be overlaid by the waypoint module 120 on a path already defined by the path planning module 106a. The distribution of waypoints along the path is discussed later, as is the use of waypoints in context of the present disclosure.
The interpolation module 122 may use a numerical method to obtain a function of a curve that lies along the set of waypoints. The numerical method used by the interpolation module 122 may require at least four points along the path: two end points, and two intermediate points. However, the waypoint module 120 may map of the order of hundreds of waypoints on its spatial path. The curve calculated by the interpolation module 122 may be calculated such that it satisfies desirable mathematical properties such as differentiability and integrability. Any smooth differentiable curve (in two dimensions) is necessarily parametrisable in the form γ(s)=(x(s),y(s)) which, as discussed later, is a useful property in context of the present invention.
The controller 108 executes the decisions taken by the planner 106 by providing suitable control signals to on-board motors 112 of the AV. In particular, the planner 106 plans manoeuvres that are to be taken by the AV and the controller 108 generates control signals in order to execute those manoeuvres. The actor system 112 may, for example, comprise drive by way of steering motors, and a throttle and brake control system.
Simulation-Testing PipelineBy way of example only, the description of the testing pipeline 7200 makes reference to the runtime stack 100 of
The simulated perception inputs 7203 are used as a basis for prediction and, ultimately, decision-making by the planner 6106. The controller 6108, in turn, implements the planner's decisions by outputting control signals. In a real-world context, these control signals would drive the physical actor system 112 of AV. The format and content of the control signals generated in testing are the same as they would be in a real-world context. However, within the testing pipeline 7200, these control signals 6109 instead drive the ego dynamics model 7204 to simulate motion of the ego agent within the simulator 7202.
To the extent that external agents exhibit autonomous behaviour/decision making within the simulator 7202, some form of agent decision logic 7210 is implemented to carry out those decisions and drive external agent dynamics within the simulator 7202 accordingly. The agent decision logic 7210 may be comparable in complexity to the ego stack 6100 itself or it may have a more limited decision-making capability. The aim is to provide sufficiently realistic external agent behaviour within the simulator 7202 to be able to usefully test the decision-making capabilities of the ego stack 6100. In some contexts, this does not require any agent decision making logic 7210 at all (open-loop simulation), and in other contexts useful testing can be provided using relatively limited agent logic 7210 such as basic adaptive cruise control (ACC). Similar to the ego stack 6100, any agent decision logic 7210 is driven by outputs from the simulator 7202, which in turn are used to derive inputs to the agent dynamics models 7206 as a basis for the agent behaviour simulations.
A simulation of a driving scenario is run in accordance with a scenario description 7201, having both static and dynamic layers 7201a, 7201b.
The static layer 7201a defines static elements of a scenario, which would typically include a static road layout.
The dynamic layer 7201b defines dynamic information about external agents within the scenario, such as other vehicles, pedestrians, bicycles etc. The extent of the dynamic information provided can vary. For example, the dynamic layer 7201b may comprise, for each external agent, a spatial path to be followed by the agent together with one or both motion data and behaviour data associated with the path. In certain aspects of the present disclosure, motion data is not associated with the path itself but is derived dynamically using the curvature of the path.
In simple “open-loop” simulation, an external actor simply follows the spatial path and motion data defined in the dynamic layer that is non-reactive i.e. does not react to the ego agent within the simulation. Such open-loop simulation can be implemented without any agent decision logic 7210.
However, in “closed-loop” simulation, the dynamic layer 7201b instead defines at least one behaviour to be followed along a static path (such as an ACC behaviour). In this, case the agent decision logic 7210 implements that behaviour within the simulation in a reactive manner, i.e., reactive to the ego agent and/or other external agent(s). Motion data may still be associated with the static path but in this case is less prescriptive and may for example serve as a target along the path. For example, with an ACC behaviour, target speeds may be set along the path which the agent will seek to match, but the agent decision logic 7210 might be permitted to reduce the speed of the external agent below the target at any point along the path in order to maintain a target headway from a forward vehicle. Note that this ‘point’ may be defined spatially—as a distance ahead of the ego—or temporally—as a location of the ego after a given amount of time.
The output of the simulator 7202 for a given simulation includes an ego trace 7212a of the ego agent and one or more agent traces 7212b of the one or more external agents (traces 7212).
A trace is a complete history of an agent's behaviour within a simulation having both spatial and motion components. For example, a trace may take the form of a spatial path having motion data associated with points along the path such as speed, acceleration, jerk (rate of change of acceleration), snap (rate of change of jerk) etc.
Additional information is also provided to supplement and provide context to the traces 7212. Such additional information is referred to as “environmental” data 7214 which can have both static components (such as road layout) and dynamic components (such as weather conditions to the extent they vary over the course of the simulation).
To an extent, the environmental data 7214 may be “passthrough” in that it is directly defined by the scenario description 7201 and is unaffected by the outcome of the simulation. For example, the environmental data 7214 may include a static road layout that comes from the scenario description 7201 directly. However, typically the environmental data 7214 would include at least some elements derived within the simulator 7202. This could, for example, include simulated weather data, where the simulator 7202 is free to change weather conditions as the simulation progresses. In that case, the weather data may be time-dependent, and that time dependency will be reflected in the environmental data 7214.
A test oracle 7252 receives the traces 7212 and the environmental data 7214 and may provide analyses that are informative to an expert. For example, the analyses may be useful for assessing the performance of a vehicle in simulation and identifying performance issues within the stack 6100 that may be mitigated.
It will be appreciated, in view of the above, that the invention described herein may be implemented using a runtime stack 6100 of a real-world ego vehicle, or a simulated vehicle using the testing pipeline outlined above.
ACCCruise control is a system that automatically controls the speed of a vehicle (ego vehicle). A basic form of cruise control system maintains a constant absolute speed of the ego vehicle. A human driver must therefore take responsibility for overriding the cruise control, normally by applying the brakes, as necessary.
More sophisticated “adaptive” cruise control (ACC) aims to maintain a “target headway”-headway being distance from the ego vehicle to a vehicle immediately in front of the ego vehicle (the “forward vehicle”).
An ACC system 114, as shown as part of the planning module 106 in
ACC attempts to balance matching the speed of the forward vehicle with keeping a certain distance behind the forward vehicle, where the distance between the ego vehicle and the forward vehicle is proportional to the speed of the ego vehicle. Together, these two factors ensure the ego vehicle moves with the traffic flow while staying at a safe distance behind the forward vehicle.
For example, if the forward vehicle increases its speed, the ACC system 114 may cause the ego vehicle to accelerate to match the speed of the forward vehicle, in a way that accounts for the fact that, as the speed of the ego vehicle increases, the target headway also increases—the aim being to match the speed of the ego vehicle to the new speed of the forward vehicle, whilst maintaining a target headway appropriate for that new speed. The speed of the ego vehicle may be capped, such that it cannot increase above a certain speed. The cap may be the speed limit of the road or a maximum speed set by the driver. Note that the ACC system assumes the ego vehicle will be steered as needed to follow the planned ego path, and its rule is simply to adapt the speed of the ego vehicle appropriately.
An ACC system 114 may operate under a set of predefined motion constraints, for example, constraints of acceleration and jerk. That is, when accelerating or decelerating in accordance with the aims of the ACC system, the ego vehicle may be restricted such that the acceleration and jerk experienced by the vehicle and its passengers are within comfortable limits.
A ‘nominal speed’, as referred to herein, is a speed that would be considered ideal based on road layout, geometry, weather and other static scene features. However, the nominal speed is independent of runtime factors such as traffic or behaviour of agents in the scenario. That is, nominal speeds may be calculated a priori, independently of runtime factors. Further, a nominal speed may not necessarily be set at a maximum speed allowed within a set of comfort or safety constraints. By way of example only, nominal speeds may be defined at 95% of a maximum safe/comfortable speed on given a road layout so that minor fluctuations in speed do not lead to discomfort, compromised safety, and/or breakage of road rules.
In examples where there is no runtime factor, such as an agent vehicle, limiting a speed that can be provided to a control system of the ego vehicle, the nominal speed for the road layout may be set as a target speed.
More generally, a target speed, as referred to herein, may be defined as an actual speed that is provided to a control system of the ego vehicle, in view of the nominal speed of the road layout (calculable a priori), and in view of runtime factors such as other agents in the scenario and risk/safety/comfort implications of controlling the ego vehicle around those other agents.
In practice, nominal speeds may be computed by the planner module 106 given the static scene and a shape of the drivable path, and those nominal speeds may represent a maximum comfortable or safe speed that can be sent to the controller module 108. However, the planner module 106 may reason about the actual target speed to be provided to the controller module 108 based on runtime factors that may warrant a lower maximum safe/comfortable speed.
In examples where the ego is decelerating, the constraints within which the ACC system 114 is permitted to operate may be referred to herein as ‘slowdown criteria’. When setting target speeds at the controller of the ego vehicle and implementing manoeuvres that attain them, the ACC system 114 is finding a solution to an equation of motion, in which the final speed is reached within a particular time or distance within the predefined acceleration and jerk slowdown criteria.
The ego vehicle may calculate nominal speeds for points on the ego path and then reason a target speed. Where those target speeds are achievable within the slowdown criteria of the ACC system, i.e., a solution can be found, those target speeds may be submitted to the controller 108 to be met by the ego vehicle on the path. However, calculated target speeds may fall outside the threshold of what the ACC system 114 can attain, given its prescribed motion constraints or slowdown criteria. The ego vehicle may recognise instances where the slowdown criteria of the ACC system 114 cannot attain the target speed without breaching comfort or safety limits of the current slowdown criteria. In such instances, the ego vehicle may adjust the motion constraints such that the calculated target speed may be achieved at the point on the path.
That is, the limits Jmax, amax, respectively denoting maximum jerk and maximum acceleration, may be set differently, depending on driving context. The following examples consider “full slowdown” constraints and “comfortable” constraints. Whilst “full slowdown” and “comfortable” refer to two exemplary pre-defined templates for acceleration and jerk constraints, it will be appreciated that other templates using other jerk and acceleration values may exist.
Jmax and amax have lower magnitudes (reduced limits) within the comfortable constraint set than in the full slowdown set. The reduced (comfortable) limits are denoted Ĵmax and âmax to distinguish from the set of full slowdown motion constraints. Comfortable constraints are not used in a full slowdown process (also referred to as emergency slowdown constraints), which may require harsher accelerations that prioritise safety over comfort. The full/emergency slowdown constraints may be switched to at a point when it becomes impossible to find a solution within the comfortable constraints Ĵmax and âmax. In examples where a target speed is calculated and there is no solution within currently implemented constraints, the target speed may be submitted to the planner module 106, which may implement a change in slowdown criteria (Jmax, amax). Given the new set of slowdown criteria, the ego vehicle may be able to find a solution to reach a speed at or below the calculated target speed.
In addition to speed limits of a road, speeds set by drivers, and speeds necessary to maintain a target headway, there are other reasons why an autonomous vehicle may cap its speed. One such reason is passenger comfort, which is a key focus of the systems and methods described herein.
As mentioned previously, for passengers in an autonomous vehicle, lateral acceleration may be a source of discomfort. Therefore, it is important that autonomous vehicles consider the lateral acceleration experienced by passengers when planning speeds at which to travel on drivable paths.
The term ‘maximum allowed speed’, as used herein, refers to a maximum speed at which a passenger in an autonomous vehicle is comfortable. The comfort level against which the maximum allowed speed is assessed is dependent on a magnitude of lateral acceleration experienced by the passenger, whilst travelling around a curved path in the vehicle.
An exemplary method, by which the maximum allowed speed of an ego vehicle may be calculated, is now described. The maximum allowed speed of an ego vehicle depends on a curvature of a driveable path followed by the ego vehicle and constraints of lateral acceleration on the ego vehicle. The calculated value for maximum allowed speed therefore depends on mathematical models for calculating curvature on a drivable path and modelling lateral acceleration experienced by an ego vehicle on that drivable path.
As described above, a drivable path followed by an ego vehicle may be numerically modelled as a (smooth) differentiable curve. Any such curve is necessarily parametrisable in the form γ(s)=(x(s),y(s)). At any point on a curved drivable path, there is a notional centre of curvature, about which the ego vehicle is instantaneously travelling in a circular path. Lateral acceleration alat experienced by the ego vehicle at a particular point on the driveable path may be modelled as an instantaneous centripetal acceleration of the ego vehicle, acting orthogonally to the ego vehicle's direction of travel and towards the notional centre of curvature at the particular point. That is, at any point on a curved drivable path, the ego vehicle may be modelled as travelling in a circular path, the circular path being defined by the perimeter of an osculating circle through the point on the path. Note that an osculating circle of a point on a smooth curve is the circle that best approximates the curve at that point. The centre of an osculating circle is the notional centre of curvature of the smooth curve at the corresponding point on the curve.
The centripetal acceleration ac experienced by a body traversing a circular path is dependent on the velocity ν of that body and the radial distance r of the circular path from its centre of curvature:
Whilst an equation for centripetal acceleration is simpler to derive in terms of radius of an osculating circle, in practice it is challenging to directly calculate the equation of such a circular path to find a radius. It is simpler to parametrise a smooth curve in the form γ(s)=(x(s),y(s)), as described above, then to use a known equation to calculate curvature κ of the parametrised curve. This known equation is:
As will be appreciated by those skilled in the art, a circle has a curvature equal to the inverse of its radius. Note that circles are smooth curves, so the above equation is equivalent to
for curves that are circles of radius r. Recall that the lateral acceleration alat of the ego vehicle is modelled as an instantaneous centripetal acceleration ac, which acts towards the centre of a circular path. Recall also that curvature κ is calculable for drivable paths parametrised as smooth curves. Therefore, the calculated curvature κ of a drivable path at a point on the path can be substituted into the equation for centripetal acceleration ac for the purposes of modelling instantaneous lateral acceleration alat at that point, giving:
alat=ac=ν2κ (Eqn. 3)
In practice, a planner module 106 of an ego vehicle may map a set of waypoints on a drivable path, the waypoints being distributed between a current position of the ego vehicle and a horizon. Waypoints may be distributed uniformly in time ahead of the ego, based on the current speed, acceleration and jerk etc. of the ego vehicle. Alternatively, waypoints may be uniformly distributed in distance ahead of the ego vehicle, up to the horizon. A suitable waypoint horizon may be of the order of 8 seconds ahead of the ego. The ego vehicle may map, for example, 100 waypoints per second. Therefore, in this example, the ego vehicle may consider of the order of 800 waypoints at any one time, and the speed modulation module 116 of the planner 106 may calculate a maximum allowed speed for each waypoint as described above.
For each waypoint in the set, the ego vehicle may assess whether current slowdown criteria—i.e., the current speed, acceleration, and jerk limits of the ego vehicle—would allow the ego to reach a speed at or below the maximum allowed speed associated with each waypoint. That is, the ego vehicle assesses whether its current slowdown criteria could provide a comfortable passenger experience for humans in the ego vehicle, at each waypoint.
An exemplary drivable path is illustrated in
The parametrised curve 200 comprises an exemplary waypoint 202. A velocity arrow 208 represents the velocity vector ν of an ego vehicle following the curve 200 at waypoint 202. Note that in
The maximum allowed lateral acceleration of the ego vehicle may be predefined, for example based on comfort or safety metrics. Combining the models of Equations 1 and 2 enables calculation by the speed modulation module 116 of a maximum allowed speed νmax at point 202. That is, Equation 3 can be rearranged for the specific example of
Where alat is predefined and κ1 is the curvature at waypoint 202, calculable from the ego vehicle's drivable path. If it is determined that the speed νmax cannot be achieved within a slowdown distance, in view of predefined slowdown criteria, then νmax may be sent to the planner module 106 of the ego vehicle, to replace the nominal speed for point 202, which is currently set by the ACC system 114. The planner module 106 may then reconfigure slowdown criteria accordingly such that target speed νmax for the waypoint 202 can be reached within the slowdown distance.
Note that the maximum allowed speed calculated above is based on a curvature coefficient of the road and a predefined maximum lateral acceleration that should be experienced by passengers in the vehicle. Neither variable for calculating the maximum speed is dependent on runtime factors such as scenario agents. Therefore, the maximum allowed speed based on lateral acceleration may be calculated a priori and may be considered a nominal speed.
However, the nominal speed may be set lower than a maximum allowed speed by convention, e.g., being set at 95% of the maximum allowed speed.
It will be appreciated that if, at runtime, the behaviour of an agent further compromises the speed at which the ego vehicle can travel, the maximum allowed (nominal) speed calculated based on lateral acceleration constraints may be replaced with a target speed that is suitable based on runtime factors, as described previously.
The slowdown distance may be a distance between the ego vehicle in its current position and a waypoint for which the nominal speed is calculated (e.g. waypoint 202). In other embodiments, which use a ‘propagation’ or ‘lookahead’ feature described later, the slowdown distance may be the distance between the current ego vehicle position and a pre-determined position before the limiting waypoint on the drivable path. Note that a slowdown distance may alternatively be defined in terms of a predetermined time, wherein the slowdown distance is calculated based on speed, acceleration, jerk etc. of the ego vehicle. The slowdown distance may be calculated by the speed modulation unit 116.
In practice, when an ego vehicle assesses a plurality of waypoints within a set, a limiting waypoint may be identified at which the ego vehicle, given current slowdown criteria, is not on track to reach a speed at which passengers therein would be comfortable, as described above with reference to
One or more lookup tables may be held in a storage device of the planning module 106 of the ego vehicle, each lookup table being an index addressable by two input parameter values to access a third. A slowdown table may also be associated with a particular set of slowdown criteria. Each accessible value in the main body of such a lookup table, corresponding to a particular evaluation distance and current speed value, may provide a final speed at which the ego would be travelling after decelerating from the current speed over the evaluation distance whilst adhering to the associated slowdown criteria. A lookup table may store a comprehensive set of final speeds, for any combination of evaluation distance and current speed, which may be readily accessible to the ego vehicle when assessing whether a waypoint is a limiting waypoint.
ν=√{square root over (2as+u2)},
where ν, a, s and u respectively denote final speed, acceleration, evaluation distance and current speed. It will be appreciated that higher order terms in the above equation of motion, such as for jerk and snap may be included; however, for clarity reasons, only terms up to the second derivative (acceleration) are shown in
Further, whilst the exemplary lookup table 300 shows current speed increments of 1 ms−1 and evaluation distance increments of 1 m, it will be appreciated that other, finer grain increments of both distance and speed may be implemented in a real lookup table stored in an autonomous vehicle.
The ego vehicle may, for each waypoint, in view of the corresponding nominal speed at each waypoint, perform a query operation to a relevant lookup table (i.e., corresponding to the appropriate set of slowdown criteria). The ego vehicle may query, based on the current speed and a slowdown distance, at what final speed it will be travelling after covering the slowdown distance whilst adhering to the slowdown criteria. Note that the term ‘query’ as used here refers to the process in which two indexing parameters are input to the lookup table index, and where an indexing operation is performed on the lookup table to output a third parameter.
The output of the index operation 605, the final speed, is sent to a comparator 607. The comparator 607 also receives input of a nominal speed νnom, which may be calculated by the speed modulation unit 116. The comparator 607 performs a comparison operation on the final speed and Vmax, determining whether the final speed is greater than νnom, where νnom is a nominal speed for a particular waypoint on the path, calculated in view of a path curvature at the waypoint and a maximum allowed lateral acceleration on the vehicle. A comparator output 609 may be sent from the comparator 607 to the processor 601 of the planner module 106. Note that the comparator output 609 may be a single-bit Boolean value, having a state of either TRUE or FALSE. It will be appreciated that the comparison operation may alternatively assess whether the final speed is smaller than νnom. The processor 601 may make decisions regarding the ego vehicle's behaviour, based on the comparator output 609.
If the corresponding final speed is not greater than the nominal speed, then the ego vehicle does not need to replace the current motion constraints to reach the nominal speed, as the nominal speed set by the ACC module 114 is within a comfortable speed range. However, in examples where the final speed output at the lookup table 300 is greater than the nominal speed for that waypoint, the ego vehicle submits a comfortable target speed (which may be at or below the nominal speed) to the planner module 106, and the planner 106 may adjust the slowdown constraints accordingly, such that the target speed can be met within the slowdown distance. Again, note that the nominal speed set at the planner module 106 for a particular waypoint may be lower than the calculated maximum allowed speed at that waypoint. That is, the nominal speed may be set at a factor of the maximum comfortable speed, where the factor is between 0 and 1, e.g., 0.9. The nominal speed may represent a maximum speed that can be set as a target speed, because the nominal speed is based on (e.g., less than or equal to) a maximum allowed speed based on comfort and safety. However, an actual target speed calculated during runtime may be lower still than the nominal speed due to runtime factors such as agent behaviour.
It will be noted that the lookup tables described above provide an example of how an autonomous vehicle may determine that a lowest achievable speed at a given waypoint, in view of a current set of motion constraints, still exceeds a nominal speed at the waypoint. Those skilled in the art will appreciate that other methods for making this determination may exist.
Returning to
In some embodiments, the method of modulating speeds described above may be prioritised over maintaining a target headway 408 from the forward agent 404. That is, if a forward vehicle is taking a corner at a higher speed than the ego vehicle deems comfortable, the nominal speed at a point on that corner may be lower than a speed required to maintain a target headway. In such an example, the nominal speed is a limiting speed, and the vehicle may slow to the nominal speed at that point, forgoing a headway-maintenance behaviour for the sake of comfort.
In other examples, the nominal speed at a point on a corner may exceed a target speed calculated in view of other runtime factors, e.g., an agent is travelling slowly around the corner. In such an example, the target speed is the limiting speed, and the ego vehicle may compromise its optimal cornering speed (e.g., the nominal speed) so as to avoid collision with a slow-moving forward vehicle.
PropagationAs briefly discussed earlier, a slowdown distance—within which a nominal speed is to be reached—may be defined as the distance between the ego vehicle's current position and a limiting waypoint. Alternatively, slowdown distance may be defined as the distance between the ego vehicle's current position and a position ahead of (before) the limiting waypoint on the drivable path. The latter definition of slowdown distance has been identified by the inventors as providing further improvements to user/passenger comfort in certain driving situations. Perceived safety of passengers in an autonomous vehicle has a notable impact on comfort, independent of whether lateral acceleration constraints are broken, and reaching a target speed ahead of when is necessary may, in certain situations, affect this perceived comfort. However, it is also noted that passengers perceive safety differently in different driving situations.
The inventors found surprisingly that a key factor that influences perceived comfort levels is visibility down the path; for example, due to inclement visibility-restricting weather, occlusion by large vehicles, bends in the path, and blind summits etc. The reduced comfort of entering the corner was found by the inventors to be, at least partially, due to a lack of visibility around the corner.
For example, the inventors have noted that when approaching a bend in a road, human passengers feel more comfortable if the vehicle reaches a comfortable speed ahead of time, before it is necessary for comfort reasons; i.e., based on lateral acceleration. That is, passengers may perceive discomfort if the vehicle reaches a nominal speed (e.g., highest comfortable speed or just below) for a curved path exactly when it is necessary to be at that speed for lateral acceleration-based comfort reasons. Passengers prefer to reach a comfortable nominal speed ahead of time, to then travel around the curved path at or below that nominal speed. To address this objective, a feature referred to herein as ‘propagation’ or ‘lookahead’ may be applied. While the above example of propagation is described with respect to ego vehicle speed, it will be appreciated that propagation may be usefully implemented when applied to other vehicle parameters.
Generally, propagation as referred to herein describes a method of determining a target parameter for an autonomous vehicle based on path characteristics at a particular point (first point), but then assessing whether or not that target parameter can be met at a second point, the second point being at a location on the path before the first point associated with the path characteristics. That is, the determination is whether the target parameter can be met ahead of time, relative to the first point.
The extent to which the second point (where the target parameter is to be met) is ahead of the first point (at which the path characteristics are determined) may be referred to herein as a ‘propagation phase’. The propagation phase may be temporally defined. That is, the target parameter may be set to be met a predefined amount of time before reaching the first point on the path at which characteristics are determined. Alternatively, the propagation phase may be spatially defined, where the target parameter is to be met by a predefined distance before the point on the path at which characteristics are determined.
In examples where the target parameter is a speed of an ego vehicle that is approaching a corner, propagation may be implemented in a method such as the corner speed modulation method described above. Propagation may, for example, be applied at the step of determining whether a waypoint is a limiting waypoint and implemented using the propagation module 118 shown in
If the propagation phase is temporally defined—for example, the target speed is to be met 2 seconds before reaching a particular waypoint—then the propagation module 118 may calculate a corresponding distance that the ego vehicle would cover in a 2 second propagation phase that ends at the waypoint, based on current speed and slowdown constraints of the ego vehicle. The calculated distance travelled during the propagation phase may then be subtracted from the absolute distance between the ego vehicle in its current position and the waypoint being evaluated. The result of this subtraction may then be used as an evaluation distance, input as one of the indexing parameters to the relevant lookup table. As before, the output of the query to the lookup table is a final speed; in this case the output speed is a nominal speed of the ego vehicle 2 seconds before it reaches the waypoint being evaluated. This output final speed may be compared to the nominal speed at the waypoint to determine whether or not the waypoint is a limiting waypoint. Reactions of the ego vehicle to the output of this determination may follow the methods described above; e.g., of setting a target speed at the planner module 106 which requires an adjustment of motion constraints.
If the propagation phase is instead defined spatially, as a distance before the waypoint being evaluated, the propagation phase is simply subtracted from the absolute distance between the ego vehicle and the waypoint, to find an evaluation distance to be input to the relevant lookup table. This may also be implemented using the propagation module 118. The method may then follow as described above. Note that whilst defining the propagation phase spatially results in an easier calculation to find an evaluation distance for input to a lookup table, an absolute spatial propagation phase is variably effective, depending on speed. For example, a 5-metre propagation phase may be effective, with regards perceived user comfort, when current speed is 10 ms−1. However, the same spatial propagation phase may not have a similarly beneficial effect at motorway speeds of ~30 ms−1, for example.
As identified previously, perceived safety of passengers in an autonomous vehicle has a notable impact on comfort; however, passengers perceive safety differently in different driving situations. In certain situations, implementing propagation may have a positive effect on the perceived safety and therefore comfort of passengers in an ego vehicle. In other situations, propagation may not be as beneficial, such as when entering a roundabout.
A good strategy when entering a roundabout is to maintain a higher speed on approach, keeping momentum so that smaller gaps between agents on the roundabout itself may be exploited, rather than if the vehicle were to stop on approach and accelerate onto the roundabout. Passengers in a vehicle approaching a roundabout may be comfortable maintaining a speed that would otherwise exceed the nominal speed for longer than if the vehicle were not approaching a roundabout. That is, both the distance from the roundabout at which the user becomes uncomfortable at speed, and the comfortable magnitude of lateral acceleration may be increased when entering a roundabout. Therefore, to implement a propagation routine and slow to a comfortable nominal speed, before it is necessary for (normally applicable) comfort reasons, is not appropriate and may even frustrate passengers due to poor roundabout entry strategy. Upon identifying a roundabout, the ego vehicle may disable propagation, and may increase the maximum allowed lateral acceleration, to account for increased perceived passenger comfort. It will be appreciated that other examples of driving situations may exist in which implementation of a propagation routine is not beneficial.
The ego vehicle, in particular the propagation module 118, may make an active assessment of whether or not to implement a propagation routine.
As described earlier, propagation routines may not only be applied to a speed parameter. Generally, a target parameter for an AV is determined at a point on a drivable path based on path characteristics. An assessment is then made as to whether the target parameter can be met at a location ahead of (before) the point at which the characteristics are found.
The following description is made with reference to
At a step S5, a determination is made as to whether propagation should be enabled. As described above, the ego vehicle may actively assess whether propagation is desirable based on its current driving situation. If at step S5 it is determined that propagation is not to be enabled, the flow progresses to a step S7, in which an evaluation distance is determined. The evaluation distance when propagation is not enabled may be the distance between the ego vehicle in its current position, and the target waypoint Wi. If at step S5 it is determined by the propagation module 118 that propagation is to be enabled, the flow progresses to a step S9.
At step S9, an evaluation distance is calculated based on the propagation phase. Step S9 is represented in more detail by the flowchart of
When the evaluation distance is calculated, after either step S7 or S9, the flow progresses to a step S11, in which the evaluation distance and the current speed of the ego vehicle are used as inputs in a query to a relevant lookup table. At a step S13, the query to the lookup table returns an output speed, which is the lowest achievable speed of the ego vehicle after covering the evaluation distance within the current motion constraints.
At a step S15, a comparative operation is made between the nominal speed νnom calculated in step S3 and the output speed returned by the lookup table query in step S13. If, at step S15, it is determined that the final speed output at step S13 is not greater than νnom, then the ego vehicle is able to reach a comfortable speed whilst adhering to current slowdown criteria, for example as set by an ACC system. This is represented by step S17 in the flowchart of
After either step S17 or S21 has been taken, the flow then progresses to a step S19, at which the waypoint index i is incremented by 1, such that a next waypoint becomes the target waypoint. The flow then returns to step S1, whereafter the process described above is repeated for the next waypoint.
As noted above, the inventors found that perceived comfort can be improved by propagating a slowdown ahead of the time. That is, it may be necessary for physical comfort/safety, due to the human perception of comfort when faced with ‘blind’ corners, to implement propagation and slow to a nominal speed early. By contrast, humans may have a higher tolerance with regards comfort when entering a roundabout, and this may be due to an increased visibility of oncoming traffic on the roundabout.
The inventors have therefore noted that the extent to which propagation should be implemented can be determined as a function of visibility on the path. In certain embodiments, propagation may be turned on or off depending on the visibility. For example, when approaching a roundabout, the propagation may be turned off because it is not needed to improve perceived comfort, while it may be turned on when approaching a tight curve, which may be ‘blind’ to a human.
Claims
1. A computer implemented method of generating a target speed for an autonomous vehicle on a drivable path, the method comprising:
- detecting a set of waypoints on the drivable path in a forward time horizon relative to an ego position of an autonomous vehicle;
- for each waypoint, determining a curvature of the drivable path and a lateral acceleration limit for the autonomous vehicle;
- computing using the curvature and the lateral acceleration limit an allowed speed at or below which the autonomous vehicle is permitted to drive the path;
- determining for each waypoint using a slowdown manoeuvre from the ego position whether the allowed speed can be met while adhering to predefined slowdown criteria;
- identifying from the set of waypoints a limiting waypoint at which a maximum allowed speed cannot be met;
- implementing a change in the slowdown criteria to provide a new set of slowdown criteria; and
- setting a target speed for the autonomous vehicle so as to attain the maximum allowed speed at the limiting waypoint while adhering to the new set of slowdown criteria.
2. The method of claim 1, wherein determining for each waypoint using a slowdown manoeuvre from the ego position whether the allowed speed can be met while adhering to predefined slowdown criteria comprises determining whether the allowed speed can be met within a slowdown distance.
3. The method of claim 2 wherein the slowdown distance is the distance between the ego position and the waypoint for which the allowed speed is determined.
4. The method of claim 2 wherein the slowdown distance is the distance between the ego position and a location on the drivable path ahead of the waypoint for which the allowed speed is being determined.
5. The method of claim 4 wherein the location ahead of the waypoint is spaced from the waypoint by a distance corresponding to a predetermined time.
6. The method of claim 1 comprising providing the target speed to a vehicle planner for input to a slowdown manoeuvre being executed by the vehicle planner.
7. The method of claim 1 wherein the drivable path comprises a curve.
8. The method of claim 1 wherein the drivable path is defined by positional co-ordinates in a positional co-ordinate framework.
9. The method of claim 1 wherein the predefined slowdown criteria define limits for deceleration and jerk to meet at least one of comfort and safety requirements.
10. The method of claim 1 wherein the lateral acceleration limit is predefined for the autonomous vehicle.
11. A computer device comprising one or more processors and a memory storing computer readable instructions which when executed by the one or more processors cause the computer device to perform steps comprising:
- detecting a set of waypoints on a drivable path in a forward time horizon relative to an ego position of an autonomous vehicle;
- for each waypoint, determining a curvature of the drivable path and a lateral acceleration limit for the autonomous vehicle;
- computing using the curvature and the lateral acceleration limit an allowed speed at or below which the autonomous vehicle is permitted to drive the path;
- determining for each waypoint using a slowdown manoeuvre from the ego position whether the allowed speed can be met while adhering to predefined slowdown criteria;
- identifying from the set of waypoints a limiting waypoint at which a maximum allowed speed cannot be met;
- implementing a change in the slowdown criteria to provide a new set of slowdown criteria; and
- setting a target speed for the autonomous vehicle so as to attain a lowest allowed speed at the limiting waypoint while adhering to the new set of slowdown criteria.
12. The computer device of claim 11, wherein determining for each waypoint using a slowdown manoeuvre from the ego position whether the allowed speed can be met while adhering to predefined slowdown criteria comprises determining whether the allowed speed can be met within a slowdown distance.
13. The computer device of claim 12 wherein the slowdown distance is the distance between the ego position and the waypoint for which the allowed speed is determined.
14. The computer device of claim 12 wherein the slowdown distance is the distance between the ego position and a location on the drivable path ahead of the waypoint for which the allowed speed is being determined.
15. The computer device of claim 14 wherein the location ahead of the waypoint is spaced from the waypoint by a distance corresponding to a predetermined time.
16. The computer device of claim 11 comprising providing the target speed to a vehicle planner for input to a slowdown manoeuvre being executed by the vehicle planner.
17. (canceled)
18. The computer device of claim 11 wherein the drivable path is defined by positional co-ordinates in a positional co-ordinate framework.
19. The computer device of claim 11 wherein the predefined slowdown criteria define limits for deceleration and jerk to meet at least one of comfort and safety requirements.
20. The computer device of claim 11 wherein the lateral acceleration limit is predefined for the autonomous vehicle.
21. A non-transitory computer readable medium storing computer-executable instructions that when executed by a processor cause a computer system to implement a method of generating a target speed for an autonomous vehicle on a drivable path, the method comprising:
- detecting a set of waypoints on the drivable path in a forward time horizon relative to an ego position of an autonomous vehicle;
- for each waypoint, determining a curvature of the drivable path and a lateral acceleration limit for the autonomous vehicle;
- computing using the curvature and the lateral acceleration limit an allowed speed at or below which the autonomous vehicle is permitted to drive the path;
- determining for each waypoint using a slowdown manoeuvre from the ego position whether the allowed speed can be met while adhering to predefined slowdown criteria;
- identifying from the set of waypoints a limiting waypoint at which a maximum allowed speed cannot be met;
- implementing a change in the slowdown criteria to provide a new set of slowdown criteria; and
- setting a target speed for the autonomous vehicle so as to attain the maximum allowed speed at the limiting waypoint while adhering to the new set of slowdown criteria.
22. (canceled)
Type: Application
Filed: Dec 22, 2023
Publication Date: Nov 26, 2026
Applicant: Five AI Limited (Cambridge)
Inventors: Alexandre Silva (Cambridge), Alejandro Bordallo (Cambridge), Bence Magyar (Cambridge)
Application Number: 19/144,356