Hello,

I've added a laser example to SVN head (gazebo/examples/player/laser)

The code to access range and intensity works fine on my end. I would
check to make sure that the index you're using it not out of range.

-nate

On Mon, Oct 13, 2008 at 6:56 AM, Stenzel, Jonas
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> I'm running gazebo from the svn-repository in combination with player
> 2.1.1 and ogre 1.6rc.
>
> I tried out the sample "laserobstacleavoid" program and everything
> worked fine. But when I try to call the GetIntensity() method of the
> LaserProxy class I get a Segmentation Fault.
>
>
>
> I just added the following two lines two the read-think-act loop of the
> program and recompiled it:
>
> int intensity;
>
> intensity=lp.GetIntensity(20);
>
>
>
> For debugging purposes I made a backtrace with gdb:
>
>
>
> Starting program:
> /home/jonas/ps/share/player/examples/libplayerc++/laserobstacleavoid
>
> [Thread debugging using libthread_db enabled]
>
> [New Thread 0xb7b4c6c0 (LWP 6533)]
>
> localhost: 6665
>
>
>
> Program received signal SIGSEGV, Segmentation fault.
>
> [Switching to Thread 0xb7b4c6c0 (LWP 6533)]
>
> 0x0804a32e in PlayerCc::ClientProxy::GetVar<int> ()
>
> Current language:  auto; currently asm
>
> (gdb) bt
>
> #0  0x0804a32e in PlayerCc::ClientProxy::GetVar<int> ()
>
> #1  0x0804a39e in PlayerCc::LaserProxy::GetIntensity ()
>
> #2  0x08049c7d in main ()
>
>
>
> When I start the program a second time while it is already running, no
> error occurs.
>
> For me, it looks like something has not been initialized...
>
>
>
> May anyone help me with that issue?
>
>
>
> Thanks a lot,
>
>
>
> Jonas
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Playerstage-gazebo mailing list
> Playerstage-gazebo@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Playerstage-gazebo mailing list
Playerstage-gazebo@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to