(See type vrep in file vrep.hs. Vehicle coordinate frame (for a vehicle following the road segment as shown on the figure) is a left-handed frame where only the x and z-axes are aligned.
The transformation between the vehicle and global coordinate frames cannot be described by using "standard" matrices used in robotics applications, bacause the former is right-handed while the latter is left-handed. For a two-dimensional system, the transformation, given by the matrix vgam, can be written as:
| cos(a) sin(a) 0 |
[gxp gyp gzp]' = [xDot yDot zDot] * | sin(a) -cos(a) 0 |
| 0 0 1 |
^
vgam __|
where a is the angle between x-axes of the vehicle and global reference frames. The matrix vgam differs from a standard coordinate frame transformation matrix in two ways:
- The position/velocity vectors are written as row vectors resulting in a "transposed" transformation matrix definition, and
- The difference in the definition of the coordinate frames forces the second column of the matrix vgam to be the negative of the second row of a standard transformation matrix (*).
A Note on Visualization: The animation window on TkShift assumes a point of origin (0,0) at the upper left corner of the window. In other words, the unit vector (1,0) points to the right along the upper side of the animation window, while the unit vector (0,1) points down along the left side of the frame.
With the definitions of the reference frames given above, TkShift animation window will plot the "real" positions in the simulation environment. On the other hand, SmartPATH animations use right-handed coordinate frame.
III. References
- A. Deshpande, D. Godbole, A. Gollu, L. Semenzato, R. Sengupta, D. Swaroop and P. Varaiya, "Automated Highway Systems Tool Interface Format," PATH Report, 1996 [outdated].
- California PATH Smart AHS, http://www.path.berkeley.edu/smart-ahs, California PATH (June 1997).
- A. Deshpande, "AHS Components in SHIFT," California PATH Report (July 1997).
* The standard transformation matrix for a rotation of a radians around the z-axis is given as:
| cos(a) sin(a) 0 |
| -sin(a) cos(a) 0 |
| 0 0 1 |
Back to California PATH Smart-AHS page
Back to Cem Ünsal's Sensor & HDM Models page
Cem Ünsal and Aleks Göllü
Last modified on July 1997