You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
(2) |
Apr
(5) |
May
(8) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
| 2002 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
(7) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(9) |
Nov
(10) |
Dec
(6) |
| 2003 |
Jan
(3) |
Feb
(8) |
Mar
(2) |
Apr
(47) |
May
(23) |
Jun
(5) |
Jul
(6) |
Aug
(19) |
Sep
(13) |
Oct
(3) |
Nov
(29) |
Dec
(3) |
| 2004 |
Jan
(2) |
Feb
(89) |
Mar
(10) |
Apr
(3) |
May
(17) |
Jun
(6) |
Jul
(12) |
Aug
(25) |
Sep
(20) |
Oct
(28) |
Nov
(23) |
Dec
(9) |
| 2005 |
Jan
(18) |
Feb
(7) |
Mar
(36) |
Apr
(29) |
May
(10) |
Jun
(9) |
Jul
(35) |
Aug
(64) |
Sep
(40) |
Oct
(11) |
Nov
(3) |
Dec
(9) |
| 2006 |
Jan
(12) |
Feb
(13) |
Mar
(7) |
Apr
(10) |
May
(18) |
Jun
(19) |
Jul
(3) |
Aug
(5) |
Sep
(7) |
Oct
(18) |
Nov
(11) |
Dec
(10) |
| 2007 |
Jan
(15) |
Feb
(6) |
Mar
(10) |
Apr
(11) |
May
(10) |
Jun
(18) |
Jul
(10) |
Aug
(18) |
Sep
(31) |
Oct
(21) |
Nov
(13) |
Dec
(2) |
| 2008 |
Jan
(26) |
Feb
(15) |
Mar
(24) |
Apr
(23) |
May
(11) |
Jun
(5) |
Jul
(16) |
Aug
(11) |
Sep
(12) |
Oct
(10) |
Nov
(3) |
Dec
(16) |
| 2009 |
Jan
(18) |
Feb
(3) |
Mar
(3) |
Apr
(15) |
May
(5) |
Jun
(19) |
Jul
(4) |
Aug
(5) |
Sep
(16) |
Oct
(23) |
Nov
(7) |
Dec
(7) |
| 2010 |
Jan
(14) |
Feb
(27) |
Mar
(12) |
Apr
(10) |
May
(2) |
Jun
(8) |
Jul
(6) |
Aug
(3) |
Sep
(6) |
Oct
(4) |
Nov
(3) |
Dec
(1) |
| 2011 |
Jan
(3) |
Feb
(6) |
Mar
(2) |
Apr
(2) |
May
(2) |
Jun
(2) |
Jul
(4) |
Aug
(7) |
Sep
|
Oct
(1) |
Nov
(6) |
Dec
(2) |
| 2012 |
Jan
(3) |
Feb
(1) |
Mar
(6) |
Apr
(14) |
May
|
Jun
(7) |
Jul
(15) |
Aug
(9) |
Sep
(35) |
Oct
(28) |
Nov
(23) |
Dec
(10) |
| 2013 |
Jan
(8) |
Feb
(7) |
Mar
(17) |
Apr
(8) |
May
(17) |
Jun
(14) |
Jul
(3) |
Aug
(2) |
Sep
(22) |
Oct
(18) |
Nov
(31) |
Dec
(15) |
| 2014 |
Jan
|
Feb
(4) |
Mar
(1) |
Apr
(2) |
May
(19) |
Jun
(2) |
Jul
(1) |
Aug
(13) |
Sep
(4) |
Oct
(1) |
Nov
|
Dec
(3) |
| 2015 |
Jan
(8) |
Feb
(2) |
Mar
(4) |
Apr
(23) |
May
(4) |
Jun
(5) |
Jul
|
Aug
(3) |
Sep
(4) |
Oct
(3) |
Nov
(8) |
Dec
(4) |
| 2016 |
Jan
(4) |
Feb
(9) |
Mar
(12) |
Apr
(13) |
May
(5) |
Jun
(4) |
Jul
(1) |
Aug
(8) |
Sep
(3) |
Oct
(15) |
Nov
(10) |
Dec
(3) |
| 2017 |
Jan
(10) |
Feb
(6) |
Mar
(11) |
Apr
(15) |
May
(13) |
Jun
(6) |
Jul
(3) |
Aug
(7) |
Sep
(1) |
Oct
(11) |
Nov
(2) |
Dec
(3) |
| 2018 |
Jan
(4) |
Feb
(1) |
Mar
(1) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(3) |
Nov
(1) |
Dec
(4) |
| 2019 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
(1) |
Oct
(3) |
Nov
|
Dec
(1) |
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
|
Feb
(2) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
| 2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
1
(1) |
|
2
(4) |
3
(2) |
4
|
5
(1) |
6
(1) |
7
|
8
(1) |
|
9
(1) |
10
(1) |
11
|
12
|
13
(1) |
14
(1) |
15
(1) |
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
|
30
|
31
|
|
|
|
|
|
|
From: David S. <dsa...@te...> - 2016-10-15 07:20:29
|
----- Bernhard Wymann wrote:
> Hi David
>
> This patch is wrong, the original is correct. The differential equations
> are calculated with an euler step, so:
> 1. Calculate Forces F(t)
> 2. Calculate accelerations : a(t) = f(F(t))
> 3. Calculate speed, v(t) = v(t-1) + a(t)*dt
> 4. Calculate positions, s(t) = s(t-1) + v(t)*dt
>
> 10 years ago or so we tried an alternative integration scheme for some
> forces (e.g. tires), but the calculation/complexity overhead was not
> worth the effect.
>
> Kind regards
>
> Bernhard
>
Thanks for the feedback.
I reverted the last patch and made a new one that works better.
It is noteworthy that F(t) is also a function of speed (slip velocity),
and is subsequently used to calculate a new speed. One misordered
line of code could give SimWheelUpdateForce() some data from a
wrong iteration.
--- torcs-1.3.7/src/modules/simu/simuv2/simu.cpp 2016-10-14 21:50:11.000000000 -0700
+++ torcs-1.3.7/src/modules/simu/simuv2/simu.cpp 2016-10-14 21:51:33.000000000 -0700
@@ -380,14 +380,14 @@
SimAxleUpdate(car, i);
}
CHECK(car);
+ SimWheelUpdateRotation(car);
+ CHECK(car);
for (i = 0; i < 4; i++){
SimWheelUpdateForce(car, i);
}
CHECK(car);
SimTransmissionUpdate(car);
CHECK(car);
- SimWheelUpdateRotation(car);
- CHECK(car);
SimCarUpdate(car, s);
CHECK(car);
} else {
> On 14.10.2016 01:45, David Savinkoff wrote:
> > Tire forces are calculated in:
> > torcs-1.3.7/src/modules/simu/simuv2/wheel.cpp :: SimWheelUpdateForce()
> >
> > Torcs now drives and slides with less swaying and spinning instabilities.
> >
> > See following in patch (torcs-1.3.7/src/modules/simu/simuv2/car.cpp):
> >
> > @@ -400,10 +384,10 @@
> > void
> > SimCarUpdate(tCar *car, tSituation * /* s */)
> > {
> > - SimCarUpdateForces(car);
> > - CHECK(car);
> > SimCarUpdateSpeed(car);
> > CHECK(car);
> > + SimCarUpdateForces(car);
> > + CHECK(car);
> > SimCarUpdateCornerPos(car);
> > CHECK(car);
> >
|
|
From: Bernhard W. <be...@bl...> - 2016-10-14 23:14:39
|
Hi David
This patch is wrong, the original is correct. The differential equations
are calculated with an euler step, so:
1. Calculate Forces F(t)
2. Calculate accelerations : a(t) = f(F(t))
3. Calculate speed, v(t) = v(t-1) + a(t)*dt
4. Calculate positions, s(t) = s(t-1) + v(t)*dt
10 years ago or so we tried an alternative integration scheme for some
forces (e.g. tires), but the calculation/complexity overhead was not
worth the effect.
Kind regards
Bernhard
On 14.10.2016 01:45, David Savinkoff wrote:
> Tire forces are calculated in:
> torcs-1.3.7/src/modules/simu/simuv2/wheel.cpp :: SimWheelUpdateForce()
>
> Torcs now drives and slides with less swaying and spinning instabilities.
>
> See following in patch (torcs-1.3.7/src/modules/simu/simuv2/car.cpp):
>
> @@ -400,10 +384,10 @@
> void
> SimCarUpdate(tCar *car, tSituation * /* s */)
> {
> - SimCarUpdateForces(car);
> - CHECK(car);
> SimCarUpdateSpeed(car);
> CHECK(car);
> + SimCarUpdateForces(car);
> + CHECK(car);
> SimCarUpdateCornerPos(car);
> CHECK(car);
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Torcs-users mailing list
> Tor...@li...
> https://lists.sourceforge.net/lists/listinfo/torcs-users
>
|
|
From: David S. <dsa...@te...> - 2016-10-13 23:46:05
|
Tire forces are calculated in:
torcs-1.3.7/src/modules/simu/simuv2/wheel.cpp :: SimWheelUpdateForce()
Torcs now drives and slides with less swaying and spinning instabilities.
See following in patch (torcs-1.3.7/src/modules/simu/simuv2/car.cpp):
@@ -400,10 +384,10 @@
void
SimCarUpdate(tCar *car, tSituation * /* s */)
{
- SimCarUpdateForces(car);
- CHECK(car);
SimCarUpdateSpeed(car);
CHECK(car);
+ SimCarUpdateForces(car);
+ CHECK(car);
SimCarUpdateCornerPos(car);
CHECK(car);
|
|
From: David S. <dsa...@te...> - 2016-10-10 02:22:49
|
The last two patches accidentally had the proper slip angle reverted. This patch corrects this. Drive this one. Thanks, David ----- David Savinkoff wrote: > ----- David Savinkoff wrote: > > Speed Dreams noted: > > // elevate car when it has slightly impacted into ground. (SD r6312), > > and made a workaround without addressing the real problem. > > > > torcs-1.3.7/src/modules/simu/simuv2/collide.cpp line 40 > > erroneously changes car->DynGCg.pos.z by the amount the wheel > > is displaced... but the wheel is Not directly beneath the > > center of gravity (COG). The wheel actually acts as a lever > > with the other wheels to displace the COG approximately half > > as much. > > > > There are possibly two solutions: > > 1) multiply by 0.5 > > This should be 0.25 to divide the leverage between 4 wheels. > New patch included. works better than 0.5 also. > > > 2) assign the value to a variable other than car->DynGCg.pos.z > > > > torcs-1.3.7.2016oct08.diff attached (yes, TORCS drives a little better) > > > > Sincerely, > > David Savinkoff > |
|
From: David S. <dsa...@te...> - 2016-10-09 02:37:39
|
----- David Savinkoff wrote: > Speed Dreams noted: > // elevate car when it has slightly impacted into ground. (SD r6312), > and made a workaround without addressing the real problem. > > torcs-1.3.7/src/modules/simu/simuv2/collide.cpp line 40 > erroneously changes car->DynGCg.pos.z by the amount the wheel > is displaced... but the wheel is Not directly beneath the > center of gravity (COG). The wheel actually acts as a lever > with the other wheels to displace the COG approximately half > as much. > > There are possibly two solutions: > 1) multiply by 0.5 This should be 0.25 to divide the leverage between 4 wheels. New patch included. works better than 0.5 also. > 2) assign the value to a variable other than car->DynGCg.pos.z > > torcs-1.3.7.2016oct08.diff attached (yes, TORCS drives a little better) > > Sincerely, > David Savinkoff |
|
From: David S. <dsa...@te...> - 2016-10-08 22:36:09
|
Speed Dreams noted: // elevate car when it has slightly impacted into ground. (SD r6312), and made a workaround without addressing the real problem. torcs-1.3.7/src/modules/simu/simuv2/collide.cpp line 40 erroneously changes car->DynGCg.pos.z by the amount the wheel is displaced... but the wheel is Not directly beneath the center of gravity (COG). The wheel actually acts as a lever with the other wheels to displace the COG approximately half as much. There are possibly two solutions: 1) multiply by 0.5 2) assign the value to a variable other than car->DynGCg.pos.z torcs-1.3.7.2016oct08.diff attached (yes, TORCS drives a little better) Sincerely, David Savinkoff |
|
From: David S. <dsa...@te...> - 2016-10-06 08:23:15
|
Hi,
This patch changes the default values (wrt torcs-1.3.7.2016oct01.diff)
[patch line 198]
- wheel->lfMax = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMAX, (char*)NULL, 1.6f);
- wheel->lfMin = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMIN, (char*)NULL, 0.8f);
+ wheel->lfMax = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMAX, (char*)NULL, 1.4f);
+ wheel->lfMin = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMIN, (char*)NULL, 1.0f);
and reverts previous code that used scaled defaults.
This patch also changes this line so that it has
the same value as torcs-1.3.7 ('sa' is not utilized in patch)
[patch line 327]
- wheel->sa = sa;
+ wheel->sa = atan2(wheel->bodyVel.y, wheel->bodyVel.x) - waz;
----- David Savinkoff wrote:
> ----- Bernhard Wymann wrote:
> > Hi David
> >
> > You can set these parameters directly in the xml configuration of the
> > car, no reason to fudge with the code, see wheel.cpp:
> > wheel->lfMax = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMAX,
> > (char*)NULL, 1.6f);
> > wheel->lfMin = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMIN,
> > (char*)NULL, 0.8f);
> >
> > Look up the definition in car.h for the effective xml parameter name:
> > #define PRM_LOADFMIN "load factor min"
> > #define PRM_OPLOAD "operating load"
> >
> > Kind regards
> >
> > Bernhard
> >
> Hi Bernhard,
>
> Thanks for the info. I just used grep on TORCS to scan everything
> and found that ./data/cars/models/kc-bigh/kc-bigh.xml is the only
> car in torcs-1.3.7 that sets "load factor max" or min.
> All of the other cars use the default that you showed here:
> > wheel.cpp:
> > wheel->lfMax = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMAX,
> > (char*)NULL, 1.6f);
> > wheel->lfMin = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMIN,
> > (char*)NULL, 0.8f);
>
> I believe the default should be changed to
>
> wheel->lfMax = GfParmGetNum(... , ...PRM_LOADFMAX, ... 1.4f);
> wheel->lfMin = GfParmGetNum(... , ...PRM_LOADFMIN, ... 1.0f);
>
> because this improves all of the cars that I tested on different tracks.
>
> Sincerely,
> David Savinkoff
>
> > On 02.10.2016 00:02, David Savinkoff wrote:
> > > Hi,
> > >
> > > I found that halving the range of wheel->lfMax and wheel->lfMin
> > > greatly improves realistic tire performance in TORCS
> > >
> > > see line 283 in the patch:
> > >
> > > // load sensitivity
> > > - mu = wheel->mu * (wheel->lfMin + (wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * zforce / wheel->opLoad));
> > > + mu = wheel->mu * ((0.75f*wheel->lfMin + 0.25f*wheel->lfMax) + 0.5f*(wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * zforce / wheel->opLoad));
> > >
> > > Test the true limits with TORCS.
> >
>
|
|
From: Joseph G. <jmg...@mt...> - 2016-10-05 01:08:58
|
Does that mean that there is an updated robotgen script I should use
instead? or just copy the example files? Sorry for my ignorance.
On Sun, Oct 2, 2016 at 6:09 PM, Bernhard Wymann <be...@bl...> wrote:
> Hi Joseph
>
> Yes, there was an API-Change, use strdup, example from bt.cpp in TORCS:
> extern "C" int bt(tModInfo *modInfo)
> {
> ...
> modInfo[i].name = strdup(botname[i]);
> modInfo[i].desc = strdup(botdesc[i]);
>
> Btw. if somebody wants to bring the tutorial to the current date, let me
> know (I plan to update it and integrate it into the TORCS documentation
> when the 1.3.x series will get to pure mantainance mode, so this can take
> another year or so).
>
> Kind regards
>
> Bernhard
>
> On 02.10.2016 03:12, Joseph Giancarlo wrote:
>
>> I (semi) successfully compiled 1.3.7! and am now trying to make a
>> driver. I followed the steps in the tutorial and everything seemed ok
>> until I run make on the new bot and I get this warning:
>> _________________________________________________________
>> jbt.cpp: In function ‘int jbt(tModInfo*)’:
>> jbt.cpp:52:22: warning: deprecated conversion from string constant to
>> ‘char*’ [-Wwrite-strings]
>> modInfo->name = "jbt"; /* name of the module (short) */
>> ^
>> jbt.cpp:53:22: warning: deprecated conversion from string constant to
>> ‘char*’ [-Wwrite-strings]
>> modInfo->desc = "test"; /* description of the module (can be
>> long) */
>> ^
>> g++ -shared -o jbt.so jbt.o -L/usr/src/torcs/torcs-1.3.7/export/lib
>> -lopenal -lalut -lvorbisfile -L/usr/lib
>> Exporting jbt.so to /usr/src/torcs/torcs-1.3.7/export/drivers/jbt/jbt.so
>>
>> ____________________________________________________________
>>
>>
>> Then if i run torcs and start a race with the bot it closes
>>
>> Any advice would be appreciated. Thanks!
>>
>> On Sun, Sep 25, 2016 at 6:48 PM, David Savinkoff <dsa...@te...
>> <mailto:dsa...@te...>> wrote:
>>
>> ----- Joseph Giancarlo wrote:
>> > Hello all,
>> >
>> > I finally got around to reinstalling ubuntu and am now trying to
>> get torcs
>> > going and hopefully race next season. I ran into some errors
>> configuring
>> > torcs and would appreciate someone helping me through the error
>> log. I
>> > could not figure out where it breaks.
>> >
>> > thanks,
>> > --
>> > Joe
>>
>> You are compiling torcs-1.2.4 and 'configure' cannot find libm because
>> much has changed since torcs-1.2.4
>>
>> torcs-1.3.7 is the current version, it should compile.
>>
>>
>>
>>
>> --
>> Joseph Giancarlo
>> Michigan Technological University
>> Civil Engineering 2016
>> 248-763-9592
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>
>>
>>
>> _______________________________________________
>> Torcs-users mailing list
>> Tor...@li...
>> https://lists.sourceforge.net/lists/listinfo/torcs-users
>>
>>
>
--
Joseph Giancarlo
Michigan Technological University
Civil Engineering 2016
248-763-9592
|
|
From: Bernhard W. <be...@bl...> - 2016-10-03 18:26:10
|
Hi From your variables I would guess that TORCS_BASE points to the wrong directory: TORCS_BASE is supposed to point to the TORCS sources (e.g. just check if "ls $MAKE_DEFAULT" is able to list the file), from your variable I guess it is pointing to the binaries. http://www.berniw.org/tutorials/robot/torcs/install/torcs-setup.html The variables/make etc. just work if you have configured/installed TORCS from your source directory. Additionally it could be that "sudo" does not propagete the environment and that the variables are not set for root. Kind regards Bernhard On 03.10.2016 10:00, Juan Luis Hortelano wrote: > Hi, > > I have been trying to make the driver bt following berniw tutorial with > no luck. I keep finding the message after executing "sudo make" in the > bt folder: > > "make: *** No targets. Stop." > > I think I've set up the environment variables right, this is in my .bashrc: > > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib > export TORCS_BASE=/usr/local/share/games/torcs > export MAKE_DEFAULT=$TORCS_BASE/Make-default.mk <http://default.mk> > > I'm using torcs 1.3.7 and I followed the installation manual step by > step. I've been trying to fix this for several days now. > > Could somebody help me out please? > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Torcs-users mailing list > Tor...@li... > https://lists.sourceforge.net/lists/listinfo/torcs-users > |
|
From: Juan L. H. <jes...@gm...> - 2016-10-03 08:00:39
|
Hi, I have been trying to make the driver bt following berniw tutorial with no luck. I keep finding the message after executing "sudo make" in the bt folder: "make: *** No targets. Stop." I think I've set up the environment variables right, this is in my .bashrc: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export TORCS_BASE=/usr/local/share/games/torcs export MAKE_DEFAULT=$TORCS_BASE/Make-default.mk I'm using torcs 1.3.7 and I followed the installation manual step by step. I've been trying to fix this for several days now. Could somebody help me out please? |
|
From: David S. <dsa...@te...> - 2016-10-02 23:48:41
|
----- Bernhard Wymann wrote: > Hi David > > You can set these parameters directly in the xml configuration of the > car, no reason to fudge with the code, see wheel.cpp: > wheel->lfMax = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMAX, > (char*)NULL, 1.6f); > wheel->lfMin = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMIN, > (char*)NULL, 0.8f); > > Look up the definition in car.h for the effective xml parameter name: > #define PRM_LOADFMIN "load factor min" > #define PRM_OPLOAD "operating load" > > Kind regards > > Bernhard > Hi Bernhard, Thanks for the info. I just used grep on TORCS to scan everything and found that ./data/cars/models/kc-bigh/kc-bigh.xml is the only car in torcs-1.3.7 that sets "load factor max" or min. All of the other cars use the default that you showed here: > wheel.cpp: > wheel->lfMax = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMAX, > (char*)NULL, 1.6f); > wheel->lfMin = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMIN, > (char*)NULL, 0.8f); I believe the default should be changed to wheel->lfMax = GfParmGetNum(... , ...PRM_LOADFMAX, ... 1.4f); wheel->lfMin = GfParmGetNum(... , ...PRM_LOADFMIN, ... 1.0f); because this improves all of the cars that I tested on different tracks. Sincerely, David Savinkoff > On 02.10.2016 00:02, David Savinkoff wrote: > > Hi, > > > > I found that halving the range of wheel->lfMax and wheel->lfMin > > greatly improves realistic tire performance in TORCS > > > > see line 283 in the patch: > > > > // load sensitivity > > - mu = wheel->mu * (wheel->lfMin + (wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * zforce / wheel->opLoad)); > > + mu = wheel->mu * ((0.75f*wheel->lfMin + 0.25f*wheel->lfMax) + 0.5f*(wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * zforce / wheel->opLoad)); > > > > Test the true limits with TORCS. > |
|
From: Bernhard W. <be...@bl...> - 2016-10-02 22:15:38
|
Hi Joseph
Yes, there was an API-Change, use strdup, example from bt.cpp in TORCS:
extern "C" int bt(tModInfo *modInfo)
{
...
modInfo[i].name = strdup(botname[i]);
modInfo[i].desc = strdup(botdesc[i]);
Btw. if somebody wants to bring the tutorial to the current date, let me
know (I plan to update it and integrate it into the TORCS documentation
when the 1.3.x series will get to pure mantainance mode, so this can
take another year or so).
Kind regards
Bernhard
On 02.10.2016 03:12, Joseph Giancarlo wrote:
> I (semi) successfully compiled 1.3.7! and am now trying to make a
> driver. I followed the steps in the tutorial and everything seemed ok
> until I run make on the new bot and I get this warning:
> _________________________________________________________
> jbt.cpp: In function ‘int jbt(tModInfo*)’:
> jbt.cpp:52:22: warning: deprecated conversion from string constant to
> ‘char*’ [-Wwrite-strings]
> modInfo->name = "jbt"; /* name of the module (short) */
> ^
> jbt.cpp:53:22: warning: deprecated conversion from string constant to
> ‘char*’ [-Wwrite-strings]
> modInfo->desc = "test"; /* description of the module (can be
> long) */
> ^
> g++ -shared -o jbt.so jbt.o -L/usr/src/torcs/torcs-1.3.7/export/lib
> -lopenal -lalut -lvorbisfile -L/usr/lib
> Exporting jbt.so to /usr/src/torcs/torcs-1.3.7/export/drivers/jbt/jbt.so
>
> ____________________________________________________________
>
>
> Then if i run torcs and start a race with the bot it closes
>
> Any advice would be appreciated. Thanks!
>
> On Sun, Sep 25, 2016 at 6:48 PM, David Savinkoff <dsa...@te...
> <mailto:dsa...@te...>> wrote:
>
> ----- Joseph Giancarlo wrote:
> > Hello all,
> >
> > I finally got around to reinstalling ubuntu and am now trying to
> get torcs
> > going and hopefully race next season. I ran into some errors
> configuring
> > torcs and would appreciate someone helping me through the error log. I
> > could not figure out where it breaks.
> >
> > thanks,
> > --
> > Joe
>
> You are compiling torcs-1.2.4 and 'configure' cannot find libm because
> much has changed since torcs-1.2.4
>
> torcs-1.3.7 is the current version, it should compile.
>
>
>
>
> --
> Joseph Giancarlo
> Michigan Technological University
> Civil Engineering 2016
> 248-763-9592
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Torcs-users mailing list
> Tor...@li...
> https://lists.sourceforge.net/lists/listinfo/torcs-users
>
|
|
From: Bernhard W. <be...@bl...> - 2016-10-02 22:14:56
|
Hi David You can set these parameters directly in the xml configuration of the car, no reason to fudge with the code, see wheel.cpp: wheel->lfMax = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMAX, (char*)NULL, 1.6f); wheel->lfMin = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMIN, (char*)NULL, 0.8f); Look up the definition in car.h for the effective xml parameter name: #define PRM_LOADFMIN "load factor min" #define PRM_OPLOAD "operating load" Kind regards Bernhard On 02.10.2016 00:02, David Savinkoff wrote: > Hi, > > I found that halving the range of wheel->lfMax and wheel->lfMin > greatly improves realistic tire performance in TORCS > > see line 283 in the patch: > > // load sensitivity > - mu = wheel->mu * (wheel->lfMin + (wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * zforce / wheel->opLoad)); > + mu = wheel->mu * ((0.75f*wheel->lfMin + 0.25f*wheel->lfMax) + 0.5f*(wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * zforce / wheel->opLoad)); > > Test the true limits with TORCS. |
|
From: Joseph G. <jmg...@mt...> - 2016-10-02 01:13:25
|
I (semi) successfully compiled 1.3.7! and am now trying to make a driver. I
followed the steps in the tutorial and everything seemed ok until I run
make on the new bot and I get this warning:
_________________________________________________________
jbt.cpp: In function ‘int jbt(tModInfo*)’:
jbt.cpp:52:22: warning: deprecated conversion from string constant to
‘char*’ [-Wwrite-strings]
modInfo->name = "jbt"; /* name of the module (short) */
^
jbt.cpp:53:22: warning: deprecated conversion from string constant to
‘char*’ [-Wwrite-strings]
modInfo->desc = "test"; /* description of the module (can be long)
*/
^
g++ -shared -o jbt.so jbt.o -L/usr/src/torcs/torcs-1.3.7/export/lib
-lopenal -lalut -lvorbisfile -L/usr/lib
Exporting jbt.so to /usr/src/torcs/torcs-1.3.7/export/drivers/jbt/jbt.so
____________________________________________________________
Then if i run torcs and start a race with the bot it closes
Any advice would be appreciated. Thanks!
On Sun, Sep 25, 2016 at 6:48 PM, David Savinkoff <dsa...@te...> wrote:
> ----- Joseph Giancarlo wrote:
> > Hello all,
> >
> > I finally got around to reinstalling ubuntu and am now trying to get
> torcs
> > going and hopefully race next season. I ran into some errors configuring
> > torcs and would appreciate someone helping me through the error log. I
> > could not figure out where it breaks.
> >
> > thanks,
> > --
> > Joe
>
> You are compiling torcs-1.2.4 and 'configure' cannot find libm because
> much has changed since torcs-1.2.4
>
> torcs-1.3.7 is the current version, it should compile.
>
--
Joseph Giancarlo
Michigan Technological University
Civil Engineering 2016
248-763-9592
|
|
From: David S. <dsa...@te...> - 2016-10-01 22:02:48
|
Hi, I found that halving the range of wheel->lfMax and wheel->lfMin greatly improves realistic tire performance in TORCS see line 283 in the patch: // load sensitivity - mu = wheel->mu * (wheel->lfMin + (wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * zforce / wheel->opLoad)); + mu = wheel->mu * ((0.75f*wheel->lfMin + 0.25f*wheel->lfMax) + 0.5f*(wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * zforce / wheel->opLoad)); Test the true limits with TORCS. |