A Level Set Approach to Online Sensing and Trajectory Optimization with Time Delays
Matthew R. Kirchner

TL;DR
This paper introduces a level set method using the generalized Hopf formula for real-time trajectory optimization in robotics, effectively handling time delays in sensing and control, demonstrated through communication channel estimation.
Contribution
It presents a novel application of the generalized Hopf formula for online Hamilton-Jacobi equation solutions with time delays, including a new non-parametric approach for robotic communication channel estimation.
Findings
Efficient computation of Hamilton-Jacobi equations with time delays.
Successful online trajectory optimization with delay compensation.
Improved robotic communication channel estimation from incremental measurements.
Abstract
Presented is a method to compute certain classes of Hamilton-Jacobi equations that result from optimal control and trajectory generation problems with time delays. Many robotic control and trajectory problems have limited information of the operating environment a priori and must continually perform online trajectory optimization in real time after collecting measurements. The sensing and optimization can induce a significant time delay, and must be accounted for when computing the trajectory. This paper utilizes the generalized Hopf formula, which avoids the exponential dimensional scaling typical of other numerical methods for computing solutions to the Hamilton-Jacobi equation. We present as an example a robot that incrementally predicts a communication channel from measurements as it travels. As part of this example, we introduce a seemingly new generalization of a non-parametric…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
A Level Set Approach to Online Sensing and Trajectory Optimization
with Time Delays
Matthew R. Kirchner
Image and Signal Processing Branch, Research Directorate, Naval Air Warfare Center Weapons Division, China Lake, CA 93555, USA (e-mail: [email protected])
Electrical and Computer Engineering Department, University of California, Santa Barbara, CA 93106, USA (e-mail: [email protected])
Abstract
Presented is a method to compute certain classes of Hamilton–Jacobi equations that result from optimal control and trajectory generation problems with time delays. Many robotic control and trajectory problems have limited information of the operating environment a priori and must continually perform online trajectory optimization in real time after collecting measurements. The sensing and optimization can induce a significant time delay, and must be accounted for when computing the trajectory. This paper utilizes the generalized Hopf formula, which avoids the exponential dimensional scaling typical of other numerical methods for computing solutions to the Hamilton–Jacobi equation. We present as an example a robot that incrementally predicts a communication channel from measurements as it travels. As part of this example, we introduce a seemingly new generalization of a non-parametric formulation of robotic communication channel estimation. New communication measurements are used to improve the channel estimate and online trajectory optimization with time-delay compensation is performed.
keywords:
Time Delay Systems, Hamilton–Jacobi Equation, Generalized Hopf Formula, Viscosity Solution, Optimal Control, Communication Seeking Robotics
††thanks: This research was supported by the Office of Naval Research under Grant N00014-18-WX01382.
1 Introduction
Time delays are common presence in real-world instantiations of dynamic systems. This causes issues with stability and robustness when attempting to design real-time control for these systems, and the challenges of design and analysis of systems with time delays have been well studied; see Richard (2003). Historically, there have been many attempts to compensate for time delays in control theory, such as the well-known Padé approximation in classical linear control theory (Franklin et al., 2006, Sec. 5.7.3), which approximates a pure delay as a rational transfer function or state transformations such as presented in Kwon and Pearson (1980). In a modern setting, real-time optimal control (RTOC) [Ross et al. (2006)] and model predictive control (MPC) [Camacho and Alba (2013)] have gained large scale acceptance in control and trajectory optimization problems. These seek to find a control sequence and the resulting trajectory that minimizes a pre-defined cost functional. RTOC optimizes the cost functional directly, while MPC computes on a finite time horizon and is frequently referred to as receding horizon control. Because of this, MPC is sub-optimal and necessitates online re-computation of the current state frequently, while RTOC only needs to be re-computed online if the system is perturbed from the computed optimal trajectory.
Fast online computation is critical for these approaches, and delay from computation becomes more apparent as the dimensionality and model complexity of the optimization increases. In addition to time delays induced from computation, many robotics problems have limited information of the operating environment a priori. The robot must perform sensing in real-time and as a result, necessitates online re-compuation of the optimal trajectory with this new information. As methods for sensing in robotics have become more sophisticated, the time delay induced becomes larger. An illustrative example appeared in Usman et al. (2016), where a complicated non-parametric model was used to estimate the quality of a communication signal from measurements of a transmitter with a known location. In that work, a RTOC scheme was developed to minimize combined motion and communication energy of the signal. The RTOC was re-computed every seconds and it was noted that the combined sensing and trajectory optimization was around seconds, or of the entire compute interval. A delay this large can have drastic consequences if not accounted for. This was not addressed in Usman et al. (2016).
As noted in Lu (2008), attempts to directly account for time delays in MPC formulations are limited, with the most notable proposed in Kwon et al. (2004) for linear systems. However this work is restricted to a specific LQR cost functional and does not account for control saturation. We present in this paper a more general approach based on Hamilton–Jacobi theory, which provides a natural way to deal with pure time delay in the control.
Generally, solutions to optimal control and trajectory problems can be found by solving a Hamilton–Jacobi (HJ) partial differential equation (PDE) as it establishes a sufficient condition for optimality [Osmolovskii (1998)]. Traditionally, numerical solutions to HJ equations require a dense, discrete grid of the solution space as in Osher and Fedkiw (2006); Mitchell (2008). Computing the elements of this grid scales poorly with dimension and has limited use for problems with dimension greater than four. The exponential dimensional scaling in optimization is sometimes referred to as the “curse of dimensionality” [Bellman (1957)].
A new result in Darbon and Osher (2016) discovered numerical solutions based on the Hopf formula [Hopf (1965)] that do not require a grid and can be used to efficiently compute solutions to a certain class of Hamilton–Jacobi PDEs. However, that only applied to systems with time-independent Hamiltonians of the form , and has limited use for general linear control problems. Recently, the classes of systems was expanded upon and generalizations of the Hopf formula were used to solve optimal linear control problems in high-dimensions in Kirchner et al. (2018a) and differential games as applied to a multi-vehicle, collaborative pursuit-evasion problem in Kirchner et al. (2018b).
The HJ formulation of the trajectory problem allows a simple and direct treatment of these computationally-induced time delays and there is no need to resort to approximation schemes such as Padé. The main contribution of this paper is to generalize the Hopf formula to directly account for time delays induced by online computation of the optimal control and trajectory. Motivated by robotic vehicle path planning problems where the communication is sensed and estimated online, we present as an additional contribution a seemingly new non-parametric model to estimate a communication channel where the location of the transmitter is unknown a priori.
The rest of the paper is organized as follows. Section 2 reviews HJ theory as it relates to linear optimal control and presents a level set method, based on the generalized Hopf formula, for fast computation of optimal trajectories with known time delay. Section 4 presents an online trajectory problem where a robot incrementally predicts a wireless communication channel from measurements as it travels. As part of this example, we derive a non-parametric model for channel estimation. Finally, we present results from simulations of the method in Section 5.
2 Solutions to the Hamilton–Jacobi
Equation with the Hopf Formula
Before proceeding we introduce some notation and assumptions. We consider linear dynamics
[TABLE]
where is the system state and is the control input, constrained to the convex admissible control set . We let denote a state trajectory that evolves in time, , with control input sequence according to starting from initial state at . The trajectory is a solution of in that it satisfies almost everywhere:
[TABLE]
We construct a cost functional for , given terminal time as
[TABLE]
where the function is the running cost and represents the rate that cost is accrued over time. The value function is defined as the minimum cost, , among all admissible controls for a given state with
[TABLE]
The value function in satisfies the dynamic programming principle [Bryson and Ho (1975); Evans (2010)] and also satisfies the following initial value Hamilton–Jacobi (HJ) equation by defining the function as , with being the viscosity solution of
[TABLE]
where the Hamiltonian is defined by
[TABLE]
The variable in* *denotes the costate, which in the HJ equation is associated with the gradient of the value function. We denote by the costate trajectory that satisfies almost everywhere:
[TABLE]
for with initial costate denoted by . With a slight abuse of notation, we will hereafter use to denote , since the initial state and control sequence can be inferred through context with the corresponding state trajectory, .
2.1 Viscosity Solutions with the Hopf Formula
Consider simplified system dynamics represented as
[TABLE]
The associated HJ equation no longer depends on state and is given as
[TABLE]
When is convex and continuous in , and is continuous in , it was shown in Evans (2010) that an exact, point-wise viscosity solution to can be found using the Hopf formula [Hopf (1965)]
[TABLE]
with the Fenchel–Legendre transform, denoted , defined for a convex, proper, lower semicontinuous function [Hiriart-Urruty and Lemaréchal (2012)] as
[TABLE]
The transform defined in is also referred to in literature as the convex conjugate.
Proceeding similar to Kirchner et al. (2018b), we can generalize the Hopf formula to by making a change of variables
[TABLE]
which results in the following system
[TABLE]
The terminal cost function is now defined in with
[TABLE]
For clarity in the sections to follow, we use the notation to refer to the Hamiltonian for systems defined by and for systems defined by . Notice that the system does not depend on state but is now time-varying. It was shown in (Kurzhanski and Varaiya, 2014, Section 5.3.2, p. 215) that the Hopf formula can be generalized for a time-dependent Hamiltonian of the system in with
[TABLE]
with Hamiltonian defined by
[TABLE]
For the remainder of the paper, we consider a time-optimal formulation in which is defined as
[TABLE]
where is the indicator function for the set and is defined by
[TABLE]
Suppose is a closed convex set such that , where denotes the interior of the set . Then defines a norm, which we denote with , which is the dual norm [Hiriart-Urruty and Lemaréchal (2012)] to . From this we can write in general as
[TABLE]
2.2 Time-Optimal Control to a Goal Set
Consider a goal set and a task to determine the control that drives the system into in minimal time. We represent the set as an implicit surface with cost function such that
[TABLE]
where denotes the interior of . Note that if the goal is a point in , then we can represent this by choosing as a ball with arbitrarily small radius. As noted in Kirchner et al. (2018a) we solve for the minimum time to reach the set by constructing a newton iteration, starting from an initial guess, , with
[TABLE]
where is the solution to at time . Notice the value function mush satisfy the HJ equation
[TABLE]
where is the argument of the minimizer in , which we will denote as . No change of variable is needed for the Newton update and we have
[TABLE]
We iterate until convergence at the optimal time to reach, which we denote as . The optimal control can be found directly from the necessary conditions of optimality established by Pontryagin’s principal [Pontryagin (2018)] by noting the optimal trajectory, denoted as , must satisfy
[TABLE]
where is the optimal costate trajectory and is given by
[TABLE]
This implies our optimal control is
[TABLE]
for all time , provided the gradient exists.
Note that in the above formulation, we compute a viscosity solution to without constructing a discrete grid and this method can provide a numerical solution that is efficient to compute even when the state space is high-dimensional. Additionally, no derivative approximations are needed with Hopf formula-based methods, and this eliminates the numeric dissipation introduced with the Lax–Friedrichs scheme that is necessary to maintain stability in grid-based methods.
3 Online Trajectory Optimization With Delay
We’ll be considering a RTOC framework for the rest of this work with a variable time horizon , where each is the optimal time-to-go as computed by Section 2.2. This can easily be applied to MPC problems by using a fixed, finite time horizon . The superscript is used to denote the computational update of each relevant quantity, with being the first optimization. With this notation, denotes our initial state when we initiate the computation, and likewise we denote by as the -th computed optimal trajectory. We re-compute the control online after seconds of traveling on the trajectory , which gives the new initial state for the next optimization as
[TABLE]
Using as the new initial condition, we proceed to use the methods of Section 2.2 to compute . Note that the time between updates, need not be uniform. Now consider the following linear state space model with time delay
[TABLE]
with delayed control input , and is the step-specific time delay. We can represent the delay dynamics in the same form as by defining , for , as
[TABLE]
We only consider causal systems and therefore assume each and
[TABLE]
The Hamiltonian becomes
[TABLE]
for the Hopf formula in with denoting the optimal inital costate for the update. Likewise we solve for the optimal time-to-reach of the delayed system using the methods of Section . The Hamiltonian for the Newton iteration becomes
[TABLE]
This implies our control becomes
[TABLE]
4 An Example of Online Sensing
and Trajectory Optimization
We present as an example a robotic vehicle that uses a radio transmitter to communicate data to a remote base station. The goal is to plan a trajectory to deliver the robot to a location with the best possible communication performance, in minimum time. The location of base station is unknown a priori and hence the communication link performance needs to be spatially estimated. Initially, the robot will have only a sparse number of samples of the communication link, or perhaps none at all, and needs to determine the channel-to-noise ratio (CNR). As the robot moves, more samples are collected and the estimate is improved. Each time the estimate is improved, a new trajectory needs to be generated, since the original trajectory is no longer optimal under the previous estimate.
This is similar to the problem addressed in Usman et al. (2016), but that work attempted to minimize total power, was not time-optimal, and did not account for time delays. We choose this example to demonstrate the method presented since communication link performance needs to be sensed online and the computation time for the channel estimation is non-trival. In the case of Usman et al. (2016), 2 seconds of computation was required for every 10 second computation cycle.
4.1 Channel Estimation with Unknown Emitter Location
It was proposed in Malmirchegini and Mostofi (2012) to model the CNR (in dB) at a particular spatial location from observed measurements as
[TABLE]
where is a parametric model of path loss, relating CNR to spatial distance to the (known) transmitter location, and is given as
[TABLE]
where and are constant parameters associated with the transmitter. The quantity represents the deviation of the true CNR from and is modeled nonparametrically as a Gaussian process [Rasmussen (2004)] with
[TABLE]
for each , where is referred to as the covariance function and for modeling communication channels was suggested in Malmirchegini and Mostofi (2012) to be
[TABLE]
for any channel measurements. The idea of constructing a model as a composition of a known parametric model and a non-parametric deviation is not uncommon and is generally formulated as Gaussian process regression with explicit basis functions (Rasmussen, 2004, Chapter 2.7). We present the model while omitting a detailed derivation as this is outside the scope of this work. For more information, the reader is encouraged to review Rasmussen (2004) for a thorough and complete review of Gaussian process regression and Malmirchegini and Mostofi (2012) for the derivation of the proposed covariance functions for communication models.
The model assumes a priori knowledge of the location of the transmitter, which for many robotic path planning problems may not be available at run-time. We propose to generalize by considering the case where the transmitting location is an unknown random variable distributed with probability density function and model with a single Gaussian process with
[TABLE]
where
[TABLE]
with denoting the covariance function associated to the path loss of the signal. The last equation follows from the fact the the sum of two kernels, i.e. , results in the sum of the respective covariance functions. To determine , we follow Neal (1996) to get
[TABLE]
Letting and a matrix with entries defined by , the posterior estimate of the channel at an unknown location can be found with mean
[TABLE]
with a vector of measurements, and the identity matrix of the approriate size. The variance of the channel estimate is given by
[TABLE]
An example is shown in Figure 1, where a vehicle collects measurements and uses the above method to estimate the unkown communucation channel.
5 Results
The methods presented above was implemented in MATLAB R2018b on a laptop equipped with an Intel Core i7-7500 CPU running at 2.70 GHz. We used as values for the parameters for communication channels what was presented in Usman et al. (2016) with , , , and . While the time to compute could vary as more measurements are gathered, we force a fixed value of time delay for consistency. We also follow Usman et al. (2016) for these values with seconds and seconds for all . The newton update of and is stopped when .
5.1 Planar Motion Example
We choose for dynamics with state , where is spatial position of a robot and is the velocity and
[TABLE]
The control is constrained to lie in the set . Since the 2-norm is self-dual, the Hamiltonian for this example is
[TABLE]
and the Hamitonian for the Newton update becomes
[TABLE]
with
[TABLE]
The control is found as
[TABLE]
The initial position of the robot is with initial velocity , and the transmitter is located at . We assume no prior channel measurements before moving, unlike in Usman et al. (2016), and use for the prior of transmitter location a uniform distribution of the operating area, with . The vehicle collects an additional sample when the vehicle has displaced meters, the scale length of kernel function. The vehicle guides to a goal set that is an ellipsoidal neighborhood around the peak of the estimated CNR by setting
[TABLE]
where and is the peak of the estimated CNR at the -ith iteration. The matrix is positive definite and defines the shape of the neighborhood. For this example, we use
[TABLE]
with being the maximal allowable velocity at the goal. We consider a vehicle that comes to close to rest at the goal, so set . This implies the follow initial value function
[TABLE]
Figure 2 shows the estimation and associated optimal trajectory for 3 optimization cycles. The vehicle starts with only a single sample of channel at the vehicle’s initial location. With the transmitter’s location unknown and assumed equally likely at any spot in the operating area, the estimate is biased towards the center of the area. The estimate and optimal trajectory to the peak in the estimated channel is shown in Fig. 2a. After traveling along this path for 10 seconds and acquiring more channel samples, a new estimate is shown in Fig 2b. The path was in an area of low received signal strength and the new estimate reduces the estimated channel in this region, as well as shifting the estimate of the peak closer to the ground-truth location. A time delay of 2 seconds was induced from the channel estimate and is compensated in the online update to the optimal trajectory, shown in green. Figure 2c shows another cycle of more measurements and an improved estimation of the channel with corresponding optimal path.
{ack}
The author would like to thank Arjun Muralidharan at the University of California, Santa Barbara (now a software engineer in the Network Infrastructure Group at Google, Inc.) for the many helpful and enlightening discussions on communication models used for robotic platforms.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Bellman (1957) Bellman, R.E. (1957). Dynamic Programming , volume 1. Princeton University Press.
- 2Bryson and Ho (1975) Bryson, A.R. and Ho, Y.C. (1975). Applied Optimal Control: Optimization, Estimation and Control . CRC Press.
- 3Camacho and Alba (2013) Camacho, E.F. and Alba, C.B. (2013). Model Predictive Control . Springer.
- 4Darbon and Osher (2016) Darbon, J. and Osher, S. (2016). Algorithms for overcoming the curse of dimensionality for certain Hamilton-Jacobi equations arising in control theory and elsewhere. Research in the Mathematical Sciences , 3(1), 19.
- 5Evans (2010) Evans, L.C. (2010). Partial Differential Equations . American Mathematical Society, Providence, R.I.
- 6Franklin et al. (2006) Franklin, G.F., Powell, J.D., and Emami-Naeini, A. (2006). Feedback Control of Dynamic Systems . Prentice Hall, 5 edition.
- 7Hiriart-Urruty and Lemaréchal (2012) Hiriart-Urruty, J.B. and Lemaréchal, C. (2012). Fundamentals of Convex Analysis . Springer Science & Business Media.
- 8Hopf (1965) Hopf, E. (1965). Generalized solutions of non-linear equations of first order. Journal of Mathematics and Mechanics , 14, 951–973.
