Closed jyotishp closed 4 years ago
For the constraints, we need to take the complement of the set of velocities lying in the collision cone right? So technically, the complement of VO should be the returned constraints?
No. Constraint can either be an equality or an inequality.
Check the examples on https://www.mathworks.com/help/optim/ug/fmincon.html
Yeah inequality only, but it should be such that the velocity doesn't fall into VO cone right? So the opposite inequality of what we needed to check if a velocity lies inside the cone?
Objective
Make a single agent avoid multiple obstacles while reaching the goal.
What to do?
inSensorRange
that will take the state of the agent and a single obstacle and returntrue
if the obstacle is within the sensor range of the agent.getConstraints
that returns the non-linear constraints accepted byfmincon
using VO.getConstraints
only when theinSensorRange
for that obstacle istrue
.