![]() |
torcs - 1.2.2 | ![]() |
#include <car.h>
#include <track.h>
Include dependency graph for robottools.h:
Go to the source code of this file.
Defines | |
#define | RELAXATION2(target, prev, rate) |
#define | RELAXATION(target, prev, rate) |
Functions | |
tdble | RtTrackGetWidth (tTrackSeg *seg, tdble toStart) |
Get the track width at the specified point. | |
void | RtTrackLocal2Global (tTrkLocPos *p, tdble *X, tdble *Y, int flag) |
Convert a Local position (segment, toRight, toStart). | |
void | RtTrackGlobal2Local (tTrackSeg *segment, tdble X, tdble Y, tTrkLocPos *p, int type) |
Convert a Global (segment, X, Y) position into a Local one (segment, toRight, toStart). | |
tdble | RtTrackHeightL (tTrkLocPos *p) |
Returns the absolute height in meters of the road at the Local position p. | |
tdble | RtTrackHeightG (tTrackSeg *seg, tdble X, tdble Y) |
Returns the absolute height in meters of the road at the Global position (segment, X, Y). | |
void | RtTrackSideNormalG (tTrackSeg *seg, tdble X, tdble Y, int side, t3Dd *norm) |
Give the normal vector of the border of the track including the sides. | |
tdble | RtTrackSideTgAngleL (tTrkLocPos *p) |
Used to get the tangent angle for a track position The angle is given in radian. | |
void | RtTrackSurfaceNormalL (tTrkLocPos *p, t3Dd *norm) |
Used to get the normal vector of the road (pointing upward). | |
int | RtDistToPit (struct CarElt *car, tTrack *track, tdble *dL, tdble *dW) |
Get the distance to the pit stop. | |
tdble | RtGetDistFromStart (tCarElt *car) |
Get the distance from the start lane. | |
tdble | RtGetDistFromStart2 (tTrkLocPos *p) |
Get the distance from the start lane. | |
void | RtTelemInit (tdble ymin, tdble ymax) |
Initialization of a telemetry session. | |
tTrackSeg * | RtTrackGetSeg (tTrkLocPos *p) |
Get the current segment. | |
void | RtTelemNewChannel (const char *name, tdble *var, tdble min, tdble max) |
Create a new telemetry channel. | |
void | RtTelemStartMonitoring (const char *filename) |
Start recording into a file. | |
void | RtTelemStopMonitoring (void) |
Stop recording and close the file. | |
void | RtTelemUpdate (double time) |
Record a new set of values. | |
void | RtTelemShutdown (void) |
Deinstall the telemetry module. |
|
Value: do { \ target = (prev) + (rate) * ((target) - (prev)) * 0.01; \ prev = (target); \ } while (0) |
|
Value: do { \ tdble __tmp__; \ __tmp__ = target; \ target = (prev) + (rate) * ((target) - (prev)) * 0.01; \ prev = __tmp__; \ } while (0) |
|
Get the current segment.
|
Here is the call graph for this function: