触发条件 point_distance
返回主体与参考点的距离.
- 参数:
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
reference |
pose_3d |
yes |
The reference point. |
direction |
yes |
Measure the distance in the x- coordinate/y-coordinate/xy-coordinate. |
|
mode |
yes |
Use reference_points/bounding_boxes to measure the distance between the reference points/bounding boxes. |
使用方法:当动作主体与参考点之间的距离 > 或<或==某个长度值时,触发动作.
样例
my_xyz: xyz_point = map.create_xyz_point(x: 0.0m, y: 10.0m,z: m_z) my_pose3d: pose_3d with: keep(it.xyz_point == my_xyz) m_direction: distance_direction = euclidianDistance m_mode: distance_mode = reference_points do parallel: # Story serial: # action1 wait Ego.point_distance(my_pose3d, m_direction, m_mode) > 10.0m Ego.activate_controller(true, true)