Hi Fred
Thank you ! That was the trick...
Greetings
Frederic
Fred Labrosse wrote:
> On Thursday 10 Jul 2008, Frederic Siepmann wrote:
>> Hello Players...
>>
>> I am having some trouble with my laser under player 2.1.1. I am creating
>> a LaserProxy like this:
>>
>> PlayerClient client(DEFAULT_HOST);
>> LaserProxy laserProxy;
>> ...
>> Position2dProxy position(&client,0);
>> ...
>> laserProxy = new LaserProxy(&client, 0);
>>
>> but when I try to get data in a loop with:
>>
>> laserProxy->GetRange(i);
>>
>> I will get a segfault with the following backtrace:
>>
>> #0 0x08058ec3 in PlayerCc::ClientProxy::GetVar<double> ()
>> #1 0x08058f08 in PlayerCc::LaserProxy::GetRange ()
>> #2 0x080547a6 in maincalc ()
>> #3 0x08056e88 in main ()
>>
>> BUT playerv does display laserdata just fine.
>> What am I doing wrong ?!
>
> Before doing a GetRange() for the first time (e.g. just after creating the
> laser proxy) you have to Read() until you get a number of ray that is not 0.
> I don't know if this is a bug or a feature, but that solves it...
>
> Fred
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at
http://www.sourceforge.net/community/cca08> _______________________________________________
> Playerstage-users mailing list
>
Playerstage-users@...
>
https://lists.sourceforge.net/lists/listinfo/playerstage-users--
Dipl. Inform. Frederic Siepmann
fsiepman@...
Office: M6-113
Phone: +49 (0)521-106-2950
Faculty of Technology
Bielefeld University
Applied Computer Science
P.O. Box 10 01 31
D-33501 Bielefeld
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at
http://www.sourceforge.net/community/cca08_______________________________________________
Playerstage-users mailing list
Playerstage-users@...
https://lists.sourceforge.net/lists/listinfo/playerstage-users