更新时间:2024-05-13 GMT+08:00
分享

触发条件 point_distance

返回主体与参考点的距离.

  • 参数:
表1 point_distance参数

Parameter

Type

Mandatory

Description

reference

pose_3d

yes

The reference point.

direction

distance_direction

yes

Measure the distance in the x- coordinate/y-coordinate/xy-coordinate.

mode

distance_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)
分享:

    相关文档

    相关产品