I think you're right. Although I downloaded the gazebo-7.0.tar sime time ago, 
gazebo.h says :
/// Interface version number
#define LIBGAZEBO_VERSION 0x060

So I think I just download a stable 0.7 version.

Tanks for you help!
-----Ursprüngliche Nachricht-----
Von: Gazebo developers <[email protected]>
Gesendet: 18.10.07 14:38:02
An: Gazebo developers <[email protected]>
Betreff: Re: [PlayerStage-Gazebo] Problem with infra red interface


Jonas,

I would guess that you are including headers from 0.7.0 but linking  
against the library from 0.6.0. At this point you should make sure  
that pkg-config --libs points to ~/local/lib. These errors are  
because you are linking against a library that doesn't contain the  
symbols you need. The gz_ir interface was added between 0.6 and 0.7.

You will continue to have these issues until the headers match the  
libraries. To debug, I would not use pkg-config and just include your  
local install when you compile.

On my system I only have static libraries. base/libgazebo/Makefile.am  
only directs the autoconf to create the static library at compile  
time. The fact that you were able to find a shared library either  
means I am misreading this file or you have an older version of the  
install. Also, don't worry about libgazeboplugin, you aren't going to  
need it for what you are trying to do.

Nate

On Oct 18, 2007, at 3:25 AM, Jonas Lanvers wrote:

