MvtUtil: Set a path to an array
ASTER::ACTION::MotionControl::MvtUtil: Specifty a path to a JSON array for referencing as mvt.Target.
Specify the path to the JSON array that stores the XY coordinates using a JSON pointer.The specified path is useed for referencing the coordinates and is treated as mvt.Target.
One of ASTER’s Motion Templates, MoveTowards, involves selecting both the “target (mvt.Target
)” and the “pursuer (mvt.Pursuer
)” that tracks the target.
In ASTER’s MoveTowards, the target is defined as “something that holds coordinate data.” This means that not only object instances but also array data can serve as the target.
This function specifies the path to a JSON array referenced as the mvt.Target using a JSON Pointer. The JSON array that can serve as the target is a two-dimensional array, storing X and Y coordinates as integers.
Parameter
Define the following JSON as a two-dimensional array that stores XY coordinates for use in MoveTowards.
{
"xyCoods":[
[200,200],
[200,300]
]
}
Specify the path using a JSON Pointer.
"/xyCoods"