poses= actorPoses(scenario)returns the current poses (positions, velocities, and orientations) for all actors in the driving scenario,scenario. Actors includeActor和Vehicleobjects, which you can create using theactor和vehiclefunctions, respectively. Actor poses are in scenario coordinates.
Create a driving scenario containing a curved road, two straight roads, and two actors: a car and a bicycle. Both actors move along the road for 60 seconds.
Create the curved road using road center points following the arc of a circle with an 800-meter radius. The arc starts at 0°, ends at 90°, and is sampled at 5° increments.
Actor poses, in scenario coordinates, returned as a structure or an array of structures.Posesare the positions, velocities, and orientations of actors.
每个结构在poses有这些字段。
Field
Description
ActorID
Scenario-defined actor identifier, specified as a positive integer.
Position
Position of actor, specified as a real-valued vector of the form [x,y,z]. Units are in meters.
速度
速度(v) of actor in thex- ,,y- ,,和z- 方向,指定为表格的实价向量[vx,vy,vz]. Units are in meters per second.
Roll
Roll angle of actor, specified as a real-valued scalar. Units are in degrees.
沥青
沥青angle of actor, specified as a real-valued scalar. Units are in degrees.
Yaw
偏航角的演员,指定as a real-valued scalar. Units are in degrees.
AngularVelocity
Angular velocity (ω) of actor in thex- ,,y- ,,和z- 方向,指定为表格的实价向量[ωx,ωy,ωz]. Units are in degrees per second.
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.