> The pkg-config --cflags output is:
> -I/home/myName/local/include
> This directory contains the gazebo.h as well as a directory with a  
> lot of h-files.
> There is a lot of gz_ir_... code in the gazebo.h.
>
> Jonas
>
>
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED], Gazebo developers <playerstage- 
> [EMAIL PROTECTED]>
> Gesendet: 17.10.07 21:31:49
> An: Gazebo developers <[email protected]>
> Betreff: Re: [PlayerStage-Gazebo] Problem with infra red interface
>
>
> The plugin is in the same directory with the worldfile.
> And it works when I don't use any gz_ir_... stuff in the code.
>
> Gazebo is only installed local in /home/myName/local and the
> PKG_CONFIG_PATH is always set.
>
> I am currently not at my working computer but I can remember that
> pkg-config --libs gazebo returned "lgazebo", if that helps.
> I will post the --cflags output tomorrow morning.
>
> Anyway, which lib is used for the plugin? I think models are built  
> with
> the libgazebo.so that contains all the gz_ir stuff.
> Maybe gazebo uses the libgezeboplugin lib (that contains i.e.  
> gz_sonar..
> but not gz_ir) when it loads the model plugin?
>
> Nate Koenig schrieb:
>> What is the absolute path to your plugin? You can try putting that
>> into the the <plugin> tag.
>>
>> Also, have you installed multiple versions of gazebo in different
>> locations, say in /usr/local/ and /usr and maybe a local install?
>>
>> What does the following command return?
>> pkg-config --cflags gazebo
>>
>> -nate
>>
>> On 10/17/07, Jonas Lanvers <[EMAIL PROTECTED]> wrote:
>>
>>> Hello,
>>> you are right, there IS a libgazebo.so. Sorry, I was blind :-)
>>> This is my worldfile:
>>>
>>> <?xml version="1.0"?>
>>> <gz:world xmlns:gz="http://playerstage.sourceforge.net/gazebo/ 
>>> xmlschema/#gz">
>>>
>>>     <model:ObserverCam xmlns:model="http:// 
>>> playerstage.sourceforge.net/gazebo/xmlschema/#model">
>>>         <id>userCam0</id>
>>>         <xyz>0.660 7.433 2.545</xyz>
>>>         <rpy>0 15 -96</rpy>
>>>         <imageSize>640 400</imageSize>
>>>       </model:ObserverCam>
>>>       <model:LightSource xmlns:model="http:// 
>>> playerstage.sourceforge.net/gazebo/xmlschema/#model">
>>>         <id>light1</id>
>>>         <xyz>30.000 30.000 100.000</xyz>
>>>       </model:LightSource>
>>>       <model:LightSource xmlns:model="http:// 
>>> playerstage.sourceforge.net/gazebo/xmlschema/#model">
>>>         <id>light2</id>
>>>         <xyz>-30.000 -30.000 100.000</xyz>
>>>       </model:LightSource>
>>>       <model:GroundPlane xmlns:model="http:// 
>>> playerstage.sourceforge.net/gazebo/xmlschema/#model">
>>>         <id>ground1</id>
>>>         <xyz>-10.000 -10.000 0.000</xyz>
>>>         <color>0.5 0.5 0.5</color>
>>>          <textureFile>grid.ppm</textureFile>
>>>       </model:GroundPlane>
>>>
>>>           <model:SimpleSolid xmlns:model="http:// 
>>> playerstage.sourceforge.net/gazebo/xmlschema/#model">
>>>                 <id>cyl1</id>
>>>                 <xyz>91.975 -2.152 0.127</xyz>
>>>                 <shape>sphere</shape>
>>>                 <size>0.6</size>
>>>             </model:SimpleSolid>
>>>
>>>     <model:SimpleSolid xmlns:model="http:// 
>>> playerstage.sourceforge.net/gazebo/xmlschema/#model">
>>>         <id>wall1</id>
>>>         <shape>box</shape>
>>>         <xyz>0.533 10.013 0.385</xyz>
>>>         <rpy>-79 0 0</rpy>
>>>         <size>1.3 0.0010 2</size>
>>>         <fiducial>5</fiducial>
>>>         <retro>1</retro>
>>>         <gravity>false</gravity>
>>>         <enable>true</enable>
>>>     </model:SimpleSolid>
>>>     <model:MosroModel xmlns:model="http:// 
>>> playerstage.sourceforge.net/gazebo/xmlschema/#model">
>>>         <plugin>MosroModel.so</plugin>
>>>         <id>robot</id>
>>>         <xyz>-0.388 0.139 0</xyz>
>>>         <rpy>0 90 0</rpy>
>>>         <debug>true</debug>
>>>     </model:MosroModel>
>>>
>>> </gz:world>
>>>
>>> (Yes, I want my robot do lay on the back )
>>>
>>> Maybe gazebo uses the libgazeboplugin? The nm tool says, that  
>>> there is no gz_ir_* in it.
>>> But why can I build it?
>>>
>>>
>>>
>>> Nate Koenig schrieb:
>>>
>>>> Hello,
>>>>
>>>> What does your world file look like? And there should be  
>>>> libgazebo.so
>>>> where ever you installed gazebo.
>>>>
>>>> -nate
>>>>
>>>> On 10/16/07, rantanplan <[EMAIL PROTECTED]> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> can anyone help me?
>>>>> I implemented a simple Robot with sonars in gazebo and  
>>>>> everything worked.
>>>>> Now I'm trying to add infra red sensors and get undefined  
>>>>> references when I
>>>>> want to load my model/worldfile in wxgazebo.
>>>>> Building the model (make) works without any errors.
>>>>>
>>>>> Commenting out all references to gz_ir_* (i.e: gz_ir_alloc();)  
>>>>> makes the
>>>>> errors on loading the model/worldfile disappear.
>>>>> Here's the output:
>>>>> starting server
>>>>> waiting for server
>>>>> ** Gazebo 0.7.0 **
>>>>> * Part of the Player/Stage Project [http:// 
>>>>> playerstage.sourceforge.net].
>>>>> * Copyright 2000-2005 Brian Gerkey, Richard Vaughan, Andrew  
>>>>> Howard,
>>>>> * Nate Koenig and contributors.
>>>>> * Released under the GNU General Public License.
>>>>> using display [:0]
>>>>> rendering: [GLXP pbuffer] direct [yes] RGBA [8 8 8 0] depth [24]
>>>>> loading /home/rante/mosroSim/worlds/./MosroModel.so...
>>>>> error   : error loading plugin: /home/rante/mosroSim/worlds/./ 
>>>>> MosroModel.so:
>>>>> undefined symbol: gz_ir_alloc
>>>>>
>>>>> /// I think here, gazebo tries to load my model from another  
>>>>> location, but
>>>>> the real error is the one above.
>>>>> loading /home/rante/local/lib/gazebo/plugins/MosroModel.so...
>>>>> error   : error loading plugin:
>>>>> /home/rante/local/lib/gazebo/plugins/MosroModel.so: cannot open  
>>>>> shared
>>>>> object file: No such file or directory
>>>>> Initialization failed
>>>>> server died
>>>>> stopping server
>>>>>
>>>>> My Gazebo installation worked fine, checking my libs with the  
>>>>> nm tool to
>>>>> verify that the lib is complete brought following output:
>>>>> nm libgazebo.a | grep ir
>>>>>          U mkdir
>>>>>          U rmdir
>>>>> gz_ir.o:
>>>>> 00000000 T gz_ir_alloc
>>>>> 0000012e T gz_ir_close
>>>>> 0000004d T gz_ir_create
>>>>> 000000c9 T gz_ir_destroy
>>>>> 0000002c T gz_ir_free
>>>>> 00000146 T gz_ir_lock
>>>>> 000000e1 T gz_ir_open
>>>>> 00000168 T gz_ir_post
>>>>> 00000157 T gz_ir_unlock
>>>>>
>>>>> This looks good, doesn't it?
>>>>> There is NO libgazebo.so file in my lib-dir, I think that's  
>>>>> okay, but to
>>>>> test it i created an .so file.
>>>>> Works fine without any gz_ir_* stuff.
>>>>>
>>>>> Any idea?
>>>>> --
>>>>> View this message in context: http://www.nabble.com/Problem- 
>>>>> with-infra-red-interface-tf4634277.html#a13233834
>>>>> Sent from the playerstage-gazebo mailing list archive at  
>>>>> Nabble.com.
>>>>>
>>>>>
>
>
>
>
> ______________________________________________________________________ 
> _
> Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
> kostenlos testen. http://www.pc-sicherheit.web.de/startseite/? 
> mc=022220
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Playerstage-gazebo mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo



__________________________________________________________________________
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!        
        
Mehr Infos unter http://produkte.web.de/club/?mc=021131


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to